mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2975 Ensemble Curve Set: Add compound update function updateAll()
This commit is contained in:
@@ -200,6 +200,13 @@ void RimEnsembleCurveSet::loadDataAndUpdate(bool updateParentPlot)
|
||||
m_yValuesUiFilterResultSelection = m_yValuesCurveVariable->address();
|
||||
|
||||
updateAllCurves();
|
||||
|
||||
if (updateParentPlot)
|
||||
{
|
||||
RimSummaryPlot* parentPlot;
|
||||
firstAncestorOrThisOfTypeAsserted(parentPlot);
|
||||
parentPlot->updateAll();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -105,13 +105,7 @@ void RimSummaryCurveCollection::loadDataAndUpdate(bool updateParentPlot)
|
||||
{
|
||||
RimSummaryPlot* parentPlot;
|
||||
firstAncestorOrThisOfTypeAsserted(parentPlot);
|
||||
if ( parentPlot->qwtPlot() )
|
||||
{
|
||||
parentPlot->updatePlotTitle();
|
||||
parentPlot->qwtPlot()->updateLegend();
|
||||
parentPlot->updateAxes();
|
||||
parentPlot->updateZoomInQwt();
|
||||
}
|
||||
parentPlot->updateAll();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -573,6 +573,20 @@ void RimSummaryPlot::copyAxisPropertiesFromOther(const RimSummaryPlot& sourceSum
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimSummaryPlot::updateAll()
|
||||
{
|
||||
if (qwtPlot())
|
||||
{
|
||||
updatePlotTitle();
|
||||
qwtPlot()->updateLegend();
|
||||
updateAxes();
|
||||
updateZoomInQwt();
|
||||
}
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -118,6 +118,8 @@ public:
|
||||
|
||||
void copyAxisPropertiesFromOther(const RimSummaryPlot& sourceSummaryPlot);
|
||||
|
||||
void updateAll();
|
||||
|
||||
// RimViewWindow overrides
|
||||
public:
|
||||
virtual QWidget* createViewWidget(QWidget* mainWindowParent) override;
|
||||
|
||||
Reference in New Issue
Block a user