Files
ResInsight/ApplicationLibCode/ProjectDataModel/Summary/RimSummaryTableCollection.h
T

58 lines
2.3 KiB
C++
Raw Normal View History

2023-03-23 14:10:30 +01:00
/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2023- 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 "RifEclipseSummaryAddressDefines.h"
2023-03-23 14:10:30 +01:00
#include "RimAbstractPlotCollection.h"
#include "RimSummaryTable.h"
2025-12-22 13:32:13 +01:00
#include "cafPdmObjectCollection.h"
2023-03-23 14:10:30 +01:00
class RimSummaryCase;
//==================================================================================================
///
2025-12-22 13:32:13 +01:00
/// Collection for managing summary tables
2023-03-23 14:10:30 +01:00
///
//==================================================================================================
2025-12-22 13:32:13 +01:00
class RimSummaryTableCollection : public caf::PdmObjectCollection<RimSummaryTable>, public RimPlotCollection
2023-03-23 14:10:30 +01:00
{
CAF_PDM_HEADER_INIT;
public:
RimSummaryTableCollection();
~RimSummaryTableCollection() override;
2025-12-22 13:32:13 +01:00
// RimPlotCollection interface
2023-03-23 14:10:30 +01:00
void deleteAllPlots() override;
void loadDataAndUpdateAllPlots() override;
size_t plotCount() const override;
2025-12-22 13:32:13 +01:00
// Convenience accessors (delegate to base class)
2023-03-23 14:10:30 +01:00
std::vector<RimSummaryTable*> tables() const;
void addTable( RimSummaryTable* table );
void removeTable( RimSummaryTable* table );
2025-12-22 13:32:13 +01:00
// Domain-specific creation methods
2023-03-23 14:10:30 +01:00
RimSummaryTable* createDefaultSummaryTable();
2023-09-18 07:29:37 +00:00
RimSummaryTable* createSummaryTableFromCategoryAndVectorName( RimSummaryCase* summaryCase,
2023-09-18 09:28:29 +02:00
RifEclipseSummaryAddressDefines::SummaryCategory category,
2023-09-18 07:29:37 +00:00
const QString& vectorName );
2023-03-23 14:10:30 +01:00
};