#3287 Add update of connected curves when the well path changes

This commit is contained in:
Jacob Støren 2018-08-29 17:33:58 +02:00
parent 6168ac95ab
commit ad24409b91

View File

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