#2112 Avoid updating legend for each curve. Generalize and roll out the solution found for summary curves

This commit is contained in:
Jacob Støren
2017-11-11 23:15:13 +01:00
parent 9070a97815
commit 324d6d72e3
10 changed files with 34 additions and 26 deletions

View File

@@ -210,13 +210,20 @@ void RimPlotCurve::updateCurveVisibility()
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimPlotCurve::updateCurvePresentation()
void RimPlotCurve::updateCurvePresentation(bool updatePlotLegend)
{
this->updateCurveVisibility();
this->updateCurveNameAndUpdatePlotLegend();
if (updatePlotLegend)
{
this->updateCurveNameAndUpdatePlotLegend();
}
else
{
this->updateCurveNameNoLegendUpdate();
}
updateCurveAppearance();
// Todo: Rest of the curve setup controlled from this class
}
//--------------------------------------------------------------------------------------------------