2016-12-09 04:11:16 -06:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2016- Statoil ASA
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2016-12-09 04:11:16 -06: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
|
|
|
//
|
2016-12-09 04:11:16 -06: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>
|
2016-12-09 04:11:16 -06:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cafCmdFeature.h"
|
|
|
|
|
2019-03-25 05:07:12 -05:00
|
|
|
class RimAdvancedSnapshotExportDefinition;
|
2016-12-14 02:16:44 -06:00
|
|
|
class RimProject;
|
2018-01-09 03:11:28 -06:00
|
|
|
class Rim3dView;
|
2018-01-15 07:52:22 -06:00
|
|
|
class RimGridView;
|
2016-12-09 04:11:16 -06:00
|
|
|
|
|
|
|
//==================================================================================================
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
2016-12-09 04:11:16 -06:00
|
|
|
//==================================================================================================
|
2019-03-25 04:56:01 -05:00
|
|
|
class RicAdvancedSnapshotExportFeature : public caf::CmdFeature
|
2016-12-09 04:11:16 -06:00
|
|
|
{
|
|
|
|
CAF_CMD_HEADER_INIT;
|
|
|
|
|
|
|
|
protected:
|
2023-06-26 07:28:46 -05:00
|
|
|
bool isCommandEnabled() const override;
|
2018-10-18 12:45:57 -05:00
|
|
|
void onActionTriggered( bool isChecked ) override;
|
2019-09-06 03:40:57 -05:00
|
|
|
void setupActionLook( QAction* actionToSetup ) override;
|
2016-12-14 02:16:44 -06:00
|
|
|
|
|
|
|
public:
|
2019-09-06 03:40:57 -05:00
|
|
|
static void exportMultipleSnapshots( const QString& folder, RimProject* project );
|
2016-12-20 02:40:01 -06:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
static void exportViewVariations( Rim3dView* rimView, RimAdvancedSnapshotExportDefinition* msd, const QString& folder );
|
2016-12-22 01:45:30 -06:00
|
|
|
|
2016-12-21 04:25:00 -06:00
|
|
|
private:
|
2023-02-26 03:48:40 -06:00
|
|
|
static void exportViewVariationsToFolder( RimGridView* rimView, RimAdvancedSnapshotExportDefinition* msd, const QString& folder );
|
2019-09-06 03:40:57 -05:00
|
|
|
static QString resultName( Rim3dView* rimView );
|
2016-12-09 04:11:16 -06:00
|
|
|
};
|