mirror of
https://github.com/OPM/ResInsight.git
synced 2025-01-23 23:13:39 -06:00
pre-proto - Update of stimPlanCells when changing facture color property or stimPlanFracTemplate activeTimeStep
This commit is contained in:
parent
4295928af6
commit
51e9ef67b8
@ -23,6 +23,7 @@
|
||||
#include "RimLegendConfig.h"
|
||||
#include "RimOilField.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimStimPlanFractureTemplate.h"
|
||||
|
||||
#include "cafPdmUiDoubleSliderEditor.h"
|
||||
#include "cafPdmUiItem.h"
|
||||
@ -166,6 +167,26 @@ void RimStimPlanColors::fieldChangedByUi(const caf::PdmFieldHandle* changedField
|
||||
{
|
||||
sourceView->scheduleCreateDisplayModelAndRedraw();
|
||||
}
|
||||
|
||||
if (changedField == &m_resultNameAndUnit)
|
||||
{
|
||||
//Get all frac templates and re-generate stimplan cells
|
||||
RimProject* proj;
|
||||
this->firstAncestorOrThisOfType(proj);
|
||||
if (proj)
|
||||
{
|
||||
std::vector<RimStimPlanFractureTemplate*> stimPlanFracTemplates;
|
||||
proj->descendantsIncludingThisOfType(stimPlanFracTemplates);
|
||||
for (RimStimPlanFractureTemplate* stimPlanFracTemplate : stimPlanFracTemplates)
|
||||
{
|
||||
stimPlanFracTemplate->setupStimPlanCells();
|
||||
}
|
||||
proj->createDisplayModelAndRedrawAllViews();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -90,6 +90,8 @@ void RimStimPlanFractureTemplate::fieldChangedByUi(const caf::PdmFieldHandle* ch
|
||||
|
||||
if (&activeTimeStepIndex == changedField)
|
||||
{
|
||||
setupStimPlanCells();
|
||||
|
||||
//Changes to this parameters should change all fractures with this fracture template attached.
|
||||
RimProject* proj;
|
||||
this->firstAncestorOrThisOfType(proj);
|
||||
@ -1067,8 +1069,9 @@ void RimStimPlanFractureTemplate::defineUiOrdering(QString uiConfigName, caf::Pd
|
||||
uiOrdering.add(&name);
|
||||
uiOrdering.add(&showStimPlanMesh);
|
||||
|
||||
caf::PdmUiGroup* fileGroup = uiOrdering.addNewGroup("File");
|
||||
caf::PdmUiGroup* fileGroup = uiOrdering.addNewGroup("Input");
|
||||
fileGroup->add(&m_stimPlanFileName);
|
||||
fileGroup->add(&activeTimeStepIndex);
|
||||
fileGroup->add(&wellPathDepthAtFracture);
|
||||
|
||||
caf::PdmUiGroup* geometryGroup = uiOrdering.addNewGroup("Geometry");
|
||||
@ -1081,7 +1084,6 @@ void RimStimPlanFractureTemplate::defineUiOrdering(QString uiConfigName, caf::Pd
|
||||
|
||||
caf::PdmUiGroup* polygonGroup = uiOrdering.addNewGroup("Fracture Polygon Basis");
|
||||
polygonGroup->add(¶meterForPolygon);
|
||||
polygonGroup->add(&activeTimeStepIndex);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user