2019-03-18 06:41:44 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2019- 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
|
|
|
|
|
2021-05-05 02:43:49 -05:00
|
|
|
#include "RimAbstractPlotCollection.h"
|
|
|
|
|
2019-03-18 06:41:44 -05:00
|
|
|
#include "cafPdmChildArrayField.h"
|
|
|
|
#include "cafPdmObject.h"
|
|
|
|
|
|
|
|
class RimEclipseResultCase;
|
2021-05-05 02:43:49 -05:00
|
|
|
class RimSaturationPressurePlot;
|
2019-03-18 06:41:44 -05:00
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
2021-05-05 02:43:49 -05:00
|
|
|
class RimSaturationPressurePlotCollection : public caf::PdmObject, public RimPlotCollection
|
2019-03-18 06:41:44 -05:00
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
|
|
|
public:
|
|
|
|
RimSaturationPressurePlotCollection();
|
|
|
|
~RimSaturationPressurePlotCollection() override;
|
|
|
|
|
2023-02-26 03:48:40 -06:00
|
|
|
std::vector<RimSaturationPressurePlot*> createSaturationPressurePlots( RimEclipseResultCase* eclipseResultCase, int timeStep );
|
2019-03-18 06:41:44 -05:00
|
|
|
|
2020-09-16 12:33:44 -05:00
|
|
|
std::vector<RimSaturationPressurePlot*> plots() const;
|
2021-05-05 02:43:49 -05:00
|
|
|
size_t plotCount() const override;
|
|
|
|
void deleteAllPlots() override;
|
|
|
|
void loadDataAndUpdateAllPlots() override;
|
2019-03-18 06:41:44 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
caf::PdmChildArrayField<RimSaturationPressurePlot*> m_saturationPressurePlots;
|
|
|
|
};
|