mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6231 Show fracture model plot when created and on project reload
This commit is contained in:
parent
27ee22f420
commit
7c56b7dd60
@ -54,6 +54,8 @@
|
||||
#include "RimFormationNamesCollection.h"
|
||||
#include "RimFractureModel.h"
|
||||
#include "RimFractureModelCollection.h"
|
||||
#include "RimFractureModelPlot.h"
|
||||
#include "RimFractureModelPlotCollection.h"
|
||||
#include "RimFractureTemplateCollection.h"
|
||||
#include "RimGeoMechCase.h"
|
||||
#include "RimGeoMechCellColors.h"
|
||||
@ -1578,6 +1580,7 @@ void RiaApplication::loadAndUpdatePlotData()
|
||||
RimAnalysisPlotCollection* alsColl = nullptr;
|
||||
RimCorrelationPlotCollection* corrColl = nullptr;
|
||||
RimMultiPlotCollection* gpwColl = nullptr;
|
||||
RimFractureModelPlotCollection* frmColl = nullptr;
|
||||
|
||||
if ( m_project->mainPlotCollection() )
|
||||
{
|
||||
@ -1625,6 +1628,10 @@ void RiaApplication::loadAndUpdatePlotData()
|
||||
{
|
||||
gpwColl = m_project->mainPlotCollection()->multiPlotCollection();
|
||||
}
|
||||
if ( m_project->mainPlotCollection()->fractureModelPlotCollection() )
|
||||
{
|
||||
frmColl = m_project->mainPlotCollection()->fractureModelPlotCollection();
|
||||
}
|
||||
}
|
||||
|
||||
size_t plotCount = 0;
|
||||
@ -1639,6 +1646,7 @@ void RiaApplication::loadAndUpdatePlotData()
|
||||
plotCount += alsColl ? alsColl->plots().size() : 0;
|
||||
plotCount += corrColl ? corrColl->plots().size() + corrColl->reports().size() : 0;
|
||||
plotCount += gpwColl ? gpwColl->multiPlots().size() : 0;
|
||||
plotCount += frmColl ? frmColl->fractureModelPlots().size() : 0;
|
||||
|
||||
if ( plotCount > 0 )
|
||||
{
|
||||
@ -1744,6 +1752,15 @@ void RiaApplication::loadAndUpdatePlotData()
|
||||
plotProgress.incrementProgress();
|
||||
}
|
||||
}
|
||||
|
||||
if ( frmColl )
|
||||
{
|
||||
for ( const auto& fractureModelPlot : frmColl->fractureModelPlots() )
|
||||
{
|
||||
fractureModelPlot->loadDataAndUpdate();
|
||||
plotProgress.incrementProgress();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -175,6 +175,8 @@ RimFractureModelPlot*
|
||||
// Make sure the summary plot window is visible
|
||||
RiuPlotMainWindowTools::showPlotMainWindow();
|
||||
|
||||
plot->loadDataAndUpdate();
|
||||
|
||||
return plot;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user