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
|
|
|
|
|
2019-09-30 02:48:05 -05:00
|
|
|
#include "RiaDefines.h"
|
2020-01-29 05:52:07 -06:00
|
|
|
#include "RiaWellLogUnitTools.h"
|
2020-08-11 02:11:10 -05:00
|
|
|
#include "RimStackablePlotCurve.h"
|
2017-02-24 07:14:29 -06:00
|
|
|
|
2022-11-30 16:13:39 -06:00
|
|
|
#include "cafPdmPtrField.h"
|
2020-06-24 08:28:38 -05:00
|
|
|
#include "cafSignal.h"
|
2017-02-24 07:14:29 -06:00
|
|
|
#include "cvfObject.h"
|
2015-12-08 13:39:06 -06:00
|
|
|
|
2015-10-15 04:27:12 -05:00
|
|
|
class RigWellLogCurveData;
|
2022-11-30 16:13:39 -06:00
|
|
|
class RimWellPath;
|
2016-05-23 08:44:15 -05:00
|
|
|
|
|
|
|
//==================================================================================================
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
|
|
|
///
|
2016-05-23 08:44:15 -05:00
|
|
|
//==================================================================================================
|
2020-08-11 02:11:10 -05:00
|
|
|
class RimWellLogCurve : public RimStackablePlotCurve
|
2016-05-23 08:44:15 -05:00
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
2019-09-06 03:40:57 -05:00
|
|
|
|
2016-05-23 08:44:15 -05:00
|
|
|
public:
|
|
|
|
RimWellLogCurve();
|
2018-10-18 12:45:57 -05:00
|
|
|
~RimWellLogCurve() override;
|
2016-05-23 08:44:15 -05:00
|
|
|
|
2021-06-09 07:51:26 -05:00
|
|
|
void setDepthUnit( RiaDefines::DepthUnitType depthUnit );
|
|
|
|
|
2022-02-14 04:49:37 -06:00
|
|
|
bool propertyValueRangeInData( double* minimumValue, double* maximumValue ) const;
|
|
|
|
bool depthValueRangeInData( double* minimumValue, double* maximumValue ) const;
|
|
|
|
|
2022-06-16 06:55:42 -05:00
|
|
|
const RigWellLogCurveData* curveData() const;
|
|
|
|
|
|
|
|
void updateCurveAppearance() override;
|
|
|
|
|
|
|
|
virtual QString wellName() const = 0;
|
|
|
|
virtual QString wellLogChannelUiName() const = 0;
|
|
|
|
virtual QString wellLogChannelName() const;
|
|
|
|
virtual QString wellLogChannelUnits() const = 0;
|
|
|
|
virtual QString wellDate() const { return ""; };
|
|
|
|
|
|
|
|
static QString wellLogCurveIconName();
|
|
|
|
|
|
|
|
void setOverrideCurveData( const std::vector<double>& propertyValues,
|
|
|
|
const std::vector<double>& depthValues,
|
|
|
|
const RiaCurveDataTools::CurveIntervals& curveIntervals );
|
|
|
|
|
2022-10-17 12:48:24 -05:00
|
|
|
double closestYValueForX( double xValue ) const override;
|
|
|
|
|
2022-06-16 06:55:42 -05:00
|
|
|
protected:
|
2023-01-23 08:07:48 -06:00
|
|
|
void updateZoomInParentPlot() override;
|
|
|
|
void updateLegendsInPlot() override;
|
|
|
|
void setOverrideCurveDataPropertyValueRange( double minimumValue, double maximumValue );
|
|
|
|
void calculateCurveDataPropertyValueRange();
|
2022-06-16 06:55:42 -05:00
|
|
|
|
|
|
|
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
|
|
|
|
2022-02-14 04:49:37 -06:00
|
|
|
void setPropertyValuesAndDepths( const std::vector<double>& propertyValues,
|
|
|
|
const std::vector<double>& depths,
|
|
|
|
RiaDefines::DepthTypeEnum depthType,
|
|
|
|
double rkbDiff,
|
|
|
|
RiaDefines::DepthUnitType depthUnit,
|
|
|
|
bool isExtractionCurve,
|
|
|
|
bool useLogarithmicScale,
|
|
|
|
const QString& propertyUnit = RiaWellLogUnitTools<double>::noUnitString() );
|
|
|
|
|
|
|
|
void setPropertyValuesWithMdAndTVD( const std::vector<double>& propertyValues,
|
|
|
|
const std::vector<double>& measuredDepths,
|
|
|
|
const std::vector<double>& tvDepths,
|
|
|
|
double rkbDiff,
|
|
|
|
RiaDefines::DepthUnitType depthUnit,
|
|
|
|
bool isExtractionCurve,
|
|
|
|
bool useLogarithmicScale,
|
|
|
|
const QString& propertyUnit = RiaWellLogUnitTools<double>::noUnitString() );
|
|
|
|
|
2022-06-16 06:55:42 -05:00
|
|
|
void setPropertyAndDepthValuesToPlotCurve( const std::vector<double>& propertyValues,
|
|
|
|
const std::vector<double>& depthValues );
|
|
|
|
|
2022-02-14 04:49:37 -06:00
|
|
|
void setPropertyValuesAndDepths( const std::vector<double>& propertyValues,
|
|
|
|
const std::map<RiaDefines::DepthTypeEnum, std::vector<double>>& depths,
|
|
|
|
double rkbDiff,
|
|
|
|
RiaDefines::DepthUnitType depthUnit,
|
|
|
|
bool isExtractionCurve,
|
|
|
|
bool useLogarithmicScale,
|
|
|
|
const QString& propertyUnit = RiaWellLogUnitTools<double>::noUnitString() );
|
2019-09-30 02:48:05 -05:00
|
|
|
|
2022-06-16 06:55:42 -05:00
|
|
|
void setPropertyAndDepthsAndErrors( const std::vector<double>& propertyValues,
|
|
|
|
const std::vector<double>& depthValues,
|
|
|
|
const std::vector<double>& errorValues );
|
2018-09-07 06:39:50 -05:00
|
|
|
|
2022-02-23 06:57:02 -06:00
|
|
|
bool isVerticalCurve() const;
|
|
|
|
RiuPlotAxis depthAxis() const;
|
|
|
|
RiuPlotAxis valueAxis() const;
|
|
|
|
|
2019-09-30 02:48:05 -05:00
|
|
|
private:
|
2019-11-29 03:02:34 -06:00
|
|
|
cvf::ref<RigWellLogCurveData> m_curveData;
|
2022-02-14 04:49:37 -06:00
|
|
|
std::pair<double, double> m_curveDataPropertyValueRange;
|
2016-05-23 08:44:15 -05:00
|
|
|
};
|