mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3287 Add update of connected curves when the well path changes
This commit is contained in:
parent
6168ac95ab
commit
ad24409b91
@ -24,6 +24,7 @@
|
|||||||
#include "RigWellPath.h"
|
#include "RigWellPath.h"
|
||||||
|
|
||||||
#include "cafPdmUiTreeOrdering.h"
|
#include "cafPdmUiTreeOrdering.h"
|
||||||
|
#include "RimPlotCurve.h"
|
||||||
|
|
||||||
|
|
||||||
CAF_PDM_SOURCE_INIT(RimModeledWellPath, "ModeledWellPath");
|
CAF_PDM_SOURCE_INIT(RimModeledWellPath, "ModeledWellPath");
|
||||||
@ -69,6 +70,14 @@ void RimModeledWellPath::updateWellPathVisualization()
|
|||||||
RimProject* proj;
|
RimProject* proj;
|
||||||
this->firstAncestorOrThisOfTypeAsserted(proj);
|
this->firstAncestorOrThisOfTypeAsserted(proj);
|
||||||
proj->createDisplayModelAndRedrawAllViews();
|
proj->createDisplayModelAndRedrawAllViews();
|
||||||
|
|
||||||
|
std::vector<RimPlotCurve*> refferingCurves;
|
||||||
|
this->objectsWithReferringPtrFieldsOfType(refferingCurves);
|
||||||
|
|
||||||
|
for (auto curve: refferingCurves)
|
||||||
|
{
|
||||||
|
curve->loadDataAndUpdate(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user