mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Added context menu items for adding new statistical case
p4#: 20523
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include "RimReservoir.h"
|
||||
#include "RimReservoirView.h"
|
||||
#include "RigEclipseCase.h"
|
||||
#include "RimStatisticalCalculation.h"
|
||||
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimIdenticalGridCaseGroup, "RimIdenticalGridCaseGroup");
|
||||
@@ -34,6 +35,12 @@ RimIdenticalGridCaseGroup::RimIdenticalGridCaseGroup()
|
||||
CAF_PDM_InitObject("Identical Grids", "", "", "");
|
||||
|
||||
CAF_PDM_InitFieldNoDefault(&reservoirs, "Reservoirs", "", "", "", "");
|
||||
CAF_PDM_InitFieldNoDefault(&statisticalReservoirs, "StatisticalReservoirs", "", "", "", "");
|
||||
|
||||
RimStatisticalCalculation* dummyStat = new RimStatisticalCalculation;
|
||||
dummyStat->caseName = "Statistics 1";
|
||||
|
||||
statisticalReservoirs.push_back(dummyStat);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -81,3 +88,17 @@ RigMainGrid* RimIdenticalGridCaseGroup::mainGrid()
|
||||
return NULL;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimStatisticalCalculation* RimIdenticalGridCaseGroup::createAndAppendStatisticalCalculation()
|
||||
{
|
||||
RimStatisticalCalculation* newObject = new RimStatisticalCalculation;
|
||||
|
||||
newObject->caseName = "Statistics 1";
|
||||
|
||||
statisticalReservoirs.push_back(newObject);
|
||||
|
||||
return newObject;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user