//////////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2021- 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 // for more details. // ///////////////////////////////////////////////////////////////////////////////// #pragma once class RimPlot; class RimMultiPlot; class RifEclipseSummaryAddress; class RimSummaryCase; class RimSummaryEnsemble; class RimSummaryPlot; class RimEnsembleCurveSet; class RimSummaryCurve; class RimSummaryMultiPlot; class RiaSummaryCurveAddress; namespace caf { class PdmObject; class PdmObjectHandle; } // namespace caf #include #include //================================================================================================== /// //================================================================================================== namespace RiaSummaryPlotTools { std::set addressesForSource( caf::PdmObject* summarySource ); RimEnsembleCurveSet* createCurveSet( RimSummaryEnsemble* ensemble, const RifEclipseSummaryAddress& addr ); RimSummaryCurve* createCurve( RimSummaryCase* summaryCase, const RifEclipseSummaryAddress& addr ); std::vector duplicatePlots( const std::vector& plots ); std::vector duplicateSummaryPlots( const std::vector& plots ); RimMultiPlot* createAndAppendMultiPlot( const std::vector& plots ); void appendPlotsToMultiPlot( RimMultiPlot* multiPlot, const std::vector& plots ); RimSummaryMultiPlot* createAndAppendDefaultSummaryMultiPlot( const std::vector& cases, const std::vector& ensembles, bool skipCreationOfPlotBasedOnPreferences = true ); RimSummaryMultiPlot* createAndAppendSingleSummaryMultiPlotNoAutoSettings( RimSummaryPlot* plot ); RimSummaryMultiPlot* createAndAppendSingleSummaryMultiPlot( RimSummaryPlot* plot ); RimSummaryMultiPlot* createAndAppendSummaryMultiPlot( const std::vector& plots ); RimSummaryMultiPlot* createAndAppendSummaryMultiPlot( const std::vector& objects ); void appendPlotsToSummaryMultiPlot( RimSummaryMultiPlot* multiPlot, const std::vector& plots ); RimSummaryPlot* createPlot( const std::vector& summaryCurves ); RimSummaryPlot* createPlot( const std::set& addresses, const std::vector& summaryCases, const std::vector& ensembles ); RimSummaryPlot* createCrossPlot( const std::vector& addresses, const std::vector& summaryCases, const std::vector& ensembles ); void appendCurvesToPlot( RimSummaryPlot* summaryPlot, const std::set& addresses, const std::vector& summaryCases, const std::vector& ensembles ); RimEnsembleCurveSet* addNewEnsembleCurve( RimSummaryPlot* summaryPlot, const RiaSummaryCurveAddress& curveAddress, RimSummaryEnsemble* ensemble ); RimSummaryCurve* addNewSummaryCurve( RimSummaryPlot* summaryPlot, const RiaSummaryCurveAddress& curveAddress, RimSummaryCase* summaryCase ); std::set selectedSummaryMultiPlots(); }; // namespace RiaSummaryPlotTools