#7158 Add option to introduce extra well path point at sea level.

This commit is contained in:
Kristian Bendiksen
2021-01-19 10:15:00 +01:00
parent a01c511308
commit 1d0705de46
2 changed files with 80 additions and 0 deletions

View File

@@ -34,6 +34,9 @@ public:
void updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath ) override;
static QString getCacheDirectoryPath();
protected:
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
private:
QString surveyType() { return m_surveyType; }
void setSurveyType( QString surveyType );
@@ -42,6 +45,8 @@ private:
void setupBeforeSave() override;
void ensureWellPathStartAtSeaLevel( RigWellPath* wellPath );
caf::PdmField<caf::FilePath> m_filePath;
caf::PdmField<QString> m_filePathInCache; // Used for SSIHUB imported well paths
caf::PdmField<int> m_wellPathIndexInFile; // -1 means none.
@@ -52,6 +57,7 @@ private:
caf::PdmField<QString> updateDate;
caf::PdmField<QString> updateUser;
caf::PdmField<QString> m_surveyType;
caf::PdmField<bool> m_useAutoGeneratedPointAtSeaLevel;
void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
};