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
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
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.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2013-02-21 05:00:49 -06: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 03:40:57 -05:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2013-02-21 05:00:49 -06:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2015-06-25 06:23:36 -05:00
|
|
|
#include "RimEclipseStatisticsCaseCollection.h"
|
2013-05-06 03:55:00 -05:00
|
|
|
|
2015-07-31 11:58:23 -05:00
|
|
|
#include "RimEclipseStatisticsCase.h"
|
2019-09-06 03:40:57 -05:00
|
|
|
#include "RimIdenticalGridCaseGroup.h"
|
2013-02-21 05:00:49 -06:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
CAF_PDM_SOURCE_INIT( RimEclipseStatisticsCaseCollection, "RimStatisticalCollection" );
|
2013-02-21 05:00:49 -06:00
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
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()
|
|
|
|
{
|
2021-11-14 07:15:12 -06:00
|
|
|
CAF_PDM_InitObject( "Derived Statistics" );
|
2013-02-21 05:00:49 -06:00
|
|
|
|
2021-11-14 07:15:12 -06:00
|
|
|
CAF_PDM_InitFieldNoDefault( &cases, "Reservoirs", "" );
|
2021-10-13 06:39:46 -05:00
|
|
|
cases.uiCapability()->setUiTreeHidden( true );
|
2013-02-21 05:00:49 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
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
|
|
|
{
|
2022-05-31 06:08:07 -05:00
|
|
|
cases.deleteChildren();
|
2013-02-21 05:00:49 -06:00
|
|
|
}
|
|
|
|
|
2013-03-02 08:32:38 -06:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 03:40:57 -05: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
|
|
|
{
|
2023-02-26 03:48:40 -06: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
|
|
|
}
|