mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-12 16:32:12 -05:00
This is to support manually changing the MD directly in the project file. Fixes #7953.
This commit is contained in:
1 parent
1df25ed71c
commit
cd91a96871
3 files changed
+20
No files matched your search
@@ -173,9 +173,11 @@ RimStimPlanModel::RimStimPlanModel()
|
||||
|
||||
CAF_PDM_InitScriptableFieldNoDefault( &m_anchorPosition, "AnchorPosition", "Anchor Position", "", "", "" );
|
||||
m_anchorPosition.uiCapability()->setUiReadOnly( true );
|
||||
m_anchorPosition.xmlCapability()->disableIO();
|
||||
|
||||
CAF_PDM_InitScriptableFieldNoDefault( &m_thicknessDirection, "ThicknessDirection", "Thickness Direction", "", "", "" );
|
||||
m_thicknessDirection.uiCapability()->setUiReadOnly( true );
|
||||
m_thicknessDirection.xmlCapability()->disableIO();
|
||||
|
||||
CAF_PDM_InitScriptableFieldNoDefault( &m_thicknessDirectionWellPath,
|
||||
"ThicknessDirectionWellPath",
|
||||
@@ -922,6 +924,17 @@ void RimStimPlanModel::loadDataAndUpdate()
|
||||
{
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimStimPlanModel::resetAnchorPositionAndThicknessDirection()
|
||||
{
|
||||
// Always recompute thickness direction as MD in project file might have been changed
|
||||
updatePositionFromMeasuredDepth();
|
||||
updateThicknessDirection();
|
||||
updateBarrierProperties();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -153,6 +153,7 @@ public:
|
||||
RimWellPath* wellPath() const;
|
||||
|
||||
void loadDataAndUpdate();
|
||||
void resetAnchorPositionAndThicknessDirection();
|
||||
|
||||
RimModeledWellPath* thicknessDirectionWellPath() const;
|
||||
void setThicknessDirectionWellPath( RimModeledWellPath* thicknessDirectionWellPath );
|
||||
|
||||
Reference in new issue
Block a user