mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Moving the data extraction out of the curves makes it possible to share the curve drawing functionality.
67 lines
2.8 KiB
C++
67 lines
2.8 KiB
C++
/////////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Copyright (C) 2020- Equinor 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 "cafCmdFeature.h"
|
|
|
|
#include "RiaDefines.h"
|
|
#include "RiaFractureModelDefines.h"
|
|
|
|
class RimEclipseCase;
|
|
class RimFractureModelPlot;
|
|
class RimFractureModelPlotCollection;
|
|
class RimFractureModel;
|
|
|
|
//==================================================================================================
|
|
///
|
|
//==================================================================================================
|
|
class RicNewFractureModelPlotFeature : public caf::CmdFeature
|
|
{
|
|
CAF_CMD_HEADER_INIT;
|
|
|
|
public:
|
|
static RimFractureModelPlot* createPlot( RimFractureModel* fractureModel );
|
|
|
|
protected:
|
|
// Overrides
|
|
bool isCommandEnabled() override;
|
|
void onActionTriggered( bool isChecked ) override;
|
|
void setupActionLook( QAction* actionToSetup ) override;
|
|
|
|
private:
|
|
static void
|
|
createFormationTrack( RimFractureModelPlot* plot, RimFractureModel* fractureModel, RimEclipseCase* eclipseCase );
|
|
static void
|
|
createFaciesTrack( RimFractureModelPlot* plot, RimFractureModel* fractureModel, RimEclipseCase* eclipseCase );
|
|
static void
|
|
createLayersTrack( RimFractureModelPlot* plot, RimFractureModel* fractureModel, RimEclipseCase* eclipseCase );
|
|
|
|
static void createParametersTrack( RimFractureModelPlot* plot,
|
|
RimFractureModel* fractureModel,
|
|
RimEclipseCase* eclipseCase,
|
|
int timeStep,
|
|
const QString& trackTitle,
|
|
const std::vector<RiaDefines::CurveProperty>& propertyTypes,
|
|
bool isPlotLogarithmic = false );
|
|
|
|
static RimFractureModelPlot* createFractureModelPlot( bool showAfterCreation, const QString& plotDescription );
|
|
|
|
static RimFractureModelPlotCollection* fractureModelPlotCollection();
|
|
};
|