#809 Created Formation Names project items.

#819 Added delete command to Formation names
#808 Added an import Formation Names command
This commit is contained in:
Jacob Støren
2016-08-24 08:30:12 +02:00
parent 5260a3f870
commit b46c6ebcf8
17 changed files with 481 additions and 2 deletions

View File

@@ -68,6 +68,7 @@
#include "RimWellLogPlotCollection.h"
#include "RimWellPath.h"
#include "RimWellPathCollection.h"
#include "RimFormationNamesCollection.h"
#include "RiuMainPlotWindow.h"
#include "RiuMainWindow.h"
@@ -385,6 +386,18 @@ bool RiaApplication::loadProject(const QString& projectFileName, ProjectLoadActi
}
}
// Load the formation names
for(RimOilField* oilField: m_project->oilFields)
{
if (oilField == NULL) continue;
if(oilField->formationNamesCollection() != NULL)
{
oilField->formationNamesCollection()->readAllFormationNames();
}
}
// Add well paths for each oil field
for (size_t oilFieldIdx = 0; oilFieldIdx < m_project->oilFields().size(); oilFieldIdx++)
{