mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-24 07:16:53 -06:00
#2824 Geomech 3d Well Log Curves: update UI and 3d view when user changes settings
This commit is contained in:
parent
944baee00e
commit
f6cbf0f34f
@ -28,6 +28,8 @@
|
||||
#include "RigFemPartGrid.h"
|
||||
|
||||
#include "RiaDefines.h"
|
||||
|
||||
#include "Rim3dWellLogCurve.h"
|
||||
#include "RimGeoMechCase.h"
|
||||
#include "RimGeoMechCellColors.h"
|
||||
#include "RimGeoMechPropertyFilter.h"
|
||||
@ -262,6 +264,9 @@ void RimGeoMechResultDefinition::fieldChangedByUi(const caf::PdmFieldHandle* cha
|
||||
this->firstAncestorOrThisOfType(view);
|
||||
RimPlotCurve* curve = nullptr;
|
||||
this->firstAncestorOrThisOfType(curve);
|
||||
Rim3dWellLogCurve* rim3dWellLogCurve = nullptr;
|
||||
this->firstAncestorOrThisOfType(rim3dWellLogCurve);
|
||||
|
||||
|
||||
if (&m_resultVariableUiField == changedField || &m_compactionRefLayerUiField == changedField)
|
||||
{
|
||||
@ -330,6 +335,11 @@ void RimGeoMechResultDefinition::fieldChangedByUi(const caf::PdmFieldHandle* cha
|
||||
{
|
||||
curve->loadDataAndUpdate(true);
|
||||
}
|
||||
|
||||
if (rim3dWellLogCurve)
|
||||
{
|
||||
rim3dWellLogCurve->updateCurveIn3dView();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -342,6 +352,11 @@ void RimGeoMechResultDefinition::fieldChangedByUi(const caf::PdmFieldHandle* cha
|
||||
{
|
||||
curve->updateConnectedEditors();
|
||||
}
|
||||
|
||||
if (rim3dWellLogCurve)
|
||||
{
|
||||
rim3dWellLogCurve->resetMinMaxValuesAndUpdateUI();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user