2015-08-26 05:27:29 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2015- Statoil ASA
|
|
|
|
// Copyright (C) 2015- Ceetron Solutions AS
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2015-08-26 05:27:29 -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-06 03:40:57 -05:00
|
|
|
//
|
2015-08-26 05:27:29 -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-06 03:40:57 -05:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2015-08-26 05:27:29 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2017-12-07 07:51:58 -06:00
|
|
|
#include "RimWellLogPlot.h"
|
|
|
|
|
2022-08-05 06:14:58 -05:00
|
|
|
#include "RiaPlotDefines.h"
|
2017-12-11 05:59:03 -06:00
|
|
|
#include "RigWellPathFormations.h"
|
|
|
|
|
2019-11-15 03:12:19 -06:00
|
|
|
#include "RimPlot.h"
|
2019-09-10 08:21:58 -05:00
|
|
|
|
2022-02-07 04:44:20 -06:00
|
|
|
#include "RiuPlotAxis.h"
|
|
|
|
|
2015-08-27 09:43:54 -05:00
|
|
|
#include "cafPdmChildArrayField.h"
|
2019-09-06 03:40:57 -05:00
|
|
|
#include "cafPdmField.h"
|
|
|
|
#include "cafPdmObject.h"
|
2017-10-25 07:41:54 -05:00
|
|
|
#include "cafPdmPtrField.h"
|
2015-08-27 09:43:54 -05:00
|
|
|
|
2015-08-30 19:06:37 -05:00
|
|
|
#include <QPointer>
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
#include <map>
|
2017-10-26 03:01:56 -05:00
|
|
|
#include <memory>
|
2015-08-30 19:06:37 -05:00
|
|
|
#include <vector>
|
|
|
|
|
2017-10-25 07:41:54 -05:00
|
|
|
class RigWellPath;
|
|
|
|
class RimCase;
|
2018-08-30 07:03:58 -05:00
|
|
|
class RimWellPathAttributeCollection;
|
2017-10-25 07:41:54 -05:00
|
|
|
class RimWellFlowRateCurve;
|
2015-11-04 09:19:38 -06:00
|
|
|
class RimWellLogCurve;
|
2017-10-25 07:41:54 -05:00
|
|
|
class RimWellPath;
|
2020-05-13 23:39:55 -05:00
|
|
|
class RimDepthTrackPlot;
|
2018-10-09 06:42:03 -05:00
|
|
|
class RiuWellPathComponentPlotItem;
|
2015-11-04 08:57:06 -06:00
|
|
|
class RiuWellLogTrack;
|
2017-10-27 04:41:19 -05:00
|
|
|
class RigEclipseWellLogExtractor;
|
|
|
|
class RimWellLogPlotCollection;
|
|
|
|
class RigGeoMechWellLogExtractor;
|
|
|
|
class RigResultAccessor;
|
|
|
|
class RigFemResultAddress;
|
2020-02-07 04:08:47 -06:00
|
|
|
class RigWellLogExtractor;
|
2020-05-13 23:39:55 -05:00
|
|
|
class RimEclipseResultDefinition;
|
2020-05-22 02:01:08 -05:00
|
|
|
class RimColorLegend;
|
2021-05-28 01:54:27 -05:00
|
|
|
class RimEnsembleWellLogCurveSet;
|
2022-08-05 06:14:58 -05:00
|
|
|
class RiuPlotAnnotationTool;
|
2015-08-26 05:27:29 -05:00
|
|
|
|
2017-10-27 04:41:19 -05:00
|
|
|
struct CurveSamplingPointData
|
|
|
|
{
|
|
|
|
std::vector<double> data;
|
|
|
|
std::vector<double> md;
|
|
|
|
std::vector<double> tvd;
|
2020-01-08 03:31:01 -06:00
|
|
|
|
|
|
|
double rkbDiff;
|
2017-10-27 04:41:19 -05:00
|
|
|
};
|
|
|
|
|
2015-08-26 05:27:29 -05:00
|
|
|
//==================================================================================================
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
|
|
|
///
|
2015-08-26 05:27:29 -05:00
|
|
|
//==================================================================================================
|
2019-11-15 03:12:19 -06:00
|
|
|
class RimWellLogTrack : public RimPlot
|
2015-08-26 05:27:29 -05:00
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
2019-09-06 03:40:57 -05:00
|
|
|
|
2015-08-26 05:27:29 -05:00
|
|
|
public:
|
2019-09-06 03:40:57 -05:00
|
|
|
enum TrajectoryType
|
|
|
|
{
|
|
|
|
WELL_PATH,
|
|
|
|
SIMULATION_WELL
|
|
|
|
};
|
|
|
|
enum FormationSource
|
|
|
|
{
|
|
|
|
CASE,
|
|
|
|
WELL_PICK_FILTER
|
|
|
|
};
|
|
|
|
|
2022-08-05 06:14:58 -05:00
|
|
|
using RegionAnnotationTypeEnum = caf::AppEnum<RiaDefines::RegionAnnotationType>;
|
|
|
|
using RegionAnnotationDisplayEnum = caf::AppEnum<RiaDefines::RegionDisplay>;
|
2019-11-15 03:12:19 -06:00
|
|
|
|
|
|
|
public:
|
|
|
|
RimWellLogTrack();
|
|
|
|
~RimWellLogTrack() override;
|
|
|
|
|
|
|
|
QWidget* viewWidget() override;
|
2022-01-17 06:14:21 -06:00
|
|
|
RiuQwtPlotWidget* viewer();
|
|
|
|
RiuPlotWidget* plotWidget() override;
|
2019-11-15 03:12:19 -06:00
|
|
|
QImage snapshotWindowContent() override;
|
|
|
|
void zoomAll() override;
|
2019-09-25 04:59:31 -05:00
|
|
|
|
2019-10-31 07:48:40 -05:00
|
|
|
QString description() const override;
|
|
|
|
void setDescription( const QString& description );
|
2019-11-13 07:40:06 -06:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void addCurve( RimWellLogCurve* curve );
|
|
|
|
void insertCurve( RimWellLogCurve* curve, size_t index );
|
2020-02-07 06:00:48 -06:00
|
|
|
void removeCurve( RimWellLogCurve* curve );
|
2017-11-15 03:41:00 -06:00
|
|
|
void deleteAllCurves();
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
size_t curveIndex( RimWellLogCurve* curve );
|
2020-02-12 04:13:38 -06:00
|
|
|
size_t curveCount() { return m_curves.size(); }
|
2019-09-25 04:59:31 -05:00
|
|
|
|
2022-02-14 04:49:37 -06:00
|
|
|
void setPropertyValueAxisTitle( const QString& text );
|
|
|
|
QString depthAxisTitle() const;
|
2017-11-28 04:00:36 -06:00
|
|
|
|
2019-09-11 05:51:25 -05:00
|
|
|
void setFormationWellPath( RimWellPath* wellPath );
|
|
|
|
RimWellPath* formationWellPath() const;
|
|
|
|
void setFormationSimWellName( const QString& simWellName );
|
|
|
|
QString formationSimWellName() const;
|
|
|
|
void setFormationBranchDetection( bool branchDetection );
|
|
|
|
bool formationBranchDetection() const;
|
|
|
|
void setFormationBranchIndex( int branchIndex );
|
|
|
|
int formationBranchIndex() const;
|
|
|
|
void setFormationCase( RimCase* rimCase );
|
|
|
|
RimCase* formationNamesCase() const;
|
|
|
|
void setFormationTrajectoryType( TrajectoryType trajectoryType );
|
|
|
|
TrajectoryType formationTrajectoryType() const;
|
2023-02-26 03:48:40 -06:00
|
|
|
void setRegionPropertyResultType( RiaDefines::ResultCatType resultCatType, const QString& resultVariable );
|
2015-09-02 09:46:30 -05:00
|
|
|
|
2019-11-13 07:40:06 -06:00
|
|
|
void detachAllCurves() override;
|
2019-11-22 08:42:40 -06:00
|
|
|
void reattachAllCurves() override;
|
2015-09-03 08:10:02 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void setAndUpdateWellPathFormationNamesData( RimCase* rimCase, RimWellPath* wellPath );
|
|
|
|
|
2023-02-26 03:48:40 -06:00
|
|
|
void setAndUpdateSimWellFormationNamesAndBranchData( RimCase* rimCase, const QString& simWellName, int branchIndex, bool useBranchDetection );
|
2019-09-06 03:40:57 -05:00
|
|
|
void setAndUpdateSimWellFormationNamesData( RimCase* rimCase, const QString& simWellName );
|
|
|
|
|
2022-03-08 01:42:21 -06:00
|
|
|
[[deprecated( "Use setAutoScalePropertyValuesEnabled() instead." )]] void setAutoScaleXEnabled( bool enabled ) override;
|
2023-02-26 03:48:40 -06:00
|
|
|
[[deprecated( "Use setAutoScaleDepthValuesEnabled() instead." )]] void setAutoScaleYEnabled( bool enabled ) override;
|
2022-03-08 01:42:21 -06:00
|
|
|
|
|
|
|
void setAutoScalePropertyValuesEnabled( bool enabled );
|
|
|
|
void setAutoScaleDepthValuesEnabled( bool enabled );
|
2022-02-14 04:49:37 -06:00
|
|
|
void setAutoScalePropertyValuesIfNecessary();
|
2019-10-11 08:54:19 -05:00
|
|
|
|
2022-02-14 04:49:37 -06:00
|
|
|
void availablePropertyValueRange( double* minX, double* maxX );
|
2019-09-06 03:40:57 -05:00
|
|
|
void availableDepthRange( double* minimumDepth, double* maximumDepth );
|
2019-10-11 08:54:19 -05:00
|
|
|
|
2022-02-14 04:49:37 -06:00
|
|
|
void visiblePropertyValueRange( double* minX, double* maxX );
|
2020-02-04 02:45:32 -06:00
|
|
|
void visibleDepthRange( double* minimumDepth, double* maximumDepth );
|
|
|
|
|
2022-02-14 04:49:37 -06:00
|
|
|
void setVisiblePropertyValueRange( double minValue, double maxValue );
|
|
|
|
void setVisibleDepthRange( double minValue, double maxValue );
|
2019-10-11 08:54:19 -05:00
|
|
|
|
2022-01-17 06:14:21 -06:00
|
|
|
void updateZoomInParentPlot() override;
|
|
|
|
void updateZoomFromParentPlot() override;
|
2019-10-11 08:54:19 -05:00
|
|
|
|
2018-05-23 04:28:57 -05:00
|
|
|
void updateParentPlotZoom();
|
2019-10-11 08:54:19 -05:00
|
|
|
|
2018-05-23 04:28:57 -05:00
|
|
|
void updateEditors();
|
2019-10-11 08:54:19 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void setTickIntervals( double majorTickInterval, double minorTickInterval );
|
2021-11-01 07:09:25 -05:00
|
|
|
void setMinAndMaxTicksOnly( bool enable );
|
2022-02-14 04:49:37 -06:00
|
|
|
void setPropertyValueAxisGridVisibility( RimWellLogPlot::AxisGridVisibility gridLines );
|
2019-09-25 04:59:31 -05:00
|
|
|
|
2022-08-05 06:14:58 -05:00
|
|
|
void setAnnotationType( RiaDefines::RegionAnnotationType annotationType );
|
|
|
|
void setAnnotationDisplay( RiaDefines::RegionDisplay annotationDisplay );
|
2020-02-07 04:08:47 -06:00
|
|
|
void setAnnotationTransparency( int percent );
|
2020-06-03 05:08:59 -05:00
|
|
|
void setColorShadingLegend( RimColorLegend* colorLegend );
|
2019-09-25 04:59:31 -05:00
|
|
|
|
2022-08-05 06:14:58 -05:00
|
|
|
RiaDefines::RegionAnnotationType annotationType() const;
|
|
|
|
RiaDefines::RegionDisplay annotationDisplay() const;
|
2019-09-25 04:59:31 -05:00
|
|
|
|
2018-09-07 07:37:35 -05:00
|
|
|
bool showFormations() const;
|
2019-09-25 04:59:31 -05:00
|
|
|
|
|
|
|
void setShowRegionLabels( bool on );
|
2019-09-06 03:40:57 -05:00
|
|
|
|
2018-09-07 07:37:35 -05:00
|
|
|
bool showWellPathAttributes() const;
|
2019-09-06 03:40:57 -05:00
|
|
|
void setShowWellPathAttributes( bool on );
|
2020-02-13 04:27:31 -06:00
|
|
|
void setShowWellPathAttributesInLegend( bool on );
|
|
|
|
void setShowWellPathCompletionsInLegend( bool on );
|
2020-02-07 04:08:47 -06:00
|
|
|
void setShowBothSidesOfWell( bool on );
|
2019-09-06 03:40:57 -05:00
|
|
|
void setWellPathAttributesSource( RimWellPath* wellPath );
|
|
|
|
|
2020-06-30 00:18:07 -05:00
|
|
|
void setOverburdenHeight( double overburdenHeight );
|
|
|
|
void setUnderburdenHeight( double underburdenHeight );
|
|
|
|
|
2019-11-15 03:12:19 -06:00
|
|
|
RimWellPath* wellPathAttributeSource() const;
|
2015-08-30 19:06:37 -05:00
|
|
|
|
2022-01-17 06:14:21 -06:00
|
|
|
caf::PdmObject* findPdmObjectFromPlotCurve( const RiuPlotCurve* curve ) const override;
|
2019-09-06 03:40:57 -05:00
|
|
|
|
|
|
|
void setLogarithmicScale( bool enable );
|
2021-01-18 06:40:44 -06:00
|
|
|
bool isLogarithmicScale() const;
|
2015-12-09 04:32:46 -06:00
|
|
|
|
2020-06-23 08:35:17 -05:00
|
|
|
std::map<int, std::vector<RimWellLogCurve*>> visibleStackedCurves();
|
2017-03-09 07:27:41 -06:00
|
|
|
|
2019-10-11 08:54:19 -05:00
|
|
|
std::vector<RimWellLogCurve*> curves() const;
|
|
|
|
std::vector<RimWellLogCurve*> visibleCurves() const;
|
2017-03-09 07:27:41 -06:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void uiOrderingForRftPltFormations( caf::PdmUiOrdering& uiOrdering );
|
2022-10-13 06:03:55 -05:00
|
|
|
void uiOrderingForPropertyAxisSettings( caf::PdmUiOrdering& uiOrdering );
|
|
|
|
void enablePropertyAxis( bool enable );
|
|
|
|
bool isPropertyAxisEnabled() const;
|
2017-11-03 02:58:08 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void setFormationsForCaseWithSimWellOnly( bool caseWithSimWellOnly );
|
2022-02-14 04:49:37 -06:00
|
|
|
void updatePropertyValueAxisAndGridTickIntervals();
|
2018-01-26 03:28:24 -06:00
|
|
|
|
2019-11-15 06:35:39 -06:00
|
|
|
void updateLegend() override;
|
2019-09-06 03:40:57 -05:00
|
|
|
|
2019-11-15 03:12:19 -06:00
|
|
|
QString asciiDataForPlotExport() const override;
|
2019-10-11 08:54:19 -05:00
|
|
|
|
2022-04-01 08:57:11 -05:00
|
|
|
void onAxisSelected( RiuPlotAxis axis, bool toggle ) override;
|
2023-02-26 03:48:40 -06:00
|
|
|
void onChildDeleted( caf::PdmChildArrayFieldHandle* childArray, std::vector<caf::PdmObjectHandle*>& referringObjects ) override;
|
2019-10-11 08:54:19 -05:00
|
|
|
|
2019-10-25 02:40:57 -05:00
|
|
|
void updateAxes() override;
|
|
|
|
|
2023-02-26 03:48:40 -06:00
|
|
|
static CurveSamplingPointData curveSamplingPointData( RigEclipseWellLogExtractor* extractor, RigResultAccessor* resultAccessor );
|
|
|
|
static CurveSamplingPointData curveSamplingPointData( RigGeoMechWellLogExtractor* extractor, const RigFemResultAddress& resultAddress );
|
2020-05-29 07:54:47 -05:00
|
|
|
|
|
|
|
static void findRegionNamesToPlot( const CurveSamplingPointData& curveData,
|
|
|
|
const std::vector<QString>& formationNamesVector,
|
|
|
|
RimWellLogPlot::DepthTypeEnum depthType,
|
|
|
|
std::vector<QString>* formationNamesToPlot,
|
|
|
|
std::vector<std::pair<double, double>>* yValues );
|
|
|
|
|
|
|
|
static std::vector<QString> formationNamesVector( RimCase* rimCase );
|
2020-06-23 08:35:17 -05:00
|
|
|
void updateStackedCurveData();
|
2020-05-29 07:54:47 -05:00
|
|
|
|
2020-06-30 00:18:07 -05:00
|
|
|
static void addOverburden( std::vector<QString>& namesVector, CurveSamplingPointData& curveData, double height );
|
|
|
|
static void addUnderburden( std::vector<QString>& namesVector, CurveSamplingPointData& curveData, double height );
|
|
|
|
|
2021-06-28 06:04:29 -05:00
|
|
|
void setCurvesTreeVisibility( bool isVisible );
|
|
|
|
|
2021-06-28 07:25:35 -05:00
|
|
|
void setEnsembleWellLogCurveSet( RimEnsembleWellLogCurveSet* curveSet );
|
2022-10-24 09:24:51 -05:00
|
|
|
void updateAxesVisibility( RiaDefines::Orientation orientation, bool isFirstTrack, bool isLastTrack );
|
2022-11-14 03:55:08 -06:00
|
|
|
void updateDepthMarkerLine();
|
2021-06-28 07:25:35 -05:00
|
|
|
|
2023-03-06 07:34:22 -06:00
|
|
|
void setAutoCheckStateBasedOnCurveData( bool enable );
|
|
|
|
void updateCheckStateBasedOnCurveData();
|
|
|
|
|
2019-11-15 03:12:19 -06:00
|
|
|
protected:
|
|
|
|
// RimViewWindow overrides
|
2020-01-16 05:32:40 -06:00
|
|
|
void deleteViewWidget() override;
|
|
|
|
void onLoadDataAndUpdate() override;
|
2023-02-26 03:48:40 -06:00
|
|
|
void onChildrenUpdated( caf::PdmChildArrayFieldHandle* childArray, std::vector<caf::PdmObjectHandle*>& updatedObjects ) override;
|
2019-11-15 03:12:19 -06:00
|
|
|
|
2017-10-26 03:18:42 -05:00
|
|
|
private:
|
2022-01-17 06:14:21 -06:00
|
|
|
RiuPlotWidget* doCreatePlotViewWidget( QWidget* mainWindowParent = nullptr ) override;
|
2020-01-16 05:32:40 -06:00
|
|
|
|
2019-11-15 03:12:19 -06:00
|
|
|
void cleanupBeforeClose();
|
|
|
|
void detachAllPlotItems();
|
2022-02-14 04:49:37 -06:00
|
|
|
void calculatePropertyValueZoomRange();
|
|
|
|
void calculateDepthZoomRange();
|
2019-10-11 08:54:19 -05:00
|
|
|
|
2022-02-14 04:49:37 -06:00
|
|
|
void updatePropertyValueZoom();
|
|
|
|
void updateDepthZoom();
|
2019-10-11 08:54:19 -05:00
|
|
|
|
2022-02-23 06:57:02 -06:00
|
|
|
RiuPlotAxis depthAxis() const;
|
|
|
|
RiuPlotAxis valueAxis() const;
|
2022-02-07 04:44:20 -06:00
|
|
|
|
2020-05-09 04:23:58 -05:00
|
|
|
int axisFontSize() const;
|
|
|
|
|
2020-02-12 04:43:15 -06:00
|
|
|
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
2020-07-01 01:51:48 -05:00
|
|
|
void curveDataChanged( const caf::SignalEmitter* emitter );
|
2020-06-24 08:28:38 -05:00
|
|
|
void curveVisibilityChanged( const caf::SignalEmitter* emitter, bool visible );
|
|
|
|
void curveAppearanceChanged( const caf::SignalEmitter* emitter );
|
2020-08-04 01:32:26 -05:00
|
|
|
void curveStackingChanged( const caf::SignalEmitter* emitter, bool stacked );
|
2019-10-11 08:54:19 -05:00
|
|
|
|
2022-05-29 06:01:27 -05:00
|
|
|
QList<caf::PdmOptionItemInfo> calculateValueOptions( const caf::PdmFieldHandle* fieldNeedingOptions ) override;
|
2015-12-09 00:55:35 -06:00
|
|
|
|
2019-10-11 08:54:19 -05:00
|
|
|
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
|
|
|
|
void initAfterRead() override;
|
2023-02-26 03:48:40 -06:00
|
|
|
void defineEditorAttribute( const caf::PdmFieldHandle* field, QString uiConfigName, caf::PdmUiEditorAttribute* attribute ) override;
|
2019-10-11 08:54:19 -05:00
|
|
|
|
2018-10-18 12:45:57 -05:00
|
|
|
caf::PdmFieldHandle* userDescriptionField() override;
|
2015-08-27 09:13:49 -05:00
|
|
|
|
2022-02-14 04:49:37 -06:00
|
|
|
void computeAndSetPropertyValueRangeMinForLogarithmicScale();
|
2017-10-27 04:41:19 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
static void simWellOptionItems( QList<caf::PdmOptionItemInfo>* options, RimCase* eclCase );
|
|
|
|
|
|
|
|
static RigEclipseWellLogExtractor* createSimWellExtractor( RimWellLogPlotCollection* wellLogCollection,
|
|
|
|
RimCase* rimCase,
|
|
|
|
const QString& simWellName,
|
|
|
|
int branchIndex,
|
|
|
|
bool useBranchDetection );
|
|
|
|
|
|
|
|
void setFormationFieldsUiReadOnly( bool readOnly = true );
|
2017-11-05 05:26:27 -06:00
|
|
|
|
2019-09-25 04:59:31 -05:00
|
|
|
void updateRegionAnnotationsOnPlot();
|
2017-10-25 07:41:54 -05:00
|
|
|
void updateFormationNamesOnPlot();
|
2020-05-13 23:39:55 -05:00
|
|
|
void updateResultPropertyNamesOnPlot();
|
2019-09-25 04:59:31 -05:00
|
|
|
void updateCurveDataRegionsOnPlot();
|
2018-08-30 07:03:58 -05:00
|
|
|
void updateWellPathAttributesOnPlot();
|
2019-09-25 04:59:31 -05:00
|
|
|
void removeRegionAnnotations();
|
2015-12-09 00:55:35 -06:00
|
|
|
void updateAxisScaleEngine();
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
std::pair<double, double> adjustXRange( double minValue, double maxValue, double tickInterval );
|
2018-07-09 01:54:59 -05:00
|
|
|
|
2022-06-17 10:24:58 -05:00
|
|
|
std::pair<double, double> extendMinMaxRange( double minValue, double maxValue, double factor );
|
|
|
|
|
2018-09-05 07:03:18 -05:00
|
|
|
void updateWellPathAttributesCollection();
|
2019-09-06 03:40:57 -05:00
|
|
|
|
2020-05-13 23:39:55 -05:00
|
|
|
RimDepthTrackPlot* parentWellLogPlot() const;
|
2019-10-11 08:54:19 -05:00
|
|
|
|
2020-01-16 05:32:40 -06:00
|
|
|
void handleWheelEvent( QWheelEvent* event ) override;
|
2020-02-07 06:00:48 -06:00
|
|
|
void doUpdateLayout() override;
|
2020-01-16 05:32:40 -06:00
|
|
|
|
2021-01-15 03:32:36 -06:00
|
|
|
std::vector<std::pair<double, double>> waterAndRockRegions( RiaDefines::DepthTypeEnum depthType,
|
|
|
|
const RigGeoMechWellLogExtractor* extractor ) const;
|
2020-02-07 04:08:47 -06:00
|
|
|
|
2020-06-24 08:28:38 -05:00
|
|
|
void connectCurveSignals( RimWellLogCurve* curve );
|
2022-06-16 06:55:42 -05:00
|
|
|
bool isEmptyVisiblePropertyRange() const;
|
2020-06-24 08:28:38 -05:00
|
|
|
|
2015-08-27 09:13:49 -05:00
|
|
|
private:
|
2022-10-13 06:03:55 -05:00
|
|
|
caf::PdmField<QString> m_description;
|
2019-10-11 08:54:19 -05:00
|
|
|
caf::PdmChildArrayField<RimWellLogCurve*> m_curves;
|
|
|
|
|
2022-10-13 06:03:55 -05:00
|
|
|
// Property value axis
|
|
|
|
caf::PdmField<bool> m_isPropertyAxisEnabled;
|
|
|
|
caf::PdmField<double> m_visiblePropertyValueRangeMin;
|
|
|
|
caf::PdmField<double> m_visiblePropertyValueRangeMax;
|
2022-02-14 04:49:37 -06:00
|
|
|
caf::PdmField<bool> m_isAutoScalePropertyValuesEnabled;
|
2022-10-13 06:03:55 -05:00
|
|
|
caf::PdmField<bool> m_isPropertyLogarithmicScaleEnabled;
|
2022-06-17 10:24:58 -05:00
|
|
|
caf::PdmField<bool> m_invertPropertyValueAxis;
|
2022-02-14 04:49:37 -06:00
|
|
|
caf::PdmField<RimWellLogPlot::AxisGridEnum> m_propertyValueAxisGridVisibility;
|
2022-10-13 06:03:55 -05:00
|
|
|
caf::PdmField<bool> m_propertyAxisMinAndMaxTicksOnly;
|
|
|
|
caf::PdmField<bool> m_explicitTickIntervalsPropertyValueAxis;
|
|
|
|
caf::PdmField<double> m_majorTickIntervalPropertyAxis;
|
|
|
|
caf::PdmField<double> m_minorTickIntervalPropertyAxis;
|
2021-11-01 07:09:25 -05:00
|
|
|
|
2022-10-13 06:03:55 -05:00
|
|
|
// Depth axis
|
|
|
|
caf::PdmField<double> m_visibleDepthRangeMin;
|
|
|
|
caf::PdmField<double> m_visibleDepthRangeMax;
|
2018-06-27 05:42:11 -05:00
|
|
|
|
2020-05-09 04:23:58 -05:00
|
|
|
caf::PdmField<caf::FontTools::RelativeSizeEnum> m_axisFontSize;
|
|
|
|
|
2019-09-25 04:59:31 -05:00
|
|
|
caf::PdmField<RegionAnnotationTypeEnum> m_regionAnnotationType;
|
|
|
|
caf::PdmField<RegionAnnotationDisplayEnum> m_regionAnnotationDisplay;
|
2020-05-22 02:01:08 -05:00
|
|
|
caf::PdmPtrField<RimColorLegend*> m_colorShadingLegend;
|
2019-09-25 04:59:31 -05:00
|
|
|
caf::PdmField<int> m_colorShadingTransparency;
|
|
|
|
caf::PdmField<bool> m_showRegionLabels;
|
2021-10-04 12:43:27 -05:00
|
|
|
caf::PdmField<caf::FontTools::RelativeSizeEnum> m_regionLabelFontSize;
|
2019-09-25 04:59:31 -05:00
|
|
|
caf::PdmField<caf::AppEnum<FormationSource>> m_formationSource;
|
|
|
|
caf::PdmPtrField<RimCase*> m_formationCase;
|
|
|
|
caf::PdmField<caf::AppEnum<TrajectoryType>> m_formationTrajectoryType;
|
|
|
|
caf::PdmPtrField<RimWellPath*> m_formationWellPathForSourceCase;
|
|
|
|
caf::PdmPtrField<RimWellPath*> m_formationWellPathForSourceWellPath;
|
|
|
|
caf::PdmField<QString> m_formationSimWellName;
|
|
|
|
caf::PdmField<int> m_formationBranchIndex;
|
|
|
|
caf::PdmField<caf::AppEnum<RigWellPathFormations::FormationLevel>> m_formationLevel;
|
|
|
|
caf::PdmField<bool> m_showformationFluids;
|
|
|
|
caf::PdmField<bool> m_formationBranchDetection;
|
|
|
|
caf::PdmField<bool> m_showWellPathAttributes;
|
|
|
|
caf::PdmField<bool> m_showWellPathCompletions;
|
|
|
|
caf::PdmField<bool> m_showWellPathComponentsBothSides;
|
|
|
|
caf::PdmField<bool> m_showWellPathComponentLabels;
|
|
|
|
caf::PdmField<bool> m_wellPathAttributesInLegend;
|
|
|
|
caf::PdmField<bool> m_wellPathCompletionsInLegend;
|
|
|
|
caf::PdmPtrField<RimWellPath*> m_wellPathComponentSource;
|
|
|
|
caf::PdmPtrField<RimWellPathAttributeCollection*> m_wellPathAttributeCollection;
|
2020-05-13 23:39:55 -05:00
|
|
|
caf::PdmChildField<RimEclipseResultDefinition*> m_resultDefinition;
|
2020-06-30 00:18:07 -05:00
|
|
|
caf::PdmField<double> m_overburdenHeight;
|
|
|
|
caf::PdmField<double> m_underburdenHeight;
|
2021-05-28 01:54:27 -05:00
|
|
|
caf::PdmChildField<RimEnsembleWellLogCurveSet*> m_ensembleWellLogCurveSet;
|
2019-09-10 06:23:29 -05:00
|
|
|
|
2023-03-06 07:34:22 -06:00
|
|
|
caf::PdmField<bool> m_autoCheckStateBasedOnCurveData;
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
std::vector<std::unique_ptr<RiuWellPathComponentPlotItem>> m_wellPathAttributePlotObjects;
|
2017-10-25 07:41:54 -05:00
|
|
|
|
2018-01-26 03:28:24 -06:00
|
|
|
bool m_formationsForCaseWithSimWellOnly;
|
|
|
|
|
2019-10-11 08:54:19 -05:00
|
|
|
QPointer<RiuWellLogTrack> m_plotWidget;
|
2017-10-26 03:01:56 -05:00
|
|
|
std::unique_ptr<RiuPlotAnnotationTool> m_annotationTool;
|
2020-02-04 02:45:32 -06:00
|
|
|
|
2022-10-13 06:03:55 -05:00
|
|
|
QString m_propertyValueAxisTitle;
|
|
|
|
double m_availablePropertyValueRangeMin;
|
|
|
|
double m_availablePropertyValueRangeMax;
|
|
|
|
double m_availableDepthRangeMin;
|
|
|
|
double m_availableDepthRangeMax;
|
2015-08-26 05:27:29 -05:00
|
|
|
};
|