#2975 Ensemble Curve Set: Add compound update function updateAll()

This commit is contained in:
Magne Sjaastad
2018-06-01 15:37:47 +02:00
parent 8dbfd5f878
commit ea7c5b6a76
5 changed files with 26 additions and 15 deletions

View File

@@ -75,20 +75,14 @@ void RimEnsembleCurveSetCollection::loadDataAndUpdate(bool updateParentPlot)
{
for (RimEnsembleCurveSet* curveSet : m_curveSets)
{
curveSet->loadDataAndUpdate(updateParentPlot);
curveSet->loadDataAndUpdate(false);
}
if (updateParentPlot)
{
RimSummaryPlot* parentPlot;
firstAncestorOrThisOfTypeAsserted(parentPlot);
if (parentPlot->qwtPlot())
{
parentPlot->updatePlotTitle();
parentPlot->qwtPlot()->updateLegend();
parentPlot->updateAxes();
parentPlot->updateZoomInQwt();
}
parentPlot->updateAll();
}
}