mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
WellPaths: Added support for mulitple paths in one ascii file.
p4#: 21980
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include "RimWellPath.h"
|
||||
|
||||
class RivWellPathCollectionPartMgr;
|
||||
class RimWellPathAsciiFileReader;
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
@@ -60,14 +61,38 @@ public:
|
||||
|
||||
caf::PdmPointersField<RimWellPath*> wellPaths;
|
||||
|
||||
virtual void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue );
|
||||
|
||||
|
||||
RivWellPathCollectionPartMgr* wellPathCollectionPartMgr() { return m_wellPathCollectionPartManager.p(); }
|
||||
|
||||
void readWellPathFiles();
|
||||
void addWellPaths(QStringList filePaths);
|
||||
RimWellPathAsciiFileReader* asciiFileReader() {return m_asciiFileReader;}
|
||||
|
||||
virtual void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue );
|
||||
|
||||
private:
|
||||
caf::PdmPointer<RimProject> m_project;
|
||||
cvf::ref<RivWellPathCollectionPartMgr> m_wellPathCollectionPartManager;
|
||||
|
||||
RimWellPathAsciiFileReader* m_asciiFileReader;
|
||||
};
|
||||
|
||||
|
||||
class RimWellPathAsciiFileReader
|
||||
{
|
||||
public:
|
||||
struct WellData
|
||||
{
|
||||
QString m_name;
|
||||
cvf::ref<RigWellPath> m_wellPathGeometry;
|
||||
};
|
||||
|
||||
WellData readWellData(QString filePath, int indexInFile);
|
||||
size_t wellDataCount(QString filePath);
|
||||
|
||||
private:
|
||||
|
||||
void readAllWellData(QString filePath);
|
||||
|
||||
std::map<QString, std::vector<WellData> > m_fileNameToWellDataGroupMap;
|
||||
};
|
||||
Reference in New Issue
Block a user