2017-10-11 19:46:52 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// Copyright (C) 2017 Statoil 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 "RifEclipseSummaryAddress.h"
|
|
|
|
|
|
2017-10-24 09:44:50 +02:00
|
|
|
#include <QString>
|
|
|
|
|
|
2017-10-11 19:46:52 +02:00
|
|
|
#include <utility>
|
2017-10-16 22:04:00 +02:00
|
|
|
#include <vector>
|
2017-10-11 19:46:52 +02:00
|
|
|
|
|
|
|
|
class RimSummaryCase;
|
2018-05-10 21:29:55 +02:00
|
|
|
class RimSummaryCaseCollection;
|
2017-10-11 19:46:52 +02:00
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
|
///
|
|
|
|
|
//==================================================================================================
|
|
|
|
|
class RiaSummaryCurveDefinition
|
|
|
|
|
{
|
|
|
|
|
public:
|
2018-05-14 14:51:52 +02:00
|
|
|
RiaSummaryCurveDefinition();
|
2018-05-10 21:29:55 +02:00
|
|
|
explicit RiaSummaryCurveDefinition(RimSummaryCase* summaryCase,
|
|
|
|
|
const RifEclipseSummaryAddress& summaryAddress,
|
2018-09-13 12:38:17 +02:00
|
|
|
RimSummaryCaseCollection* ensemble = nullptr);
|
2017-10-11 19:46:52 +02:00
|
|
|
|
|
|
|
|
RimSummaryCase* summaryCase() const;
|
|
|
|
|
const RifEclipseSummaryAddress& summaryAddress() const;
|
2018-05-10 21:29:55 +02:00
|
|
|
RimSummaryCaseCollection* ensemble() const;
|
|
|
|
|
bool isEnsembleCurve() const;
|
2017-10-11 19:46:52 +02:00
|
|
|
|
|
|
|
|
bool operator < (const RiaSummaryCurveDefinition& other) const;
|
|
|
|
|
|
2017-10-16 22:04:00 +02:00
|
|
|
// TODO: Consider moving to a separate tools class
|
2017-10-18 11:18:43 +02:00
|
|
|
static void resultValues(const RiaSummaryCurveDefinition& curveDefinition, std::vector<double>* values);
|
|
|
|
|
static const std::vector<time_t>& timeSteps(const RiaSummaryCurveDefinition& curveDefinition);
|
2017-10-16 22:04:00 +02:00
|
|
|
|
2017-10-24 09:44:50 +02:00
|
|
|
QString curveDefinitionText() const;
|
|
|
|
|
|
2018-05-15 11:32:26 +02:00
|
|
|
static QString curveDefinitionText(const QString& caseName, const RifEclipseSummaryAddress& summaryAddress);
|
2017-10-24 09:44:50 +02:00
|
|
|
|
2017-10-24 09:57:32 +02:00
|
|
|
private:
|
|
|
|
|
|
2017-10-11 19:46:52 +02:00
|
|
|
private:
|
2018-05-15 10:14:18 +02:00
|
|
|
RimSummaryCase* m_summaryCase;
|
|
|
|
|
RifEclipseSummaryAddress m_summaryAddress;
|
2018-05-10 21:29:55 +02:00
|
|
|
RimSummaryCaseCollection* m_ensemble;
|
2017-10-11 19:46:52 +02:00
|
|
|
};
|