2015-08-26 12:27:29 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
|
|
|
|
// Copyright (C) 2015- Statoil ASA
|
|
|
|
|
// Copyright (C) 2015- Ceetron Solutions AS
|
2019-09-06 10:40:57 +02:00
|
|
|
//
|
2015-08-26 12:27:29 +02: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 10:40:57 +02:00
|
|
|
//
|
2015-08-26 12:27:29 +02: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 10:40:57 +02:00
|
|
|
//
|
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2015-08-26 12:27:29 +02:00
|
|
|
// for more details.
|
|
|
|
|
//
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2019-09-30 09:48:05 +02:00
|
|
|
#include "RiaDefines.h"
|
2020-01-29 12:52:07 +01:00
|
|
|
#include "RiaWellLogUnitTools.h"
|
2016-05-23 17:33:44 +02:00
|
|
|
#include "RimPlotCurve.h"
|
2017-02-24 14:14:29 +01:00
|
|
|
|
|
|
|
|
#include "cvfObject.h"
|
2015-12-08 20:39:06 +01:00
|
|
|
|
2015-10-15 11:27:12 +02:00
|
|
|
class RigWellLogCurveData;
|
2016-05-23 15:44:15 +02:00
|
|
|
|
|
|
|
|
//==================================================================================================
|
2019-09-06 10:40:57 +02:00
|
|
|
///
|
|
|
|
|
///
|
2016-05-23 15:44:15 +02:00
|
|
|
//==================================================================================================
|
|
|
|
|
class RimWellLogCurve : public RimPlotCurve
|
|
|
|
|
{
|
|
|
|
|
CAF_PDM_HEADER_INIT;
|
2019-09-06 10:40:57 +02:00
|
|
|
|
2016-05-23 15:44:15 +02:00
|
|
|
public:
|
|
|
|
|
public:
|
|
|
|
|
RimWellLogCurve();
|
2018-10-18 19:45:57 +02:00
|
|
|
~RimWellLogCurve() override;
|
2016-05-23 15:44:15 +02:00
|
|
|
|
2019-09-11 15:54:59 +02:00
|
|
|
bool xValueRangeInData( double* minimumValue, double* maximumValue ) const;
|
2019-10-11 15:54:19 +02:00
|
|
|
bool yValueRangeInData( double* minimumValue, double* maximumValue ) const;
|
2019-09-06 10:40:57 +02:00
|
|
|
|
2019-11-19 13:19:56 +01:00
|
|
|
void setValuesAndDepths( const std::vector<double>& xValues,
|
|
|
|
|
const std::vector<double>& depths,
|
|
|
|
|
RiaDefines::DepthTypeEnum depthType,
|
2020-01-08 10:31:01 +01:00
|
|
|
double rkbDiff,
|
2019-11-19 13:19:56 +01:00
|
|
|
RiaDefines::DepthUnitType depthUnit,
|
2020-01-29 12:52:07 +01:00
|
|
|
bool isExtractionCurve,
|
|
|
|
|
const QString& xUnits = RiaWellLogUnitTools::noUnitString() );
|
2020-01-08 10:31:01 +01:00
|
|
|
void setValuesWithMdAndTVD( const std::vector<double>& xValues,
|
|
|
|
|
const std::vector<double>& measuredDepths,
|
|
|
|
|
const std::vector<double>& tvDepths,
|
|
|
|
|
double rkbDiff,
|
|
|
|
|
RiaDefines::DepthUnitType depthUnit,
|
2020-01-29 12:52:07 +01:00
|
|
|
bool isExtractionCurve,
|
|
|
|
|
const QString& xUnits = RiaWellLogUnitTools::noUnitString() );
|
2019-11-19 13:19:56 +01:00
|
|
|
void setValuesAndDepths( const std::vector<double>& xValues,
|
|
|
|
|
const std::map<RiaDefines::DepthTypeEnum, std::vector<double>>& depths,
|
2020-01-08 10:31:01 +01:00
|
|
|
double rkbDiff,
|
2019-11-19 13:19:56 +01:00
|
|
|
RiaDefines::DepthUnitType depthUnit,
|
2020-01-29 12:52:07 +01:00
|
|
|
bool isExtractionCurve,
|
|
|
|
|
const QString& xUnits = RiaWellLogUnitTools::noUnitString() );
|
2019-09-30 09:48:05 +02:00
|
|
|
|
2019-09-06 10:40:57 +02:00
|
|
|
const RigWellLogCurveData* curveData() const;
|
|
|
|
|
|
2020-01-28 10:09:23 +01:00
|
|
|
virtual QString wellName() const = 0;
|
|
|
|
|
virtual QString wellLogChannelUiName() const = 0;
|
|
|
|
|
virtual QString wellLogChannelName() const;
|
2020-01-29 12:52:07 +01:00
|
|
|
virtual QString wellLogChannelUnits() const = 0;
|
2020-02-12 11:13:38 +01:00
|
|
|
virtual QString wellDate() const { return ""; };
|
2016-05-23 15:44:15 +02:00
|
|
|
|
|
|
|
|
protected:
|
2019-09-06 10:40:57 +02:00
|
|
|
void updateZoomInParentPlot() override;
|
|
|
|
|
void updateLegendsInPlot() override;
|
2019-09-30 09:48:05 +02:00
|
|
|
void setOverrideCurveDataXRange( double minimumValue, double maximumValue );
|
2019-11-29 10:02:34 +01:00
|
|
|
void calculateCurveDataXRange();
|
2020-02-04 09:45:32 +01:00
|
|
|
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue );
|
2018-09-07 13:39:50 +02:00
|
|
|
|
2019-09-30 09:48:05 +02:00
|
|
|
private:
|
2019-11-29 10:02:34 +01:00
|
|
|
cvf::ref<RigWellLogCurveData> m_curveData;
|
|
|
|
|
std::pair<double, double> m_curveDataXRange;
|
2016-05-23 15:44:15 +02:00
|
|
|
};
|