ResInsight/ApplicationLibCode/ProjectDataModel/RimEclipseCaseEnsemble.h
jonjenssen c13ce39b5e
Enable polygons in contourmaps (#12073)
* Enable polygons in ensemble statistics views and allow adding polygons in contour maps
2025-01-16 16:53:05 +01:00

83 lines
3.0 KiB
C++

/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2024- Equinor ASA
//
// 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
#include "RimNamedObject.h"
#include "cafPdmChildArrayField.h"
#include "cafPdmChildField.h"
#include "cafPdmField.h"
#include "cafPdmPtrField.h"
#include <set>
class RimCaseCollection;
class RimEclipseCase;
class RimEclipseView;
class RimEclipseViewCollection;
class RimWellTargetCandidatesGenerator;
class RimStatisticsContourMap;
//==================================================================================================
//
//
//
//==================================================================================================
class RimEclipseCaseEnsemble : public RimNamedObject
{
CAF_PDM_HEADER_INIT;
public:
RimEclipseCaseEnsemble();
~RimEclipseCaseEnsemble() override;
void addCase( RimEclipseCase* reservoir );
void removeCase( RimEclipseCase* reservoir );
bool contains( RimEclipseCase* reservoir ) const;
RimEclipseCase* findByDescription( const QString& description ) const;
std::vector<RimEclipseCase*> cases() const;
std::set<RimEclipseCase*> casesInViews() const;
void addView( RimEclipseView* view );
RimEclipseView* addViewForCase( RimEclipseCase* eclipseCase );
std::vector<RimEclipseView*> allViews() const;
RimEclipseViewCollection* viewCollection() const;
void addWellTargetsGenerator( RimWellTargetCandidatesGenerator* generator );
std::vector<RimWellTargetCandidatesGenerator*> wellTargetsGenerators() const;
void addStatisticsContourMap( RimStatisticsContourMap* statisticsContourMap );
protected:
void appendMenuItems( caf::CmdFeatureMenuBuilder& menuBuilder ) const override;
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
private:
caf::PdmField<int> m_groupId;
caf::PdmChildField<RimCaseCollection*> m_caseCollection;
caf::PdmChildField<RimEclipseViewCollection*> m_viewCollection;
caf::PdmChildArrayField<RimWellTargetCandidatesGenerator*> m_wellTargetGenerators;
caf::PdmChildArrayField<RimStatisticsContourMap*> m_statisticsContourMaps;
caf::PdmPtrField<RimEclipseCase*> m_selectedCase;
};