mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2039 Update editor on toggling "Show formation"
This commit is contained in:
@@ -46,6 +46,8 @@
|
|||||||
#include "RimWellLogCurve.h"
|
#include "RimWellLogCurve.h"
|
||||||
#include "RimWellLogPlotCollection.h"
|
#include "RimWellLogPlotCollection.h"
|
||||||
#include "RimWellPath.h"
|
#include "RimWellPath.h"
|
||||||
|
#include "RimWellPltPlot.h"
|
||||||
|
#include "RimWellRftPlot.h"
|
||||||
|
|
||||||
#include "RiuMainWindow.h"
|
#include "RiuMainWindow.h"
|
||||||
#include "RiuPlotAnnotationTool.h"
|
#include "RiuPlotAnnotationTool.h"
|
||||||
@@ -242,6 +244,19 @@ void RimWellLogTrack::fieldChangedByUi(const caf::PdmFieldHandle* changedField,
|
|||||||
else if (changedField == &m_showFormations)
|
else if (changedField == &m_showFormations)
|
||||||
{
|
{
|
||||||
loadDataAndUpdate();
|
loadDataAndUpdate();
|
||||||
|
|
||||||
|
RimWellRftPlot* rftPlot(nullptr);
|
||||||
|
|
||||||
|
firstAncestorOrThisOfType(rftPlot);
|
||||||
|
|
||||||
|
if (rftPlot)
|
||||||
|
{
|
||||||
|
rftPlot->updateConnectedEditors();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
RimWellPltPlot* pltPlot(nullptr);
|
||||||
|
|
||||||
firstAncestorOrThisOfType(pltPlot);
|
firstAncestorOrThisOfType(pltPlot);
|
||||||
if (pltPlot)
|
if (pltPlot)
|
||||||
{
|
{
|
||||||
@@ -276,8 +291,7 @@ void RimWellLogTrack::fieldChangedByUi(const caf::PdmFieldHandle* changedField,
|
|||||||
else if (changedField == &m_formationTrajectoryType)
|
else if (changedField == &m_formationTrajectoryType)
|
||||||
{
|
{
|
||||||
clearGeneratedSimWellPaths(&m_generatedSimulationWellPathBranches);
|
clearGeneratedSimWellPaths(&m_generatedSimulationWellPathBranches);
|
||||||
}
|
|
||||||
}
|
|
||||||
loadDataAndUpdate();
|
loadDataAndUpdate();
|
||||||
}
|
}
|
||||||
else if (changedField == &m_formationBranchIndex)
|
else if (changedField == &m_formationBranchIndex)
|
||||||
|
|||||||
Reference in New Issue
Block a user