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:
@@ -44,7 +44,6 @@
|
||||
#include "RimEclipseCase.h"
|
||||
#include "RimEclipseView.h"
|
||||
#include "RimMainPlotCollection.h"
|
||||
#include "RimProject.h"
|
||||
#include "RimWellLogPlotCollection.h"
|
||||
#include "RimWellPath.h"
|
||||
#include "RimWellPathCollection.h"
|
||||
@@ -123,10 +122,10 @@ void RicCreateTemporaryLgrFeature::updateViews( RimEclipseCase* eclipseCase )
|
||||
if ( guiApp ) guiApp->clearAllSelections();
|
||||
|
||||
deleteAllCachedData( eclipseCase );
|
||||
RimProject::current()->mainPlotCollection()->deleteAllCachedData();
|
||||
RimMainPlotCollection::current()->deleteAllCachedData();
|
||||
computeCachedData( eclipseCase );
|
||||
|
||||
RimProject::current()->mainPlotCollection()->wellLogPlotCollection()->loadDataAndUpdateAllPlots();
|
||||
RimMainPlotCollection::current()->wellLogPlotCollection()->loadDataAndUpdateAllPlots();
|
||||
|
||||
if ( guiApp ) eclipseCase->createDisplayModelAndUpdateAllViews();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user