mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Simplify access to RimMainPlotCollection
* Add current() to RimMainPlotCollection to avoid include of RimProject * Remove "segment" prefix * Reload data when RftCase changes
This commit is contained in:
@@ -66,7 +66,6 @@
|
||||
|
||||
#include "RimMainPlotCollection.h"
|
||||
#include "RimMudWeightWindowParameters.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimWellLogPlot.h"
|
||||
#include "RimWellLogPlotCollection.h"
|
||||
|
||||
@@ -216,20 +215,10 @@ void RigFemPartResultsCollection::setActiveFormationNames( RigFormationNames* ac
|
||||
{
|
||||
m_activeFormationNamesData = activeFormationNames;
|
||||
|
||||
RimProject* project = RimProject::current();
|
||||
if ( project )
|
||||
RimWellLogPlotCollection* plotCollection = RimMainPlotCollection::current()->wellLogPlotCollection();
|
||||
for ( auto wellLogPlot : plotCollection->wellLogPlots() )
|
||||
{
|
||||
if ( project->mainPlotCollection() )
|
||||
{
|
||||
RimWellLogPlotCollection* plotCollection = project->mainPlotCollection()->wellLogPlotCollection();
|
||||
if ( plotCollection )
|
||||
{
|
||||
for ( auto wellLogPlot : plotCollection->wellLogPlots() )
|
||||
{
|
||||
wellLogPlot->loadDataAndUpdate();
|
||||
}
|
||||
}
|
||||
}
|
||||
wellLogPlot->loadDataAndUpdate();
|
||||
}
|
||||
|
||||
this->deleteResult( RigFemResultAddress( RIG_FORMATION_NAMES, "Active Formation Names", "" ) );
|
||||
|
||||
Reference in New Issue
Block a user