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-27 09:13:49 -05:00
|
|
|
|
|
|
|
#include <QPointer>
|
|
|
|
|
|
|
|
class RiuWellLogPlot;
|
2015-08-30 19:06:37 -05:00
|
|
|
class RimWellLogPlotTrace;
|
2015-08-27 09:13:49 -05:00
|
|
|
|
2015-08-26 05:27:29 -05:00
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
2015-08-27 09:13:49 -05:00
|
|
|
class RimWellLogPlot : public caf::PdmObject
|
2015-08-26 05:27:29 -05:00
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
public:
|
2015-08-27 09:13:49 -05:00
|
|
|
RimWellLogPlot();
|
|
|
|
virtual ~RimWellLogPlot();
|
|
|
|
|
2015-08-28 07:25:14 -05:00
|
|
|
caf::PdmChildArrayField<RimWellLogPlotTrace*> traces;
|
2015-08-27 09:13:49 -05:00
|
|
|
caf::PdmField<bool> showWindow;
|
2015-09-02 08:53:49 -05:00
|
|
|
caf::PdmField< std::vector<int> > windowGeometry;
|
2015-08-27 09:13:49 -05:00
|
|
|
|
2015-08-28 07:25:14 -05:00
|
|
|
void addTrace();
|
|
|
|
|
2015-08-30 19:06:37 -05:00
|
|
|
RiuWellLogPlot* viewer();
|
|
|
|
|
2015-09-01 04:14:58 -05:00
|
|
|
void zoomDepth(double zoomFactor);
|
2015-09-02 09:30:37 -05:00
|
|
|
void panDepth(double panFactor);
|
2015-09-01 07:50:26 -05:00
|
|
|
void setDepthRange(double minimumDepth, double maximumDepth);
|
|
|
|
|
|
|
|
void updateAvailableDepthRange();
|
|
|
|
bool availableDepthRange(double* minimumDepth, double* maximumDepth);
|
|
|
|
|
|
|
|
void visibleDepthRange(double* minimumDepth, double* maximumDepth);
|
2015-09-01 04:14:58 -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);
|
2015-09-02 08:53:49 -05:00
|
|
|
virtual void initAfterRead();
|
|
|
|
virtual void setupBeforeSave();
|
2015-08-27 09:13:49 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
void updateViewerWidget();
|
|
|
|
|
|
|
|
virtual caf::PdmFieldHandle* objectToggleField();
|
|
|
|
|
2015-09-02 08:53:49 -05:00
|
|
|
|
|
|
|
|
2015-08-27 09:13:49 -05:00
|
|
|
private:
|
|
|
|
QPointer<RiuWellLogPlot> m_viewer;
|
2015-08-31 10:21:21 -05:00
|
|
|
|
2015-09-01 07:50:26 -05:00
|
|
|
caf::PdmField<double> m_minimumVisibleDepth;
|
|
|
|
caf::PdmField<double> m_maximumVisibleDepth;
|
|
|
|
|
|
|
|
double m_depthRangeMinimum;
|
|
|
|
double m_depthRangeMaximum;
|
2015-08-26 05:27:29 -05:00
|
|
|
};
|