mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Renames following review
This commit is contained in:
@@ -403,7 +403,9 @@ void RimWellLogExtractionCurve::performDataExtraction( bool* isUsingPseudoLength
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellLogExtractionCurve::extractData( bool* isUsingPseudoLength, bool smoothData, double smoothingThreshold )
|
||||
void RimWellLogExtractionCurve::extractData( bool* isUsingPseudoLength,
|
||||
bool performDataSmoothing /*= false*/,
|
||||
double smoothingThreshold /*= -1.0 */ )
|
||||
{
|
||||
CAF_ASSERT( isUsingPseudoLength );
|
||||
|
||||
@@ -503,9 +505,13 @@ void RimWellLogExtractionCurve::extractData( bool* isUsingPseudoLength, bool smo
|
||||
|
||||
m_geomResultDefinition->loadResult();
|
||||
geomExtractor->curveData( m_geomResultDefinition->resultAddress(), m_timeStep, &values );
|
||||
if ( smoothData )
|
||||
if ( performDataSmoothing )
|
||||
{
|
||||
geomExtractor->smoothCurveData( m_timeStep, &measuredDepthValues, &tvDepthValues, &values, smoothingThreshold );
|
||||
geomExtractor->performCurveDataSmoothing( m_timeStep,
|
||||
&measuredDepthValues,
|
||||
&tvDepthValues,
|
||||
&values,
|
||||
smoothingThreshold );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -513,11 +519,11 @@ void RimWellLogExtractionCurve::extractData( bool* isUsingPseudoLength, bool smo
|
||||
{
|
||||
if ( !tvDepthValues.size() )
|
||||
{
|
||||
this->setValuesAndMD( values, measuredDepthValues, depthUnit, !smoothData );
|
||||
this->setValuesAndMD( values, measuredDepthValues, depthUnit, !performDataSmoothing );
|
||||
}
|
||||
else
|
||||
{
|
||||
this->setValuesWithTVD( values, measuredDepthValues, tvDepthValues, depthUnit, !smoothData );
|
||||
this->setValuesWithTVD( values, measuredDepthValues, tvDepthValues, depthUnit, !performDataSmoothing );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -674,7 +680,7 @@ void RimWellLogExtractionCurve::defineUiOrdering( QString uiConfigName, caf::Pdm
|
||||
{
|
||||
RimPlotCurve::updateOptionSensitivity();
|
||||
|
||||
caf::PdmUiGroup* curveDataGroup = uiOrdering.addNewGroupWithKeyword( "Curve Data", "CurveData" );
|
||||
caf::PdmUiGroup* curveDataGroup = uiOrdering.addNewGroupWithKeyword( "Data Source", dataSourceGroupKeyword() );
|
||||
|
||||
curveDataGroup->add( &m_case );
|
||||
|
||||
@@ -743,6 +749,14 @@ void RimWellLogExtractionCurve::initAfterRead()
|
||||
m_geomResultDefinition->setGeoMechCase( geomCase );
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RimWellLogExtractionCurve::dataSourceGroupKeyword()
|
||||
{
|
||||
return "DataSource";
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -92,7 +92,7 @@ protected:
|
||||
QString createCurveAutoName() override;
|
||||
void onLoadDataAndUpdate( bool updateParentPlot ) override;
|
||||
virtual void performDataExtraction( bool* isUsingPseudoLength );
|
||||
void extractData( bool* isUsingPseudoLength, bool smoothData = false, double smoothingThreshold = -1.0 );
|
||||
void extractData( bool* isUsingPseudoLength, bool performDataSmoothing = false, double smoothingThreshold = -1.0 );
|
||||
|
||||
void fieldChangedByUi( const caf::PdmFieldHandle* changedField,
|
||||
const QVariant& oldValue,
|
||||
@@ -103,6 +103,8 @@ protected:
|
||||
bool* useOptionsOnly ) override;
|
||||
void initAfterRead() override;
|
||||
|
||||
static QString dataSourceGroupKeyword();
|
||||
|
||||
private:
|
||||
void setLogScaleFromSelectedResult();
|
||||
void clampTimestep();
|
||||
|
||||
@@ -65,7 +65,7 @@ void RimWellLogWbsCurve::defineUiOrdering( QString uiConfigName, caf::PdmUiOrder
|
||||
{
|
||||
RimWellLogExtractionCurve::defineUiOrdering( uiConfigName, uiOrdering );
|
||||
|
||||
caf::PdmUiGroup* dataGroup = uiOrdering.findGroup( "CurveData" );
|
||||
caf::PdmUiGroup* dataGroup = uiOrdering.findGroup( dataSourceGroupKeyword() );
|
||||
dataGroup->add( &m_smoothCurve );
|
||||
dataGroup->add( &m_smoothingThreshold );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user