mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-15 09:52:11 -05:00
#2770 Fracture : Recompute completion type when required
This commit is contained in:
1 parent
68b360a03f
commit
69630211ca
3 files changed
+16
-5
No files matched your search
@@ -321,8 +321,7 @@ void RimEllipseFractureTemplate::reload()
|
||||
this->firstAncestorOrThisOfType(proj);
|
||||
if (proj)
|
||||
{
|
||||
//Regenerate geometry
|
||||
proj->createDisplayModelAndRedrawAllViews();
|
||||
proj->reloadCompletionTypeResultsInAllViews();
|
||||
assignConductivityToCellsInsideEllipse();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -230,7 +230,13 @@ void RimFracture::fieldChangedByUi(const caf::PdmFieldHandle* changedField, cons
|
||||
this->firstAncestorOrThisOfType(rimView);
|
||||
if (rimView)
|
||||
{
|
||||
rimView->createDisplayModelAndRedraw();
|
||||
RimEclipseCase* eclipseCase = nullptr;
|
||||
rimView->firstAncestorOrThisOfType(eclipseCase);
|
||||
if (eclipseCase)
|
||||
{
|
||||
eclipseCase->recalculateCompletionTypeAndRedrawAllViews();
|
||||
eclipseCase->deleteVirtualConnectionFactorDataAndRedrawRequiredViews();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -237,6 +237,7 @@ caf::PdmFieldHandle* RimFractureTemplate::userDescriptionField()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFractureTemplate::fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue)
|
||||
{
|
||||
bool createDisplayModelAndRedraw = false;
|
||||
if (changedField == &m_azimuthAngle || changedField == &m_orientationType)
|
||||
{
|
||||
//Changes to one of these parameters should change all fractures with this fracture template attached.
|
||||
@@ -268,7 +269,7 @@ void RimFractureTemplate::fieldChangedByUi(const caf::PdmFieldHandle* changedFie
|
||||
}
|
||||
}
|
||||
|
||||
proj->createDisplayModelAndRedrawAllViews();
|
||||
createDisplayModelAndRedraw = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -301,12 +302,17 @@ void RimFractureTemplate::fieldChangedByUi(const caf::PdmFieldHandle* changedFie
|
||||
}
|
||||
|
||||
if (changedField == &m_perforationLength)
|
||||
{
|
||||
createDisplayModelAndRedraw = true;
|
||||
}
|
||||
|
||||
if (createDisplayModelAndRedraw)
|
||||
{
|
||||
RimProject* proj;
|
||||
this->firstAncestorOrThisOfType(proj);
|
||||
if (proj)
|
||||
{
|
||||
proj->createDisplayModelAndRedrawAllViews();
|
||||
proj->reloadCompletionTypeResultsInAllViews();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user