2017-10-20 03:00:16 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2017 Statoil ASA
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2017-10-20 03:00:16 -05:00
|
|
|
// 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.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2017-10-20 03:00:16 -05:00
|
|
|
// 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.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2017-10-20 03:00:16 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2022-03-14 03:18:48 -05:00
|
|
|
#include "RiaDateTimeDefines.h"
|
2021-02-12 03:50:58 -06:00
|
|
|
|
2020-09-04 03:01:12 -05:00
|
|
|
#include <QString>
|
|
|
|
|
2019-12-11 07:51:18 -06:00
|
|
|
#include <vector>
|
|
|
|
|
2017-11-15 00:07:26 -06:00
|
|
|
class RimSummaryPlot;
|
2022-04-06 10:39:07 -05:00
|
|
|
class RimSummaryMultiPlot;
|
|
|
|
class RimSummaryMultiPlotCollection;
|
2017-11-15 00:07:26 -06:00
|
|
|
class RimSummaryCrossPlot;
|
|
|
|
class RimSummaryCrossPlotCollection;
|
2018-05-23 06:33:10 -05:00
|
|
|
class RimSummaryCaseMainCollection;
|
2019-12-11 07:51:18 -06:00
|
|
|
class RimSummaryCase;
|
2022-02-22 04:32:35 -06:00
|
|
|
class RimSummaryCaseCollection;
|
2019-12-11 07:51:18 -06:00
|
|
|
|
|
|
|
class RifEclipseSummaryAddress;
|
2017-10-20 03:00:16 -05:00
|
|
|
|
2020-09-04 03:01:12 -05:00
|
|
|
class QStringList;
|
2017-10-20 03:00:16 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
namespace caf
|
|
|
|
{
|
|
|
|
class PdmObject;
|
2017-11-15 00:07:26 -06:00
|
|
|
}
|
|
|
|
|
2017-10-20 03:00:16 -05:00
|
|
|
//==================================================================================================
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2017-10-20 03:00:16 -05:00
|
|
|
//==================================================================================================
|
|
|
|
class RiaSummaryTools
|
|
|
|
{
|
|
|
|
public:
|
2019-12-09 16:18:15 -06:00
|
|
|
static RimSummaryCrossPlotCollection* summaryCrossPlotCollection();
|
|
|
|
static RimSummaryCaseMainCollection* summaryCaseMainCollection();
|
2022-04-06 10:39:07 -05:00
|
|
|
static RimSummaryMultiPlotCollection* summaryMultiPlotCollection();
|
2019-12-09 02:21:06 -06:00
|
|
|
|
|
|
|
static void notifyCalculatedCurveNameHasChanged( int calculationId, const QString& currentCurveName );
|
2017-11-15 00:07:26 -06:00
|
|
|
|
2022-04-06 10:39:07 -05:00
|
|
|
static RimSummaryPlot* parentSummaryPlot( caf::PdmObject* object );
|
|
|
|
static RimSummaryMultiPlot* parentSummaryMultiPlot( caf::PdmObject* object );
|
|
|
|
static RimSummaryMultiPlotCollection* parentSummaryPlotCollection( caf::PdmObject* object );
|
2017-11-15 00:07:26 -06:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
static RimSummaryCrossPlot* parentCrossPlot( caf::PdmObject* object );
|
|
|
|
static RimSummaryCrossPlotCollection* parentCrossPlotCollection( caf::PdmObject* object );
|
|
|
|
static bool isSummaryCrossPlot( const RimSummaryPlot* plot );
|
2019-12-11 07:51:18 -06:00
|
|
|
|
|
|
|
static bool hasAccumulatedData( const RifEclipseSummaryAddress& address );
|
|
|
|
static void getSummaryCasesAndAddressesForCalculation( int id,
|
|
|
|
std::vector<RimSummaryCase*>& cases,
|
|
|
|
std::vector<RifEclipseSummaryAddress>& addresses );
|
2020-09-04 03:01:12 -05:00
|
|
|
|
2021-02-12 03:50:58 -06:00
|
|
|
static std::pair<std::vector<time_t>, std::vector<double>>
|
2022-03-14 03:18:48 -05:00
|
|
|
resampledValuesForPeriod( const RifEclipseSummaryAddress& address,
|
|
|
|
const std::vector<time_t>& timeSteps,
|
|
|
|
std::vector<double>& values,
|
|
|
|
RiaDefines::DateTimePeriod period );
|
2022-01-21 07:32:51 -06:00
|
|
|
|
2022-02-22 04:32:35 -06:00
|
|
|
static RimSummaryCase* summaryCaseById( int caseId );
|
|
|
|
static RimSummaryCaseCollection* ensembleById( int ensembleId );
|
2017-10-20 03:00:16 -05:00
|
|
|
};
|