#2903 Plot Name and Legend Text : Update text when color mode changes

This commit is contained in:
Magne Sjaastad
2018-05-11 22:23:06 +02:00
parent 078191610c
commit f22dcf0872

View File

@@ -387,6 +387,7 @@ void RimEnsembleCurveSet::fieldChangedByUi(const caf::PdmFieldHandle* changedFie
m_yValuesCurveVariable->setAddress(m_yValuesUiFilterResultSelection()); m_yValuesCurveVariable->setAddress(m_yValuesUiFilterResultSelection());
updateAllCurves(); updateAllCurves();
updateTextInPlot = true; updateTextInPlot = true;
} }
else if (changedField == &m_yValuesSummaryGroup) else if (changedField == &m_yValuesSummaryGroup)
@@ -394,11 +395,13 @@ void RimEnsembleCurveSet::fieldChangedByUi(const caf::PdmFieldHandle* changedFie
// Empty address cache // Empty address cache
m_allAddressesCache.clear(); m_allAddressesCache.clear();
updateAllCurves(); updateAllCurves();
updateTextInPlot = true; updateTextInPlot = true;
} }
else if (changedField == &m_color) else if (changedField == &m_color)
{ {
updateCurveColors(); updateCurveColors();
updateTextInPlot = true; updateTextInPlot = true;
} }
else if (changedField == &m_ensembleParameter) else if (changedField == &m_ensembleParameter)
@@ -414,6 +417,8 @@ void RimEnsembleCurveSet::fieldChangedByUi(const caf::PdmFieldHandle* changedFie
m_ensembleParameter = !params.empty() ? params.front() : ""; m_ensembleParameter = !params.empty() ? params.front() : "";
} }
updateCurveColors(); updateCurveColors();
updateTextInPlot = true;
} }
else if (changedField == &m_plotAxis) else if (changedField == &m_plotAxis)
{ {
@@ -421,8 +426,10 @@ void RimEnsembleCurveSet::fieldChangedByUi(const caf::PdmFieldHandle* changedFie
{ {
curve->setLeftOrRightAxisY(m_plotAxis()); curve->setLeftOrRightAxisY(m_plotAxis());
} }
updateQwtPlotAxis(); updateQwtPlotAxis();
plot->updateAxes(); plot->updateAxes();
updateTextInPlot = true; updateTextInPlot = true;
} }
else if (changedField == &m_isUsingAutoName) else if (changedField == &m_isUsingAutoName)