#2122 Formation/Well Path: Use reader in WellPath classes

This commit is contained in:
Unknown
2017-11-24 10:01:05 +01:00
committed by Rebecca Cox
parent 7e28039ffd
commit e80cd8de7c
6 changed files with 155 additions and 22 deletions

View File

@@ -34,14 +34,15 @@
#include "cvfObject.h"
#include <QString>
class RifWellPathImporter;
class RigWellPath;
class RimEclipseView;
class RimProject;
class RimWellLogFile;
class RimWellPath;
class RimWellPathFormations;
class RifWellPathFormationsImporter;
class QString;
namespace cvf {
class ModelBasicList;
@@ -95,10 +96,13 @@ public:
void removeWellPath(RimWellPath* wellPath);
void deleteAllWellPaths();
void readWellPathFormationFiles();
RimWellPath* wellPathByName(const QString& wellPathName) const;
RimWellPath* tryFindMatchingWellPath(const QString& wellName) const;
void addWellPaths(const std::vector<RimWellPath*> wellPaths);
RimWellLogFile* addWellLogs(const QStringList& filePaths);
RimWellPathFormations* addWellFormations(const QStringList& filePaths);
void scheduleRedrawAffectedViews();
@@ -119,11 +123,11 @@ public:
const caf::DisplayCoordTransform* displayCoordTransform);
void updateFilePathsFromProjectPath(const QString& newProjectPath, const QString& oldProjectPath);
protected:
virtual void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue );
virtual void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
private:
virtual void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering );
virtual caf::PdmFieldHandle* objectToggleField();
virtual void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering ) override;
virtual caf::PdmFieldHandle* objectToggleField() override;
void readAndAddWellPaths(std::vector<RimWellPath*>& wellPathArray);
void sortWellsByName();
@@ -131,5 +135,6 @@ private:
RiaEclipseUnitTools::UnitSystemType findUnitSystemForWellPath(const RimWellPath* wellPath);
RifWellPathImporter* m_wellPathImporter;
RifWellPathFormationsImporter* m_wellPathFormationsImporter;
QString m_newestAddedWellName;
};