Files
ResInsight/ApplicationLibCode/Commands/RicImportEnsembleFeature.h
T
Magne Sjaastad d592b29090 #12270 Create a summary ensemble based on a selection of realizations
Add RicCreateSummaryEnsembleFeature used to create an ensemble based on a selection of realizations. Delete obsolete features to create summary groups.

Add context menu in parameter cross plots to create ensemble from filtered summary cases.
2025-03-18 12:55:19 +01:00

55 lines
2.4 KiB
C++

/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2016- 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 "RiaEnsembleNameTools.h"
#include "Summary/RiaSummaryDefines.h"
#include "cafCmdFeature.h"
#include <QString>
class RimSummaryCase;
//==================================================================================================
///
//==================================================================================================
class RicImportEnsembleFeature : public caf::CmdFeature
{
CAF_CMD_HEADER_INIT;
public:
static RimSummaryEnsemble* createSummaryEnsemble( std::vector<RimSummaryCase*> cases );
static RimSummaryEnsemble* groupSummaryCases( std::vector<RimSummaryCase*> cases,
const QString& groupName,
RiaDefines::EnsembleGroupingMode groupingMode,
bool isEnsemble = false );
private:
void onActionTriggered( bool isChecked ) override;
void setupActionLook( QAction* actionToSetup ) override;
static QString askForEnsembleName( const QString& suggestion );
static RimSummaryEnsemble* importSingleEnsemble( const QStringList& fileNames,
bool useEnsembleNameDialog,
RiaDefines::EnsembleGroupingMode groupingMode,
RiaDefines::FileType fileType,
const QString& defaultEnsembleName = QString() );
};