2020-05-13 23:39:55 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// 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"
|
|
|
|
|
2020-06-05 02:46:44 -05:00
|
|
|
#include "RimElasticPropertiesCurve.h"
|
2020-06-05 08:58:25 -05:00
|
|
|
#include "RimFractureModelCurve.h"
|
2020-06-30 15:39:55 -05:00
|
|
|
#include "RimFractureModelStressCurve.h"
|
2020-05-29 07:54:47 -05:00
|
|
|
|
2020-05-13 23:39:55 -05:00
|
|
|
class RimEclipseCase;
|
|
|
|
class RimFractureModelPlot;
|
|
|
|
class RimFractureModelPlotCollection;
|
|
|
|
class RimFractureModel;
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
|
|
|
class RicNewFractureModelPlotFeature : public caf::CmdFeature
|
|
|
|
{
|
|
|
|
CAF_CMD_HEADER_INIT;
|
|
|
|
|
|
|
|
public:
|
2020-10-23 08:29:02 -05:00
|
|
|
static RimFractureModelPlot* createPlot( RimFractureModel* fractureModel );
|
2020-05-13 23:39:55 -05:00
|
|
|
|
|
|
|
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
|
2020-06-10 05:03:31 -05:00
|
|
|
createFaciesTrack( RimFractureModelPlot* plot, RimFractureModel* fractureModel, RimEclipseCase* eclipseCase );
|
|
|
|
static void
|
|
|
|
createLayersTrack( RimFractureModelPlot* plot, RimFractureModel* fractureModel, RimEclipseCase* eclipseCase );
|
|
|
|
|
2020-10-16 04:27:46 -05:00
|
|
|
static void createParametersTrack( RimFractureModelPlot* plot,
|
|
|
|
RimFractureModel* fractureModel,
|
|
|
|
RimEclipseCase* eclipseCase,
|
|
|
|
int timeStep,
|
|
|
|
const QString& trackTitle,
|
|
|
|
const std::vector<RiaDefines::CurveProperty>& propertyTypes,
|
|
|
|
bool isPlotLogarithmic );
|
2020-05-13 23:39:55 -05:00
|
|
|
|
2020-07-02 06:53:39 -05:00
|
|
|
static void createElasticPropertiesTrack( RimFractureModelPlot* plot,
|
|
|
|
RimFractureModel* fractureModel,
|
|
|
|
RimEclipseCase* eclipseCase,
|
|
|
|
int timeStep,
|
|
|
|
RiaDefines::CurveProperty propertyType );
|
2020-05-29 07:54:47 -05:00
|
|
|
|
2020-09-17 06:40:26 -05:00
|
|
|
static void createStressTrack( RimFractureModelPlot* plot,
|
|
|
|
RimFractureModel* fractureModel,
|
|
|
|
RimEclipseCase* eclipseCase,
|
|
|
|
int timeStep,
|
|
|
|
const QString& trackName,
|
|
|
|
const std::vector<RiaDefines::CurveProperty>& propertyTypes );
|
2020-06-30 15:39:55 -05:00
|
|
|
|
2020-05-13 23:39:55 -05:00
|
|
|
static RimFractureModelPlot* createFractureModelPlot( bool showAfterCreation, const QString& plotDescription );
|
|
|
|
|
|
|
|
static RimFractureModelPlotCollection* fractureModelPlotCollection();
|
|
|
|
};
|