mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-08 23:23:01 -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 "cafPdmUiTreeOrdering.h"
|
||||
#include "RimPlotCurve.h"
|
||||
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimModeledWellPath, "ModeledWellPath");
|
||||
@ -69,6 +70,14 @@ void RimModeledWellPath::updateWellPathVisualization()
|
||||
RimProject* proj;
|
||||
this->firstAncestorOrThisOfTypeAsserted(proj);
|
||||
proj->createDisplayModelAndRedrawAllViews();
|
||||
|
||||
std::vector<RimPlotCurve*> refferingCurves;
|
||||
this->objectsWithReferringPtrFieldsOfType(refferingCurves);
|
||||
|
||||
for (auto curve: refferingCurves)
|
||||
{
|
||||
curve->loadDataAndUpdate(false);
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user