mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
pre-proto - Update of stimPlanCells when changing facture color property or stimPlanFracTemplate activeTimeStep
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user