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