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:
Magne Sjaastad authored and GitHub committed 2022-08-19 14:30:25 +02:00
1 parent 506bfbd638
commit 4cd38d7daf
51 files changed
+240 -418

No files matched your search

@@ -185,17 +185,10 @@ RimGeoMechCase::~RimGeoMechCase( void )
{
geoMechViews.deleteChildren();
RimProject* project = RimProject::current();
if ( project )
RimWellLogPlotCollection* plotCollection = RimMainPlotCollection::current()->wellLogPlotCollection();
if ( plotCollection )
{
if ( project->mainPlotCollection() )
{
RimWellLogPlotCollection* plotCollection = project->mainPlotCollection()->wellLogPlotCollection();
if ( plotCollection )
{
plotCollection->removeExtractors( this->geoMechData() );
}
}
plotCollection->removeExtractors( this->geoMechData() );
}
if ( this->geoMechData() )