2015-09-02 12:34:12 +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-18 19:42:54 +02:00
|
|
|
|
2015-09-02 12:34:12 +02:00
|
|
|
#include "cafPdmPtrField.h"
|
|
|
|
|
#include "cafPdmChildField.h"
|
|
|
|
|
|
2015-09-18 19:42:54 +02:00
|
|
|
class RimCase;
|
2015-09-02 12:34:12 +02:00
|
|
|
class RimEclipseResultDefinition;
|
|
|
|
|
class RimGeoMechResultDefinition;
|
2015-09-25 14:35:30 +02:00
|
|
|
class RimView;
|
2015-12-09 11:32:46 +01:00
|
|
|
class RimWellPath;
|
2015-09-02 12:34:12 +02:00
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
|
///
|
|
|
|
|
///
|
|
|
|
|
//==================================================================================================
|
2015-11-04 16:19:38 +01:00
|
|
|
class RimWellLogExtractionCurve : public RimWellLogCurve
|
2015-09-02 12:34:12 +02:00
|
|
|
{
|
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
public:
|
|
|
|
|
RimWellLogExtractionCurve();
|
|
|
|
|
virtual ~RimWellLogExtractionCurve();
|
2015-09-11 10:44:10 +02:00
|
|
|
|
2015-09-21 14:24:29 +02:00
|
|
|
|
|
|
|
|
void setWellPath(RimWellPath* wellPath);
|
2015-09-25 14:35:30 +02:00
|
|
|
void setPropertiesFromView(RimView* view);
|
2015-09-02 12:34:12 +02:00
|
|
|
|
2015-10-16 11:15:04 +02:00
|
|
|
virtual QString wellName() const;
|
2015-10-15 14:37:57 +02:00
|
|
|
virtual QString wellLogChannelName() const;
|
2015-10-16 13:33:35 +02:00
|
|
|
virtual QString wellDate() const;
|
2015-10-15 14:37:57 +02:00
|
|
|
|
2016-09-16 12:46:25 +02:00
|
|
|
bool isEclipseCurve() const;
|
|
|
|
|
QString caseName() const;
|
2016-09-23 10:07:15 +02:00
|
|
|
double rkbDiff() const;
|
2016-09-16 12:46:25 +02:00
|
|
|
|
2015-09-02 12:34:12 +02:00
|
|
|
protected:
|
2016-05-23 17:13:03 +02:00
|
|
|
virtual QString createCurveAutoName();
|
|
|
|
|
virtual void onLoadDataAndUpdate();
|
2015-09-02 12:34:12 +02:00
|
|
|
|
|
|
|
|
virtual void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue);
|
|
|
|
|
virtual void defineUiOrdering(QString uiConfigName, caf::PdmUiOrdering& uiOrdering);
|
|
|
|
|
|
|
|
|
|
virtual QList<caf::PdmOptionItemInfo> calculateValueOptions(const caf::PdmFieldHandle* fieldNeedingOptions, bool * useOptionsOnly);
|
|
|
|
|
|
2015-09-03 08:09:06 +02:00
|
|
|
virtual void initAfterRead();
|
|
|
|
|
|
2015-09-03 20:54:15 +02:00
|
|
|
virtual void defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName = "");
|
|
|
|
|
|
2015-12-09 11:32:46 +01:00
|
|
|
private:
|
|
|
|
|
void setLogScaleFromSelectedResult();
|
2015-12-10 22:31:41 +01:00
|
|
|
void clampTimestep();
|
2015-12-09 11:32:46 +01:00
|
|
|
|
|
|
|
|
private:
|
2015-09-02 12:34:12 +02:00
|
|
|
caf::PdmPtrField<RimWellPath*> m_wellPath;
|
|
|
|
|
caf::PdmPtrField<RimCase*> m_case;
|
|
|
|
|
caf::PdmChildField<RimEclipseResultDefinition*> m_eclipseResultDefinition;
|
|
|
|
|
caf::PdmChildField<RimGeoMechResultDefinition*> m_geomResultDefinition;
|
|
|
|
|
caf::PdmField<int> m_timeStep;
|
2015-09-17 18:42:35 +02:00
|
|
|
|
2015-09-20 12:12:15 +02:00
|
|
|
caf::PdmField<bool> m_addCaseNameToCurveName;
|
|
|
|
|
caf::PdmField<bool> m_addPropertyToCurveName;
|
|
|
|
|
caf::PdmField<bool> m_addWellNameToCurveName;
|
|
|
|
|
caf::PdmField<bool> m_addTimestepToCurveName;
|
2015-09-25 10:44:35 +02:00
|
|
|
caf::PdmField<bool> m_addDateToCurveName;
|
2015-09-02 12:34:12 +02:00
|
|
|
};
|
|
|
|
|
|