#3312 Well Path Creation: Update intersections, completion type result and fractures when moving the wellpath

This commit is contained in:
Jacob Støren
2018-09-12 13:18:48 +02:00
parent 50b10d6078
commit 0431540073
8 changed files with 89 additions and 35 deletions

View File

@@ -24,6 +24,7 @@ RimWellPathTarget::RimWellPathTarget()
, m_targetPoint(cvf::Vec3d::ZERO)
, m_azimuth(0.0)
, m_inclination(0.0)
, m_isFullUpdateEnabled(true)
{
CAF_PDM_InitField(&m_isEnabled, "IsEnabled", true, "", "", "", "");
@@ -173,6 +174,14 @@ double RimWellPathTarget::radius2() const
return 30.0/cvf::Math::toRadians(m_dogleg2);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimWellPathTarget::enableFullUpdate(bool enable)
{
m_isFullUpdateEnabled = enable;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
@@ -195,6 +204,10 @@ void RimWellPathTarget::fieldChangedByUi(const caf::PdmFieldHandle* changedField
RimModeledWellPath* wellPath;
firstAncestorOrThisOfTypeAsserted(wellPath);
wellPath->updateWellPathVisualization();
if (m_isFullUpdateEnabled)
{
wellPath->scheduleUpdateOfDependentVisualization();
}
}
//--------------------------------------------------------------------------------------------------