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
|
|
|
|
|
|
|
|
#include "cafPdmObject.h"
|
2015-08-27 09:13:49 -05:00
|
|
|
#include "cafPdmField.h"
|
2015-09-03 03:55:54 -05:00
|
|
|
#include "cafPdmFieldCvfColor.h"
|
2015-08-26 05:27:29 -05:00
|
|
|
|
2015-08-30 19:06:37 -05:00
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
class RiuWellLogTracePlot;
|
|
|
|
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 08:10:02 -05:00
|
|
|
void setDescription(QString description) {m_userName = description;}
|
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-03 03:55:54 -05:00
|
|
|
|
2015-09-03 08:10:02 -05:00
|
|
|
void setPlot(RiuWellLogTracePlot* plot);
|
|
|
|
void detachCurve();
|
2015-09-17 04:34:03 -05:00
|
|
|
|
|
|
|
QwtPlotCurve* plotCurve() const { return m_plotCurve; }
|
|
|
|
|
2015-09-02 02:17:36 -05:00
|
|
|
virtual void updatePlotData();
|
2015-09-01 02:06:02 -05:00
|
|
|
|
2015-08-27 09:13:49 -05:00
|
|
|
protected:
|
2015-09-03 02:49:36 -05:00
|
|
|
void updateCurveVisibility();
|
2015-08-27 09:13:49 -05:00
|
|
|
|
|
|
|
// Overridden PDM methods
|
2015-09-01 04:25:09 -05:00
|
|
|
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue);
|
2015-08-27 09:13:49 -05:00
|
|
|
virtual caf::PdmFieldHandle* objectToggleField();
|
2015-09-01 02:32:44 -05:00
|
|
|
virtual caf::PdmFieldHandle* userDescriptionField();
|
|
|
|
|
2015-09-01 04:25:09 -05:00
|
|
|
|
2015-09-03 03:55:54 -05:00
|
|
|
caf::PdmField<bool> m_showCurve;
|
|
|
|
caf::PdmField<QString> m_userName;
|
|
|
|
caf::PdmField<cvf::Color3f> m_curveColor;
|
2015-09-01 04:25:09 -05:00
|
|
|
// caf::PdmField<Linestyle> m_lineStyle;
|
|
|
|
// caf::PdmField<int> m_lineWidth;
|
2015-08-27 09:13:49 -05:00
|
|
|
|
2015-08-30 19:06:37 -05:00
|
|
|
RiuWellLogTracePlot* m_plot;
|
|
|
|
QwtPlotCurve* m_plotCurve;
|
2015-08-26 05:27:29 -05:00
|
|
|
};
|