#4703 Fix changing result position in GeoMech result definition

This commit is contained in:
Gaute Lindkvist 2019-09-11 15:50:22 +02:00
parent 2d555e1b67
commit 885435fba7
7 changed files with 11 additions and 29 deletions

View File

@ -263,15 +263,6 @@ void Rim3dWellLogCurve::initAfterRead()
this->createAutoName();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void Rim3dWellLogCurve::resetMinMaxValuesAndUpdateUI()
{
this->resetMinMaxValues();
this->updateConnectedEditors();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -88,7 +88,7 @@ public:
float minCurveUIValue() const;
float maxCurveUIValue() const;
void resetMinMaxValuesAndUpdateUI();
void resetMinMaxValues();
bool findClosestPointOnCurve( const cvf::Vec3d& globalIntersection,
cvf::Vec3d* closestPoint,
double* measuredDepthAtPoint,
@ -108,9 +108,6 @@ protected:
caf::PdmUiEditorAttribute* attribute ) override;
void initAfterRead() override;
private:
void resetMinMaxValues();
protected:
caf::PdmField<DrawPlaneEnum> m_drawPlane;
caf::PdmField<cvf::Color3f> m_color;

View File

@ -439,11 +439,13 @@ void Rim3dWellLogExtractionCurve::fieldChangedByUi( const caf::PdmFieldHandle* c
m_geomResultDefinition->setGeoMechCase( geoMechCase );
}
this->resetMinMaxValuesAndUpdateUI();
this->resetMinMaxValues();
this->updateConnectedEditors();
}
else if ( changedField == &m_timeStep )
{
this->resetMinMaxValuesAndUpdateUI();
this->resetMinMaxValues();
this->updateConnectedEditors();
}
Rim3dWellLogCurve::fieldChangedByUi( changedField, oldValue, newValue );
}

View File

@ -183,7 +183,8 @@ void Rim3dWellLogFileCurve::fieldChangedByUi( const caf::PdmFieldHandle* changed
{
if ( changedField == &m_wellLogFile || changedField == &m_wellLogChannelName )
{
this->resetMinMaxValuesAndUpdateUI();
this->resetMinMaxValues();
this->updateConnectedEditors();
}
Rim3dWellLogCurve::fieldChangedByUi( changedField, oldValue, newValue );
}

View File

@ -148,7 +148,8 @@ void Rim3dWellLogRftCurve::fieldChangedByUi( const caf::PdmFieldHandle* changedF
{
if ( changedField == &m_wellLogChannelName || changedField == &m_timeStep )
{
this->resetMinMaxValuesAndUpdateUI();
this->resetMinMaxValues();
this->updateConnectedEditors();
}
Rim3dWellLogCurve::fieldChangedByUi( changedField, oldValue, newValue );
}

View File

@ -435,7 +435,7 @@ void RimEclipseResultDefinition::updateAnyFieldHasChanged()
this->firstAncestorOrThisOfType( rim3dWellLogCurve );
if ( rim3dWellLogCurve )
{
rim3dWellLogCurve->resetMinMaxValuesAndUpdateUI();
rim3dWellLogCurve->resetMinMaxValues();
}
RimEclipseContourMapProjection* contourMap = nullptr;

View File

@ -379,19 +379,9 @@ void RimGeoMechResultDefinition::fieldChangedByUi( const caf::PdmFieldHandle* ch
}
}
if ( propFilter )
{
propFilter->updateConnectedEditors();
}
if ( curve )
{
curve->updateConnectedEditors();
}
if ( rim3dWellLogCurve )
{
rim3dWellLogCurve->resetMinMaxValuesAndUpdateUI();
rim3dWellLogCurve->resetMinMaxValues();
}
}