2018-04-06 01:16:14 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2016- Statoil ASA
|
2019-02-18 06:09:50 -06:00
|
|
|
//
|
2018-04-06 01:16:14 -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-02-18 06:09:50 -06:00
|
|
|
//
|
2018-04-06 01:16:14 -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-02-18 06:09:50 -06:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2018-04-06 01:16:14 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cafCmdFeature.h"
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class RimSummaryPlot;
|
2019-02-18 06:09:50 -06:00
|
|
|
class RimEnsembleCurveSet;
|
|
|
|
class RimSummaryCaseCollection;
|
2018-04-06 01:16:14 -05:00
|
|
|
|
|
|
|
//==================================================================================================
|
2019-02-18 06:09:50 -06:00
|
|
|
///
|
2018-04-06 01:16:14 -05:00
|
|
|
//==================================================================================================
|
2018-04-19 07:00:00 -05:00
|
|
|
class RicNewSummaryEnsembleCurveSetFeature : public caf::CmdFeature
|
2018-04-06 01:16:14 -05:00
|
|
|
{
|
|
|
|
CAF_CMD_HEADER_INIT;
|
2019-02-18 06:09:50 -06:00
|
|
|
|
|
|
|
public:
|
2020-03-10 08:11:22 -05:00
|
|
|
static RimSummaryPlot* createPlotForCurveSetsAndUpdate( std::vector<RimSummaryCaseCollection*> ensembles );
|
2022-03-25 05:39:12 -05:00
|
|
|
static std::vector<RimEnsembleCurveSet*> addDefaultCurveSets( RimSummaryPlot* plot, RimSummaryCaseCollection* ensemble );
|
2019-02-18 06:09:50 -06:00
|
|
|
|
2018-04-06 01:16:14 -05:00
|
|
|
protected:
|
2018-10-18 12:45:57 -05:00
|
|
|
bool isCommandEnabled() override;
|
2019-09-06 03:40:57 -05:00
|
|
|
void onActionTriggered( bool isChecked ) override;
|
|
|
|
void setupActionLook( QAction* actionToSetup ) override;
|
2019-02-18 06:09:50 -06:00
|
|
|
|
2018-04-06 01:16:14 -05:00
|
|
|
private:
|
|
|
|
RimSummaryPlot* selectedSummaryPlot() const;
|
|
|
|
};
|