2013-05-16 12:59:35 +02:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
//
|
2014-09-23 15:04:57 +02:00
|
|
|
// Copyright (C) 2011- Statoil ASA
|
|
|
|
|
// Copyright (C) 2013- Ceetron Solutions AS
|
|
|
|
|
// Copyright (C) 2011-2012 Ceetron AS
|
2013-05-16 12:59:35 +02:00
|
|
|
//
|
|
|
|
|
// 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
|
|
|
|
|
|
2017-06-13 15:22:12 +02:00
|
|
|
#include "RiaEclipseUnitTools.h"
|
2017-06-07 11:57:25 +02:00
|
|
|
|
2013-05-16 12:59:35 +02:00
|
|
|
#include "cafPdmField.h"
|
|
|
|
|
#include "cafPdmObject.h"
|
|
|
|
|
#include "cafPdmPointer.h"
|
2015-09-14 16:33:28 +02:00
|
|
|
#include "cafPdmChildField.h"
|
2013-05-16 12:59:35 +02:00
|
|
|
#include "cafAppEnum.h"
|
2014-07-24 10:11:43 +02:00
|
|
|
|
|
|
|
|
// Include to make Pdm work for cvf::Color
|
|
|
|
|
#include "cafPdmFieldCvfColor.h"
|
|
|
|
|
|
2017-05-05 11:21:40 +02:00
|
|
|
#include "cafPdmChildArrayField.h"
|
2017-02-24 14:31:06 +01:00
|
|
|
#include "cvfObject.h"
|
2013-05-16 12:59:35 +02:00
|
|
|
|
2017-05-10 12:19:46 +02:00
|
|
|
class RifWellPathImporter;
|
2017-02-24 14:31:06 +01:00
|
|
|
class RigWellPath;
|
2013-05-16 12:59:35 +02:00
|
|
|
class RimProject;
|
2015-09-16 16:06:06 +02:00
|
|
|
class RimWellLogFile;
|
2017-05-19 13:47:44 +02:00
|
|
|
class RimFishboneWellPathCollection;
|
2017-02-24 14:31:06 +01:00
|
|
|
class RivWellPathPartMgr;
|
2013-05-16 12:59:35 +02:00
|
|
|
|
2017-05-19 15:44:32 +02:00
|
|
|
class RimFishbonesCollection;
|
2017-05-11 13:33:18 +02:00
|
|
|
class RimPerforationCollection;
|
2017-05-19 14:04:01 +02:00
|
|
|
class RimWellPathCompletions;
|
2017-05-05 11:21:40 +02:00
|
|
|
|
2013-05-16 12:59:35 +02:00
|
|
|
//==================================================================================================
|
|
|
|
|
///
|
|
|
|
|
///
|
|
|
|
|
//==================================================================================================
|
|
|
|
|
class RimWellPath : public caf::PdmObject
|
|
|
|
|
{
|
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
RimWellPath();
|
|
|
|
|
virtual ~RimWellPath();
|
|
|
|
|
|
2015-09-16 16:06:06 +02:00
|
|
|
void setLogFileInfo(RimWellLogFile* logFileInfo);
|
2013-05-16 12:59:35 +02:00
|
|
|
|
|
|
|
|
virtual caf::PdmFieldHandle* userDescriptionField();
|
|
|
|
|
virtual caf::PdmFieldHandle* objectToggleField();
|
|
|
|
|
|
|
|
|
|
virtual void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue );
|
|
|
|
|
|
2017-06-14 13:13:48 +02:00
|
|
|
QString name() const;
|
|
|
|
|
void setName(const QString& name);
|
2013-06-18 11:56:51 +02:00
|
|
|
|
2013-05-16 12:59:35 +02:00
|
|
|
caf::PdmField<QString> filepath;
|
2013-06-24 22:04:52 +02:00
|
|
|
caf::PdmField<int> wellPathIndexInFile; // -1 means none.
|
2013-06-21 15:59:04 +02:00
|
|
|
|
2013-05-16 12:59:35 +02:00
|
|
|
caf::PdmField<bool> showWellPathLabel;
|
|
|
|
|
|
|
|
|
|
caf::PdmField<bool> showWellPath;
|
|
|
|
|
caf::PdmField<cvf::Color3f> wellPathColor;
|
|
|
|
|
caf::PdmField<double> wellPathRadiusScaleFactor;
|
|
|
|
|
|
2015-09-16 16:06:06 +02:00
|
|
|
caf::PdmChildField<RimWellLogFile*> m_wellLogFile;
|
2017-05-19 15:44:32 +02:00
|
|
|
|
|
|
|
|
RimFishbonesCollection* fishbonesCollection();
|
2017-05-29 12:56:40 +02:00
|
|
|
const RimFishbonesCollection* fishbonesCollection() const;
|
2017-05-19 15:44:32 +02:00
|
|
|
RimPerforationCollection* perforationIntervalCollection();
|
2017-05-29 12:56:40 +02:00
|
|
|
const RimPerforationCollection* perforationIntervalCollection() const;
|
2017-06-14 13:43:56 +02:00
|
|
|
const RimWellPathCompletions* completions() const;
|
2015-09-14 16:33:28 +02:00
|
|
|
|
2017-02-24 14:31:06 +01:00
|
|
|
RigWellPath* wellPathGeometry();
|
2017-05-29 12:56:40 +02:00
|
|
|
const RigWellPath* wellPathGeometry() const;
|
2013-05-16 12:59:35 +02:00
|
|
|
RivWellPathPartMgr* partMgr();
|
|
|
|
|
|
2017-05-10 12:19:46 +02:00
|
|
|
bool readWellPathFile(QString * errorMessage, RifWellPathImporter* wellPathImporter);
|
2016-06-29 16:09:27 +02:00
|
|
|
void updateFilePathsFromProjectPath(const QString& newProjectPath, const QString& oldProjectPath);
|
2013-10-24 09:50:16 +02:00
|
|
|
|
2017-05-05 11:21:40 +02:00
|
|
|
double combinedScaleFactor() const;
|
2013-05-16 12:59:35 +02:00
|
|
|
|
2017-06-13 15:22:12 +02:00
|
|
|
void setUnitSystem(RiaEclipseUnitTools::UnitSystem unitSystem);
|
|
|
|
|
RiaEclipseUnitTools::UnitSystem unitSystem() const;
|
2017-06-07 11:57:25 +02:00
|
|
|
|
2013-05-16 12:59:35 +02:00
|
|
|
private:
|
2013-06-18 11:56:51 +02:00
|
|
|
|
2017-02-24 14:31:06 +01:00
|
|
|
void setWellPathGeometry(RigWellPath* wellPathModel);
|
2013-06-18 11:56:51 +02:00
|
|
|
QString surveyType() { return m_surveyType; }
|
|
|
|
|
void setSurveyType(QString surveyType);
|
|
|
|
|
|
2013-10-17 13:37:59 +02:00
|
|
|
virtual void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering );
|
2017-05-10 17:09:54 +02:00
|
|
|
virtual void defineUiTreeOrdering(caf::PdmUiTreeOrdering& uiTreeOrdering, QString uiConfigName) override;
|
2013-10-17 13:37:59 +02:00
|
|
|
|
2013-10-24 09:50:16 +02:00
|
|
|
bool isStoredInCache();
|
2013-10-24 07:28:45 +02:00
|
|
|
QString getCacheFileName();
|
|
|
|
|
QString getCacheDirectoryPath();
|
|
|
|
|
|
|
|
|
|
virtual void setupBeforeSave();
|
2013-06-18 11:56:51 +02:00
|
|
|
caf::PdmField<QString> id;
|
|
|
|
|
caf::PdmField<QString> sourceSystem;
|
|
|
|
|
caf::PdmField<QString> utmZone;
|
|
|
|
|
caf::PdmField<QString> updateDate;
|
|
|
|
|
caf::PdmField<QString> updateUser;
|
|
|
|
|
|
2013-05-16 12:59:35 +02:00
|
|
|
caf::PdmField<QString> m_surveyType;
|
2016-10-25 15:52:52 +02:00
|
|
|
caf::PdmField<double> m_datumElevation;
|
2017-06-07 11:57:25 +02:00
|
|
|
|
2017-06-13 15:22:12 +02:00
|
|
|
caf::PdmField<RiaEclipseUnitTools::UnitSystemType> m_unitSystem;
|
2017-05-19 15:44:32 +02:00
|
|
|
|
|
|
|
|
caf::PdmChildField<RimWellPathCompletions*> m_completions;
|
2013-06-18 11:56:51 +02:00
|
|
|
|
2013-05-16 12:59:35 +02:00
|
|
|
cvf::ref<RigWellPath> m_wellPath;
|
|
|
|
|
cvf::ref<RivWellPathPartMgr> m_wellPathPartMgr;
|
2017-06-14 13:13:48 +02:00
|
|
|
caf::PdmField<QString> m_name;
|
2013-05-16 12:59:35 +02:00
|
|
|
};
|