#1006 Add support for toggling legend and don't show legend for curves without a name

This commit is contained in:
Bjørnar Grip Fjær
2017-04-24 16:42:01 +02:00
parent 938c8ff69a
commit 50d9904cf7
8 changed files with 94 additions and 1 deletions

View File

@@ -78,6 +78,9 @@ public:
QString curveName() const { return m_curveName; }
void updateCurveVisibility();
void updateLegendVisibility();
void showLegend(bool show);
protected:
@@ -107,6 +110,7 @@ protected:
caf::PdmField<bool> m_showCurve;
caf::PdmField<QString> m_curveName;
caf::PdmField<QString> m_customCurveName;
caf::PdmField<bool> m_showLegend;
caf::PdmField<bool> m_isUsingAutoName;
caf::PdmField<cvf::Color3f> m_curveColor;