mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2112 Avoid updating legend for each curve. Generalize and roll out the solution found for summary curves
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user