Files
ResInsight/ApplicationLibCode/ProjectDataModel/RimEclipseCaseCollection.h
T

73 lines
2.5 KiB
C++
Raw Normal View History

/////////////////////////////////////////////////////////////////////////////////
//
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
//
// 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.
//
/////////////////////////////////////////////////////////////////////////////////
#pragma once
2015-07-31 18:58:23 +02:00
#include "cafPdmChildArrayField.h"
2014-07-24 10:11:43 +02:00
#include "cafPdmField.h"
#include "cafPdmObject.h"
#include "cafPdmPointer.h"
#include "cvfObject.h"
2017-01-10 09:51:39 +01:00
class RigEclipseCaseData;
class RigGridManager;
class RigMainGrid;
2015-07-31 18:58:23 +02:00
class RimEclipseCase;
class RimIdenticalGridCaseGroup;
class RimWellPathCollection;
2024-02-09 14:11:19 +01:00
class RimEclipseCaseEnsemble;
2026-02-13 08:28:34 +01:00
class RimReservoirGridEnsemble;
//==================================================================================================
///
///
//==================================================================================================
class RimEclipseCaseCollection : public caf::PdmObject
{
CAF_PDM_HEADER_INIT;
public:
2023-04-14 14:07:45 +02:00
RimEclipseCaseCollection();
~RimEclipseCaseCollection() override;
caf::PdmChildArrayField<RimEclipseCase*> cases;
caf::PdmChildArrayField<RimIdenticalGridCaseGroup*> caseGroups;
2024-02-09 14:11:19 +01:00
caf::PdmChildArrayField<RimEclipseCaseEnsemble*> caseEnsembles;
2026-02-13 08:28:34 +01:00
caf::PdmChildArrayField<RimReservoirGridEnsemble*> reservoirGridEnsembles;
void close();
RimIdenticalGridCaseGroup* createIdenticalCaseGroupFromMainCase( RimEclipseCase* mainCase );
2023-02-26 10:48:40 +01:00
void insertCaseInCaseGroup( RimIdenticalGridCaseGroup* caseGroup, RimEclipseCase* rimReservoir );
void removeCaseFromAllGroups( RimEclipseCase* rimReservoir );
void recomputeStatisticsForAllCaseGroups();
2013-12-02 08:56:42 +01:00
2024-09-16 09:49:22 +02:00
static QStringList importMenuFeatureNames();
private:
void appendMenuItems( caf::CmdFeatureMenuBuilder& menuBuilder ) const override;
private:
2020-05-13 17:57:21 +02:00
RigMainGrid* registerCaseInGridCollection( RimEclipseCase* rimEclipseCase );
cvf::ref<RigGridManager> m_gridCollection;
};