2013-02-21 12:00:49 +01:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
2014-09-23 15:04:57 +02:00
|
|
|
// Copyright (C) 2011- Statoil ASA
|
|
|
|
|
// Copyright (C) 2013- Ceetron Solutions AS
|
|
|
|
|
// Copyright (C) 2011-2012 Ceetron AS
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2013-02-21 12:00:49 +01: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.
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2013-02-21 12:00:49 +01:00
|
|
|
// 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.
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2013-02-21 12:00:49 +01:00
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
2015-06-25 13:23:36 +02:00
|
|
|
#include "RimEclipseStatisticsCaseCollection.h"
|
2013-05-06 10:55:00 +02:00
|
|
|
|
2015-07-31 18:58:23 +02:00
|
|
|
#include "RimEclipseStatisticsCase.h"
|
2019-09-06 10:40:57 +02:00
|
|
|
#include "RimIdenticalGridCaseGroup.h"
|
2013-02-21 12:00:49 +01:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
CAF_PDM_SOURCE_INIT( RimEclipseStatisticsCaseCollection, "RimStatisticalCollection" );
|
2013-02-21 12:00:49 +01:00
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 10:40:57 +02:00
|
|
|
///
|
2013-02-21 12:00:49 +01:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2015-06-25 11:59:07 +02:00
|
|
|
RimEclipseStatisticsCaseCollection::RimEclipseStatisticsCaseCollection()
|
2013-02-21 12:00:49 +01:00
|
|
|
: PdmObject()
|
|
|
|
|
{
|
2019-09-06 10:40:57 +02:00
|
|
|
CAF_PDM_InitObject( "Derived Statistics", "", "", "" );
|
2013-02-21 12:00:49 +01:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
CAF_PDM_InitFieldNoDefault( &cases, "Reservoirs", "", "", "", "" );
|
|
|
|
|
cases.uiCapability()->setUiHidden( true );
|
2013-02-21 12:00:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 10:40:57 +02:00
|
|
|
///
|
2013-02-21 12:00:49 +01:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2015-06-25 11:59:07 +02:00
|
|
|
RimEclipseStatisticsCaseCollection::~RimEclipseStatisticsCaseCollection()
|
2013-02-21 12:00:49 +01:00
|
|
|
{
|
2013-03-22 10:03:51 +01:00
|
|
|
cases.deleteAllChildObjects();
|
2013-02-21 12:00:49 +01:00
|
|
|
}
|
|
|
|
|
|
2013-03-02 15:32:38 +01:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 10:40:57 +02:00
|
|
|
///
|
2013-03-02 15:32:38 +01:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2015-06-25 11:59:07 +02:00
|
|
|
RimIdenticalGridCaseGroup* RimEclipseStatisticsCaseCollection::parentCaseGroup()
|
2013-03-02 15:32:38 +01:00
|
|
|
{
|
2020-02-12 11:43:15 +01:00
|
|
|
RimIdenticalGridCaseGroup* parentObject =
|
|
|
|
|
dynamic_cast<RimIdenticalGridCaseGroup*>( this->parentField()->ownerObject() );
|
2015-07-31 18:58:23 +02:00
|
|
|
return parentObject;
|
2013-03-02 15:32:38 +01:00
|
|
|
}
|