mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2903 Plot Name and Legend Text : Update text when color mode changes
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user