#2824 Geomech 3d Well Log Curves: update UI and 3d view when user changes settings

This commit is contained in:
Gaute Lindkvist 2018-05-03 10:08:24 +02:00
parent 944baee00e
commit f6cbf0f34f

View File

@ -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();
}
}
//--------------------------------------------------------------------------------------------------