2015-08-26 12:27:29 +02: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 16:13:49 +02:00
|
|
|
#include "cafPdmField.h"
|
2015-08-27 16:43:54 +02:00
|
|
|
#include "cafPdmChildArrayField.h"
|
|
|
|
|
|
2015-08-31 02:06:37 +02:00
|
|
|
#include <QPointer>
|
|
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
2015-08-27 16:43:54 +02:00
|
|
|
class RimWellLogPlotCurve;
|
2015-09-18 12:29:23 +02:00
|
|
|
class RiuWellLogTrackPlot;
|
2015-08-26 12:27:29 +02:00
|
|
|
|
2015-09-17 11:34:03 +02:00
|
|
|
class QwtPlotCurve;
|
|
|
|
|
|
2015-08-26 12:27:29 +02:00
|
|
|
//==================================================================================================
|
|
|
|
|
///
|
|
|
|
|
///
|
|
|
|
|
//==================================================================================================
|
2015-09-18 12:29:23 +02:00
|
|
|
class RimWellLogPlotTrack : public caf::PdmObject
|
2015-08-26 12:27:29 +02:00
|
|
|
{
|
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
public:
|
2015-09-18 12:29:23 +02:00
|
|
|
RimWellLogPlotTrack();
|
|
|
|
|
virtual ~RimWellLogPlotTrack();
|
2015-08-27 16:13:49 +02:00
|
|
|
|
2015-09-18 11:07:21 +02:00
|
|
|
void setDescription(const QString& description);
|
|
|
|
|
|
2015-09-01 09:06:02 +02:00
|
|
|
void addCurve(RimWellLogPlotCurve* curve);
|
2015-10-22 16:56:10 +02:00
|
|
|
void insertCurve(RimWellLogPlotCurve* curve, size_t index);
|
2015-10-19 12:07:17 +02:00
|
|
|
void removeCurve(RimWellLogPlotCurve* curve);
|
2015-10-22 16:56:10 +02:00
|
|
|
void moveCurves(RimWellLogPlotCurve* insertAfterCurve, const std::vector<RimWellLogPlotCurve*>& curvesToMove);
|
2015-09-02 16:46:30 +02:00
|
|
|
size_t curveCount() { return curves.size(); }
|
|
|
|
|
|
2015-09-03 14:21:08 +02:00
|
|
|
void recreateViewer();
|
2015-09-03 15:10:02 +02:00
|
|
|
void detachAllCurves();
|
|
|
|
|
|
2015-09-03 08:09:06 +02:00
|
|
|
void loadDataAndUpdate();
|
|
|
|
|
|
2015-09-01 14:50:26 +02:00
|
|
|
bool availableDepthRange(double* minimumDepth, double* maximumDepth);
|
2015-10-28 10:06:35 +01:00
|
|
|
void alignDepthZoomToPlotAndZoomAllX();
|
2015-08-31 02:06:37 +02:00
|
|
|
|
2015-09-18 12:29:23 +02:00
|
|
|
RiuWellLogTrackPlot* viewer();
|
2015-09-17 11:34:03 +02:00
|
|
|
|
|
|
|
|
RimWellLogPlotCurve* curveDefinitionFromCurve(const QwtPlotCurve* curve) const;
|
2015-08-31 02:06:37 +02:00
|
|
|
|
2015-08-27 16:13:49 +02:00
|
|
|
protected:
|
|
|
|
|
|
|
|
|
|
// Overridden PDM methods
|
|
|
|
|
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue);
|
|
|
|
|
virtual caf::PdmFieldHandle* objectToggleField();
|
2015-09-18 11:07:21 +02:00
|
|
|
virtual caf::PdmFieldHandle* userDescriptionField();
|
2015-09-18 11:41:14 +02:00
|
|
|
virtual void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering);
|
2015-08-27 16:13:49 +02:00
|
|
|
|
2015-09-22 11:54:58 +02:00
|
|
|
private:
|
2015-10-27 14:44:53 +01:00
|
|
|
void zoomAllXAxis();
|
2015-09-22 11:54:58 +02:00
|
|
|
|
2015-08-27 16:13:49 +02:00
|
|
|
private:
|
2015-09-11 10:44:10 +02:00
|
|
|
caf::PdmField<bool> m_show;
|
2015-09-18 11:07:21 +02:00
|
|
|
caf::PdmField<QString> m_userName;
|
2015-09-02 16:46:30 +02:00
|
|
|
caf::PdmChildArrayField<RimWellLogPlotCurve*> curves;
|
2015-09-18 11:41:14 +02:00
|
|
|
caf::PdmField<double> m_visibleXRangeMin;
|
|
|
|
|
caf::PdmField<double> m_visibleXRangeMax;
|
2015-09-02 16:46:30 +02:00
|
|
|
|
2015-09-22 11:54:58 +02:00
|
|
|
QPointer<RiuWellLogTrackPlot> m_wellLogTrackPlotWidget;
|
2015-08-26 12:27:29 +02:00
|
|
|
};
|