#include <vtkQtChartSeriesLayer.h>
It stores the pointer to the chart series model and the list of options for the series.
Definition at line 48 of file vtkQtChartSeriesLayer.h.
Public Types | |
enum | { Type = vtkQtChart_SeriesLayerType } |
Public Slots | |
void | setXOffset (float offset) |
Sets the contents x-axis offset. | |
void | setYOffset (float offset) |
Sets the contents y-axis offset. | |
Signals | |
void | modelChanged (vtkQtChartSeriesModel *previous, vtkQtChartSeriesModel *current) |
Emitted when the series model is changed. | |
void | modelSeriesChanged (int first, int last) |
Emitted when the name or icon changes for a set of series. | |
Public Member Functions | |
vtkQtChartSeriesLayer (bool useContents=true) | |
virtual | ~vtkQtChartSeriesLayer () |
virtual void | setChartArea (vtkQtChartArea *area) |
Sets the chart area for the chart layer. | |
vtkQtChartSeriesModel * | getModel () const |
Gets the chart series model. | |
virtual void | setModel (vtkQtChartSeriesModel *model) |
Sets the chart series model. | |
vtkQtChartSeriesOptionsModel * | getOptionsModel () const |
Gets the chart series options model. | |
virtual void | setOptionsModel (vtkQtChartSeriesOptionsModel *model) |
Sets the chart series options model. | |
vtkQtChartSeriesOptions * | getSeriesOptions (int series) const |
Gets the drawing options for the given series. | |
int | getSeriesOptionsIndex (vtkQtChartSeriesOptions *options) const |
Gets the index for the given series options. | |
virtual QPixmap | getSeriesIcon (int series) const |
Gets the icon for a given series. | |
vtkQtChartSeriesSelectionModel * | getSelectionModel () const |
Gets the chart series selection model. | |
virtual void | getSeriesAt (const QPointF &point, vtkQtChartSeriesSelection &selection) const |
Gets the list of series at a given position. | |
virtual void | getPointsAt (const QPointF &point, vtkQtChartSeriesSelection &selection) const |
Gets the list of points at a given position. | |
virtual void | getSeriesIn (const QRectF &area, vtkQtChartSeriesSelection &selection) const |
Gets the list of series in a given area. | |
virtual void | getPointsIn (const QRectF &area, vtkQtChartSeriesSelection &selection) const |
Gets the list of points in a given area. | |
Protected Slots | |
virtual void | handleOptionsChanged (vtkQtChartSeriesOptions *, int type, const QVariant &newvalue, const QVariant &oldvalue) |
Called when any of the series options are changed. | |
Protected Member Functions | |
virtual void | setupOptions (vtkQtChartSeriesOptions *options) |
Sets up the default values for the series options object. | |
virtual void | cleanupOptions (vtkQtChartSeriesOptions *options) |
Cleans up the options by deallocating the style reservation for the option. | |
Protected Attributes | |
vtkQtChartSeriesSelectionModel * | Selection |
Stores the series/point selection. | |
vtkQtChartSeriesModel * | Model |
Stores the series model. | |
vtkQtChartContentsArea * | Contents |
Used for panning. | |
vtkQtChartSeriesOptionsModel * | Options |
Stores the series options. |
anonymous enum |
vtkQtChartSeriesLayer::vtkQtChartSeriesLayer | ( | bool | useContents = true |
) |
virtual vtkQtChartSeriesLayer::~vtkQtChartSeriesLayer | ( | ) | [inline, virtual] |
Definition at line 57 of file vtkQtChartSeriesLayer.h.
virtual void vtkQtChartSeriesLayer::setChartArea | ( | vtkQtChartArea * | area | ) | [virtual] |
Sets the chart area for the chart layer.
If the model is set before the chart layer is added to a chart area, series options will not be available. Setting the chart area will create the series options for the model in this case. Subclasses can extend this method to handle the new options.
area | The new chart area. |
Reimplemented from vtkQtChartLayer.
Reimplemented in vtkQtBarChart, vtkQtLineChart, vtkQtStackedChart, and vtkQtStatisticalBoxChart.
vtkQtChartSeriesModel* vtkQtChartSeriesLayer::getModel | ( | ) | const [inline] |
Gets the chart series model.
Definition at line 74 of file vtkQtChartSeriesLayer.h.
virtual void vtkQtChartSeriesLayer::setModel | ( | vtkQtChartSeriesModel * | model | ) | [virtual] |
Sets the chart series model.
model | The new chart series model. |
Reimplemented in vtkQtBarChart, vtkQtLineChart, vtkQtStackedChart, and vtkQtStatisticalBoxChart.
vtkQtChartSeriesOptionsModel* vtkQtChartSeriesLayer::getOptionsModel | ( | ) | const [inline] |
Gets the chart series options model.
Definition at line 85 of file vtkQtChartSeriesLayer.h.
virtual void vtkQtChartSeriesLayer::setOptionsModel | ( | vtkQtChartSeriesOptionsModel * | model | ) | [virtual] |
Sets the chart series options model.
model | The new chart series options model. |
vtkQtChartSeriesOptions* vtkQtChartSeriesLayer::getSeriesOptions | ( | int | series | ) | const |
Gets the drawing options for the given series.
series | The index of the series. |
int vtkQtChartSeriesLayer::getSeriesOptionsIndex | ( | vtkQtChartSeriesOptions * | options | ) | const |
Gets the index for the given series options.
options | The series options object. |
virtual QPixmap vtkQtChartSeriesLayer::getSeriesIcon | ( | int | series | ) | const [virtual] |
Gets the icon for a given series.
The icon is used by the chart legend.
series | The index of the series. |
Reimplemented in vtkQtBarChart, vtkQtLineChart, vtkQtStackedChart, and vtkQtStatisticalBoxChart.
vtkQtChartSeriesSelectionModel* vtkQtChartSeriesLayer::getSelectionModel | ( | ) | const |
Gets the chart series selection model.
virtual void vtkQtChartSeriesLayer::getSeriesAt | ( | const QPointF & | point, | |
vtkQtChartSeriesSelection & | selection | |||
) | const [virtual] |
Gets the list of series at a given position.
point | The position in scene coordinates. | |
selection | Used to return the list of series. |
Reimplemented in vtkQtBarChart, vtkQtLineChart, vtkQtStackedChart, and vtkQtStatisticalBoxChart.
virtual void vtkQtChartSeriesLayer::getPointsAt | ( | const QPointF & | point, | |
vtkQtChartSeriesSelection & | selection | |||
) | const [virtual] |
Gets the list of points at a given position.
point | The position in scene coordinates. | |
selection | Used to return the list of points. |
Reimplemented in vtkQtBarChart, vtkQtLineChart, vtkQtStackedChart, and vtkQtStatisticalBoxChart.
virtual void vtkQtChartSeriesLayer::getSeriesIn | ( | const QRectF & | area, | |
vtkQtChartSeriesSelection & | selection | |||
) | const [virtual] |
Gets the list of series in a given area.
area | The rectangle in scene coordinates. | |
selection | Used to return the list of series. |
Reimplemented in vtkQtBarChart, vtkQtLineChart, vtkQtStackedChart, and vtkQtStatisticalBoxChart.
virtual void vtkQtChartSeriesLayer::getPointsIn | ( | const QRectF & | area, | |
vtkQtChartSeriesSelection & | selection | |||
) | const [virtual] |
Gets the list of points in a given area.
area | The rectangle in scene coordinates. | |
selection | Used to return the list of points. |
Reimplemented in vtkQtBarChart, vtkQtLineChart, vtkQtStackedChart, and vtkQtStatisticalBoxChart.
void vtkQtChartSeriesLayer::setXOffset | ( | float | offset | ) | [slot] |
Sets the contents x-axis offset.
offset | The new x-axis offset. |
void vtkQtChartSeriesLayer::setYOffset | ( | float | offset | ) | [slot] |
Sets the contents y-axis offset.
offset | The new y-axis offset. |
void vtkQtChartSeriesLayer::modelChanged | ( | vtkQtChartSeriesModel * | previous, | |
vtkQtChartSeriesModel * | current | |||
) | [signal] |
Emitted when the series model is changed.
previous | The previous series model. | |
current | The current series model. |
void vtkQtChartSeriesLayer::modelSeriesChanged | ( | int | first, | |
int | last | |||
) | [signal] |
Emitted when the name or icon changes for a set of series.
first | The first series index of the range. | |
last | The last series index of the range. |
virtual void vtkQtChartSeriesLayer::handleOptionsChanged | ( | vtkQtChartSeriesOptions * | , | |
int | type, | |||
const QVariant & | newvalue, | |||
const QVariant & | oldvalue | |||
) | [protected, virtual, slot] |
Called when any of the series options are changed.
Default implementation fires the modelSeriesChanged() signal.
options | The options that fired the dataChanged() signal. | |
type | Type of the option that was changed. | |
newValue | The new value for the option. | |
oldValue | The previous value for the option, if any. |
Reimplemented in vtkQtBarChart, vtkQtLineChart, vtkQtStackedChart, and vtkQtStatisticalBoxChart.
virtual void vtkQtChartSeriesLayer::setupOptions | ( | vtkQtChartSeriesOptions * | options | ) | [protected, virtual] |
Sets up the default values for the series options object.
The style manager should be used to help set up the series options. Subclass must call this method every time a new series options is set up.
options | The newly created series options. |
Reimplemented in vtkQtStatisticalBoxChart.
virtual void vtkQtChartSeriesLayer::cleanupOptions | ( | vtkQtChartSeriesOptions * | options | ) | [protected, virtual] |
Cleans up the options by deallocating the style reservation for the option.
Subclass must call this method before a series options object is cleaned up.
vtkQtChartSeriesModel* vtkQtChartSeriesLayer::Model [protected] |
vtkQtChartContentsArea* vtkQtChartSeriesLayer::Contents [protected] |