mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2770 Fracture : Recompute completion type when required
This commit is contained in:
@@ -321,8 +321,7 @@ void RimEllipseFractureTemplate::reload()
|
|||||||
this->firstAncestorOrThisOfType(proj);
|
this->firstAncestorOrThisOfType(proj);
|
||||||
if (proj)
|
if (proj)
|
||||||
{
|
{
|
||||||
//Regenerate geometry
|
proj->reloadCompletionTypeResultsInAllViews();
|
||||||
proj->createDisplayModelAndRedrawAllViews();
|
|
||||||
assignConductivityToCellsInsideEllipse();
|
assignConductivityToCellsInsideEllipse();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -230,7 +230,13 @@ void RimFracture::fieldChangedByUi(const caf::PdmFieldHandle* changedField, cons
|
|||||||
this->firstAncestorOrThisOfType(rimView);
|
this->firstAncestorOrThisOfType(rimView);
|
||||||
if (rimView)
|
if (rimView)
|
||||||
{
|
{
|
||||||
rimView->createDisplayModelAndRedraw();
|
RimEclipseCase* eclipseCase = nullptr;
|
||||||
|
rimView->firstAncestorOrThisOfType(eclipseCase);
|
||||||
|
if (eclipseCase)
|
||||||
|
{
|
||||||
|
eclipseCase->recalculateCompletionTypeAndRedrawAllViews();
|
||||||
|
eclipseCase->deleteVirtualConnectionFactorDataAndRedrawRequiredViews();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -237,6 +237,7 @@ caf::PdmFieldHandle* RimFractureTemplate::userDescriptionField()
|
|||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
void RimFractureTemplate::fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue)
|
void RimFractureTemplate::fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue)
|
||||||
{
|
{
|
||||||
|
bool createDisplayModelAndRedraw = false;
|
||||||
if (changedField == &m_azimuthAngle || changedField == &m_orientationType)
|
if (changedField == &m_azimuthAngle || changedField == &m_orientationType)
|
||||||
{
|
{
|
||||||
//Changes to one of these parameters should change all fractures with this fracture template attached.
|
//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)
|
if (changedField == &m_perforationLength)
|
||||||
|
{
|
||||||
|
createDisplayModelAndRedraw = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (createDisplayModelAndRedraw)
|
||||||
{
|
{
|
||||||
RimProject* proj;
|
RimProject* proj;
|
||||||
this->firstAncestorOrThisOfType(proj);
|
this->firstAncestorOrThisOfType(proj);
|
||||||
if (proj)
|
if (proj)
|
||||||
{
|
{
|
||||||
proj->createDisplayModelAndRedrawAllViews();
|
proj->reloadCompletionTypeResultsInAllViews();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user