mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Streamline improvement (#7435)
* Use updated generator. Switch to using priority list for seeds. Fix phase reporting and sign issues. Fix step size when growing. * Reduce memory footprint by simplifying viz. code and filter out unused tracers early * Remove unused viz. code.
This commit is contained in:
@@ -20,11 +20,6 @@
|
||||
|
||||
#include "cafPdmFieldScriptingCapability.h"
|
||||
#include "cafPdmObjectScriptingCapability.h"
|
||||
#include "cafPdmUiLineEditor.h"
|
||||
#include "cafPdmUiTextEditor.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
|
||||
CAF_PDM_ABSTRACT_SOURCE_INIT( RimStreamline, "Streamline" );
|
||||
|
||||
@@ -39,12 +34,6 @@ RimStreamline::RimStreamline( QString simWellName )
|
||||
m_simWellName.uiCapability()->setUiReadOnly( true );
|
||||
m_simWellName.uiCapability()->setUiHidden( true );
|
||||
|
||||
CAF_PDM_InitScriptableFieldNoDefault( &m_propertiesTable, "PropertiesTable", "Properties Table", "", "", "" );
|
||||
m_propertiesTable.uiCapability()->setUiEditorTypeName( caf::PdmUiTextEditor::uiEditorTypeName() );
|
||||
m_propertiesTable.uiCapability()->setUiLabelPosition( caf::PdmUiItemInfo::HIDDEN );
|
||||
m_propertiesTable.uiCapability()->setUiReadOnly( true );
|
||||
m_propertiesTable.xmlCapability()->disableIO();
|
||||
|
||||
setDeletable( false );
|
||||
}
|
||||
|
||||
@@ -95,25 +84,6 @@ void RimStreamline::reverse()
|
||||
m_tracer.reverse();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimStreamline::generateStatistics()
|
||||
{
|
||||
QString stats;
|
||||
|
||||
stats += "Total distance: ";
|
||||
stats += QString::number( m_tracer.totalDistance(), 'f', 2 );
|
||||
stats += " meters\n";
|
||||
stats += "\n";
|
||||
stats += "Number of points: ";
|
||||
stats += QString::number( m_tracer.size() );
|
||||
stats += "\n";
|
||||
stats += "\n";
|
||||
|
||||
m_propertiesTable = stats;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user