24 #ifndef _vtkQtChartSeriesOptions_h
25 #define _vtkQtChartSeriesOptions_h
27 #include "vtkQtChartExport.h"
59 NUMBER_OF_OPTION_TYPES
77 {
return this->getGenericOption(VISIBLE).toBool(); }
83 { this->setGenericOption(VISIBLE, visible); }
90 {
return this->getGenericOption(PEN).value<QPen>(); }
96 {
return this->setGenericOption(PEN, pen); }
103 {
return this->getGenericOption(BRUSH).value<QBrush>(); }
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);
166 {
return this->getGenericOption(MARKER_SIZE).value<QSizeF>(); }
172 { this->setGenericOption(MARKER_SIZE, size); }
178 {
return this->getGenericOption(LABEL).toString(); }
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();
vtkQtPointMarker::MarkerStyle getMarkerStyle() const
Gets the series marker style.
bool isVisible() const
Gets whether or not the series should be visible.
QBrush getBrush() const
Gets the series brush.
QString getLabel() const
Gets the label for this series, if any.
void setMarkerStyle(vtkQtPointMarker::MarkerStyle style)
Sets the series marker style.
QPen getPen() const
Gets the series pen.
void setVisible(bool visible)
Sets whether or not the series should be visible.
vtkQtChartLayer::AxesCorner getAxesCorner() const
Gets the axes corner for the series.
void setPen(const QPen &pen)
Sets the series pen.
void setBrush(const QBrush &brush)
Sets the series brush.
void setLabel(const QString &label)
void setAxesCorner(vtkQtChartLayer::AxesCorner axes)
Sets the axes corner for the series.
The vtkQtChartSeriesOptions class stores the common series drawing options.
QSizeF getMarkerSize() const
Gets the marker size for the series.
void setMarkerSize(const QSizeF &size)
Sets the marker size for the series.
The vtkQtChartSeriesColors class is used to color a chart series with multiple colors.