mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3312 Well Path Creation: Update intersections, completion type result and fractures when moving the wellpath
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user