#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

@@ -479,7 +479,11 @@ bool RiaApplication::loadProject(const QString& projectFileName, ProjectLoadActi
oilField->wellPathCollection = new RimWellPathCollection();
}
if (oilField->wellPathCollection) oilField->wellPathCollection->readWellPathFiles();
if (oilField->wellPathCollection)
{
oilField->wellPathCollection->readWellPathFiles();
oilField->wellPathCollection->readWellPathFormationFiles();
}
}
for (RimOilField* oilField: m_project->oilFields)
@@ -778,6 +782,28 @@ void RiaApplication::addWellPathsToModel(QList<QString> wellPathFilePaths)
oilField->wellPathCollection->updateConnectedEditors();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RiaApplication::addWellPathFormationsToModel(QList<QString> wellPathFormationsFilePaths)
{
if (m_project == nullptr || m_project->oilFields.size() < 1) return;
RimOilField* oilField = m_project->activeOilField();
if (oilField == nullptr) return;
if (oilField->wellPathCollection == nullptr)
{
oilField->wellPathCollection = new RimWellPathCollection();
m_project->updateConnectedEditors();
}
if (oilField->wellPathCollection) oilField->wellPathCollection->addWellFormations(wellPathFormationsFilePaths);
oilField->wellPathCollection->updateConnectedEditors();
}
//--------------------------------------------------------------------------------------------------
/// Add a list of well log file paths (LAS files) to the well path collection
//--------------------------------------------------------------------------------------------------