24 #ifndef _vtkQtChartSeriesOptions_h
25 #define _vtkQtChartSeriesOptions_h
27 #include "vtkQtChartExport.h"
59 NUMBER_OF_OPTION_TYPES
76 bool isVisible()
const
77 {
return this->getGenericOption(VISIBLE).toBool(); }
82 void setVisible(
bool visible)
83 { this->setGenericOption(VISIBLE, visible); }
90 {
return this->getGenericOption(PEN).value<QPen>(); }
95 void setPen(
const QPen &pen)
96 {
return this->setGenericOption(PEN, pen); }
102 QBrush getBrush()
const
103 {
return this->getGenericOption(BRUSH).value<QBrush>(); }
108 void setBrush(
const QBrush &brush)
109 { this->setGenericOption(BRUSH, brush); }
133 this->getGenericOption(AXES_CORNER).value<
int>());
140 { this->setGenericOption(AXES_CORNER, axes); }
150 this->getGenericOption(MARKER_STYLE).value<
int>());
158 this->setGenericOption(MARKER_STYLE, style);
165 QSizeF getMarkerSize()
const
166 {
return this->getGenericOption(MARKER_SIZE).value<QSizeF>(); }
171 void setMarkerSize(
const QSizeF &
size)
172 { this->setGenericOption(MARKER_SIZE, size); }
177 QString getLabel()
const
178 {
return this->getGenericOption(LABEL).toString(); }
180 void setLabel(
const QString& label)
181 { this->setGenericOption(LABEL, label); }
185 void setGenericOption(OptionType
type,
const QVariant&
value);
189 QVariant getGenericOption(OptionType
type)
const;
193 void setDefaultOption(OptionType
type,
const QVariant&
value);
201 void dataChanged(
int type,
202 const QVariant& newValue,
const QVariant& oldValue);
205 QMap<OptionType, QVariant> Data;
206 QMap<OptionType, QVariant> Defaults;
208 void InitializeDefaults();