2015-09-15 15:23:25 +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
|
|
|
|
|
|
2015-11-04 16:22:53 +01:00
|
|
|
#include "RimWellLogCurve.h"
|
2015-09-15 15:23:25 +02:00
|
|
|
|
2015-09-16 15:31:04 +02:00
|
|
|
#include "cafPdmPtrField.h"
|
|
|
|
|
#include "cafPdmField.h"
|
|
|
|
|
|
2015-09-15 15:23:25 +02:00
|
|
|
#include <vector>
|
|
|
|
|
|
2015-09-16 15:31:04 +02:00
|
|
|
class RimWellPath;
|
2015-09-18 09:16:59 +02:00
|
|
|
class RimWellLogFileChannel;
|
2017-10-19 16:12:22 +02:00
|
|
|
class RimWellLogFile;
|
2015-09-16 15:31:04 +02:00
|
|
|
|
2015-09-15 15:23:25 +02:00
|
|
|
//==================================================================================================
|
|
|
|
|
///
|
|
|
|
|
///
|
|
|
|
|
//==================================================================================================
|
2015-11-04 16:19:38 +01:00
|
|
|
class RimWellLogFileCurve : public RimWellLogCurve
|
2015-09-15 15:23:25 +02:00
|
|
|
{
|
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
RimWellLogFileCurve();
|
2018-10-18 19:45:57 +02:00
|
|
|
~RimWellLogFileCurve() override;
|
2015-09-15 15:23:25 +02:00
|
|
|
|
2015-09-16 15:31:04 +02:00
|
|
|
void setWellPath(RimWellPath* wellPath);
|
2017-10-05 10:54:52 +02:00
|
|
|
RimWellPath* wellPath() const;
|
2015-09-16 15:31:04 +02:00
|
|
|
void setWellLogChannelName(const QString& name);
|
2017-10-19 16:12:22 +02:00
|
|
|
void setWellLogFile(RimWellLogFile* wellLogFile);
|
|
|
|
|
|
2015-09-18 13:02:33 +02:00
|
|
|
// Overrides from RimWellLogPlotCurve
|
2018-10-18 19:45:57 +02:00
|
|
|
QString wellName() const override;
|
|
|
|
|
QString wellLogChannelName() const override;
|
2017-11-01 15:11:14 +01:00
|
|
|
|
|
|
|
|
RimWellLogFile* wellLogFile() const;
|
2015-09-16 15:31:04 +02:00
|
|
|
|
|
|
|
|
protected:
|
2015-09-18 13:02:33 +02:00
|
|
|
// Overrides from RimWellLogPlotCurve
|
2018-10-18 19:45:57 +02:00
|
|
|
QString createCurveAutoName() override;
|
|
|
|
|
void onLoadDataAndUpdate(bool updateParentPlot) override;
|
2015-09-18 13:02:33 +02:00
|
|
|
|
|
|
|
|
// Pdm overrrides
|
2018-10-18 19:45:57 +02:00
|
|
|
void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue) override;
|
|
|
|
|
void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering) override;
|
|
|
|
|
void defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName = "") override;
|
|
|
|
|
QList<caf::PdmOptionItemInfo> calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions, bool * useOptionsOnly) override;
|
|
|
|
|
void initAfterRead() override;
|
2015-09-16 15:31:04 +02:00
|
|
|
|
2017-10-24 11:36:52 +02:00
|
|
|
bool isRftPlotChild() const;
|
2017-10-23 19:09:08 +02:00
|
|
|
|
2015-09-16 15:31:04 +02:00
|
|
|
protected:
|
2017-10-19 16:12:22 +02:00
|
|
|
caf::PdmPtrField<RimWellPath*> m_wellPath;
|
|
|
|
|
caf::PdmPtrField<RimWellLogFile*> m_wellLogFile;
|
|
|
|
|
caf::PdmField<QString> m_wellLogChannnelName;
|
|
|
|
|
caf::PdmField<QString> m_wellLogChannnelUnit;
|
2015-09-15 15:23:25 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|