2013-02-21 05:00:49 -06:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
2014-09-23 08:04:57 -05:00
|
|
|
// Copyright (C) 2011- Statoil ASA
|
|
|
|
// Copyright (C) 2013- Ceetron Solutions AS
|
|
|
|
// Copyright (C) 2011-2012 Ceetron AS
|
2013-02-21 05:00:49 -06:00
|
|
|
//
|
|
|
|
// ResInsight is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
|
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
// FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2015-06-25 06:23:36 -05:00
|
|
|
#include "RimEclipseStatisticsCaseCollection.h"
|
2013-05-06 03:55:00 -05:00
|
|
|
|
2014-07-24 03:11:43 -05:00
|
|
|
#include "RimIdenticalGridCaseGroup.h"
|
2015-07-31 11:58:23 -05:00
|
|
|
#include "RimEclipseStatisticsCase.h"
|
2013-02-21 05:00:49 -06:00
|
|
|
|
|
|
|
|
2015-06-25 04:59:07 -05:00
|
|
|
CAF_PDM_SOURCE_INIT(RimEclipseStatisticsCaseCollection, "RimStatisticalCollection");
|
2013-02-21 05:00:49 -06:00
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2015-06-25 04:59:07 -05:00
|
|
|
RimEclipseStatisticsCaseCollection::RimEclipseStatisticsCaseCollection()
|
2013-02-21 05:00:49 -06:00
|
|
|
: PdmObject()
|
|
|
|
{
|
|
|
|
CAF_PDM_InitObject("Derived Statistics", "", "", "");
|
|
|
|
|
2013-03-22 04:03:51 -05:00
|
|
|
CAF_PDM_InitFieldNoDefault(&cases, "Reservoirs", "", "", "", "");
|
2015-08-09 07:12:09 -05:00
|
|
|
cases.uiCapability()->setUiHidden(true);
|
2013-02-21 05:00:49 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2015-06-25 04:59:07 -05:00
|
|
|
RimEclipseStatisticsCaseCollection::~RimEclipseStatisticsCaseCollection()
|
2013-02-21 05:00:49 -06:00
|
|
|
{
|
2013-03-22 04:03:51 -05:00
|
|
|
cases.deleteAllChildObjects();
|
2013-02-21 05:00:49 -06:00
|
|
|
}
|
|
|
|
|
2013-03-02 08:32:38 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
|
|
|
///
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2015-06-25 04:59:07 -05:00
|
|
|
RimIdenticalGridCaseGroup* RimEclipseStatisticsCaseCollection::parentCaseGroup()
|
2013-03-02 08:32:38 -06:00
|
|
|
{
|
2015-08-11 11:42:44 -05:00
|
|
|
RimIdenticalGridCaseGroup* parentObject = dynamic_cast<RimIdenticalGridCaseGroup*>(this->parentField()->ownerObject());
|
2015-07-31 11:58:23 -05:00
|
|
|
return parentObject;
|
2013-03-02 08:32:38 -06:00
|
|
|
}
|
|
|
|
|