2015-08-26 05:27:29 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2015- Statoil ASA
|
|
|
|
// Copyright (C) 2015- Ceetron Solutions AS
|
|
|
|
//
|
|
|
|
// 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
|
|
|
|
|
2015-08-27 09:13:49 -05:00
|
|
|
#include "cafPdmField.h"
|
2015-09-03 03:55:54 -05:00
|
|
|
#include "cafPdmFieldCvfColor.h"
|
2015-09-18 06:02:33 -05:00
|
|
|
#include "cafPdmObject.h"
|
2015-08-26 05:27:29 -05:00
|
|
|
|
2015-10-15 04:27:12 -05:00
|
|
|
#include "RigWellLogCurveData.h"
|
|
|
|
|
2015-08-30 19:06:37 -05:00
|
|
|
#include <vector>
|
|
|
|
|
2015-10-15 04:27:12 -05:00
|
|
|
class RigWellLogCurveData;
|
2015-09-18 05:29:23 -05:00
|
|
|
class RiuWellLogTrackPlot;
|
2015-09-17 11:42:35 -05:00
|
|
|
class RiuWellLogPlotCurve;
|
2015-08-30 19:06:37 -05:00
|
|
|
class QwtPlotCurve;
|
|
|
|
class QString;
|
|
|
|
|
2015-08-26 05:27:29 -05:00
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
2015-08-27 09:13:49 -05:00
|
|
|
class RimWellLogPlotCurve : public caf::PdmObject
|
2015-08-26 05:27:29 -05:00
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
public:
|
2015-08-27 09:13:49 -05:00
|
|
|
RimWellLogPlotCurve();
|
|
|
|
virtual ~RimWellLogPlotCurve();
|
|
|
|
|
2015-09-03 03:55:54 -05:00
|
|
|
void setColor(const cvf::Color3f& color);
|
2015-09-03 08:10:02 -05:00
|
|
|
|
|
|
|
bool depthRange(double* minimumDepth, double* maximumDepth) const;
|
2015-09-18 03:50:01 -05:00
|
|
|
bool valueRange(double* minimumValue, double* maximumValue) const;
|
2015-09-03 03:55:54 -05:00
|
|
|
|
2015-09-18 05:29:23 -05:00
|
|
|
void setPlot(RiuWellLogTrackPlot* plot);
|
2015-09-03 08:10:02 -05:00
|
|
|
void detachCurve();
|
2015-09-17 04:34:03 -05:00
|
|
|
|
2015-09-18 06:02:33 -05:00
|
|
|
bool isCurveVisibile();
|
|
|
|
|
2015-10-15 04:27:12 -05:00
|
|
|
QwtPlotCurve* plotCurve() const;
|
|
|
|
const RigWellLogCurveData* curveData() const;
|
2015-09-17 04:34:03 -05:00
|
|
|
|
2015-10-15 04:27:12 -05:00
|
|
|
QString name() const { return m_curveName; }
|
2015-09-22 08:23:52 -05:00
|
|
|
void updateCurveName();
|
2015-09-18 06:43:09 -05:00
|
|
|
void updatePlotTitle();
|
|
|
|
|
2015-10-16 04:15:04 -05:00
|
|
|
virtual QString wellName() const = 0;
|
2015-10-15 07:37:57 -05:00
|
|
|
virtual QString wellLogChannelName() const = 0;
|
2015-10-16 06:33:35 -05:00
|
|
|
virtual QString wellDate() const { return ""; };
|
2015-09-18 06:02:33 -05:00
|
|
|
virtual void updatePlotData() = 0;
|
2015-09-01 02:06:02 -05:00
|
|
|
|
2015-08-27 09:13:49 -05:00
|
|
|
protected:
|
2015-09-18 06:02:33 -05:00
|
|
|
virtual QString createCurveName() = 0;
|
|
|
|
|
|
|
|
void updatePlotConfiguration();
|
2015-09-03 02:49:36 -05:00
|
|
|
void updateCurveVisibility();
|
2015-09-22 04:54:58 -05:00
|
|
|
void updateTrackAndPlotFromCurveData();
|
2015-09-22 08:23:52 -05:00
|
|
|
void updateOptionSensitivity();
|
2015-08-27 09:13:49 -05:00
|
|
|
|
|
|
|
// Overridden PDM methods
|
2015-09-18 06:02:33 -05:00
|
|
|
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue);
|
|
|
|
virtual caf::PdmFieldHandle* objectToggleField();
|
|
|
|
virtual caf::PdmFieldHandle* userDescriptionField();
|
2015-09-18 06:43:09 -05:00
|
|
|
virtual void initAfterRead();
|
2015-09-01 04:25:09 -05:00
|
|
|
|
2015-08-27 09:13:49 -05:00
|
|
|
|
2015-10-15 04:27:12 -05:00
|
|
|
RiuWellLogTrackPlot* m_plot;
|
|
|
|
RiuWellLogPlotCurve* m_plotCurve;
|
|
|
|
cvf::ref<RigWellLogCurveData> m_curveData;
|
2015-09-18 06:02:33 -05:00
|
|
|
|
|
|
|
caf::PdmField<bool> m_showCurve;
|
2015-09-22 08:23:52 -05:00
|
|
|
caf::PdmField<QString> m_curveName;
|
2015-09-18 06:02:33 -05:00
|
|
|
caf::PdmField<QString> m_customCurveName;
|
2015-09-22 08:23:52 -05:00
|
|
|
|
|
|
|
caf::PdmField<bool> m_autoName;
|
2015-09-18 06:02:33 -05:00
|
|
|
caf::PdmField<cvf::Color3f> m_curveColor;
|
2015-08-26 05:27:29 -05:00
|
|
|
};
|