#2770 Fracture : Recompute completion type when required

This commit is contained in:
Magne Sjaastad
2018-04-20 12:58:42 +02:00
parent 68b360a03f
commit 69630211ca
3 changed files with 16 additions and 5 deletions

View File

@@ -321,8 +321,7 @@ void RimEllipseFractureTemplate::reload()
this->firstAncestorOrThisOfType(proj);
if (proj)
{
//Regenerate geometry
proj->createDisplayModelAndRedrawAllViews();
proj->reloadCompletionTypeResultsInAllViews();
assignConductivityToCellsInsideEllipse();
}
}

View File

@@ -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
{

View File

@@ -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();
}
}
}