2018-06-29 04:48:10 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2018- Equinor ASA
|
2019-09-05 05:24:45 -05:00
|
|
|
//
|
2018-06-29 04:48:10 -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-09-05 05:24:45 -05:00
|
|
|
//
|
2018-06-29 04:48:10 -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-09-05 05:24:45 -05:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2018-06-29 04:48:10 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cafCmdFeature.h"
|
|
|
|
|
|
|
|
class RimGeoMechCase;
|
|
|
|
class RimGeoMechView;
|
2020-01-17 03:35:42 -06:00
|
|
|
class RimWbsParameters;
|
2019-09-05 05:24:45 -05:00
|
|
|
class RimWellBoreStabilityPlot;
|
2018-06-29 04:48:10 -05:00
|
|
|
class RimWellPath;
|
|
|
|
|
|
|
|
//==================================================================================================
|
2019-09-05 05:24:45 -05:00
|
|
|
///
|
2018-06-29 04:48:10 -05:00
|
|
|
//==================================================================================================
|
|
|
|
class RicNewWellBoreStabilityPlotFeature : public caf::CmdFeature
|
|
|
|
{
|
|
|
|
CAF_CMD_HEADER_INIT;
|
|
|
|
|
2019-10-09 02:21:28 -05:00
|
|
|
public:
|
2023-02-26 03:48:40 -06:00
|
|
|
static RimWellBoreStabilityPlot*
|
|
|
|
createPlot( RimGeoMechCase* geoMechCase, RimWellPath* wellPath, int timeStep, const RimWbsParameters* parameters = nullptr );
|
2019-10-09 02:21:28 -05:00
|
|
|
|
2018-06-29 04:48:10 -05:00
|
|
|
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;
|
|
|
|
void setupActionLook( QAction* actionToSetup ) override;
|
2018-06-29 04:48:10 -05:00
|
|
|
|
|
|
|
private:
|
2019-10-09 02:21:28 -05:00
|
|
|
static void createFormationTrack( RimWellBoreStabilityPlot* plot, RimWellPath* wellPath, RimGeoMechCase* geoMechCase );
|
|
|
|
static void createCasingShoeTrack( RimWellBoreStabilityPlot* plot, RimWellPath* wellPath, RimGeoMechCase* geoMechCase );
|
2023-02-26 03:48:40 -06:00
|
|
|
static void createParametersTrack( RimWellBoreStabilityPlot* plot, RimWellPath* wellPath, RimGeoMechCase* geoMechCase, int timeStep );
|
|
|
|
static void createStabilityCurvesTrack( RimWellBoreStabilityPlot* plot, RimWellPath* wellPath, RimGeoMechCase* geoMechCase, int timeStep );
|
|
|
|
static void createAnglesTrack( RimWellBoreStabilityPlot* plot, RimWellPath* wellPath, RimGeoMechCase* geoMechCase, int timeStep );
|
2018-06-29 04:48:10 -05:00
|
|
|
};
|