VTK
|
The vtkQtLineChart class is used to display a line chart. More...
#include <vtkQtLineChart.h>
Public Types | |
enum | { Type = vtkQtChart_LineChartType } |
![]() | |
enum | { Type = vtkQtChart_SeriesLayerType } |
![]() | |
enum | AxesCorner { BottomLeft = 0, BottomRight, TopLeft, TopRight } |
enum | { Type = vtkQtChart_LayerType } |
Public Slots | |
void | reset () |
Refreshes the line chart data from the model. More... | |
![]() | |
void | setXOffset (float offset) |
Sets the contents x-axis offset. More... | |
void | setYOffset (float offset) |
Sets the contents y-axis offset. More... | |
Public Member Functions | |
vtkQtLineChart () | |
virtual | ~vtkQtLineChart () |
Setup Methods | |
virtual void | setChartArea (vtkQtChartArea *area) |
Sets the chart area for the chart layer. More... | |
virtual void | setModel (vtkQtChartSeriesModel *model) |
Sets the chart series model. More... | |
Drawing Parameters | |
vtkQtLineChartOptions * | getOptions () const |
Gets the line chart drawing options. More... | |
void | setOptions (const vtkQtLineChartOptions &options) |
Sets the line chart drawing options. More... | |
virtual QPixmap | getSeriesIcon (int series) const |
Gets the line chart drawing options. More... | |
Layout Methods | |
virtual void | getLayerDomain (vtkQtChartLayerDomain &domain) const |
Notifies the chart layer that a resize interaction has finished. More... | |
virtual void | layoutChart (const QRectF &area) |
Notifies the chart layer that a resize interaction has finished. More... | |
virtual bool | getHelpText (const QPointF &point, QString &text) |
Notifies the chart layer that a resize interaction has finished. More... | |
virtual void | finishInteractiveResize () |
Notifies the chart layer that a resize interaction has finished. More... | |
Selection Methods | |
virtual void | getSeriesAt (const QPointF &point, vtkQtChartSeriesSelection &selection) const |
Gets the list of series at a given position. More... | |
virtual void | getPointsAt (const QPointF &point, vtkQtChartSeriesSelection &selection) const |
Gets the list of points at a given position. More... | |
virtual void | getSeriesIn (const QRectF &area, vtkQtChartSeriesSelection &selection) const |
Gets the list of series in a given area. More... | |
virtual void | getPointsIn (const QRectF &area, vtkQtChartSeriesSelection &selection) const |
Gets the list of points in a given area. More... | |
QGraphicsItem Methods | |
virtual QRectF | boundingRect () const |
virtual void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) |
![]() | |
vtkQtChartSeriesLayer (bool useContents=true) | |
virtual | ~vtkQtChartSeriesLayer () |
vtkQtChartSeriesModel * | getModel () const |
Gets the chart series model. More... | |
vtkQtChartSeriesOptionsModel * | getOptionsModel () const |
Gets the chart series options model. More... | |
virtual void | setOptionsModel (vtkQtChartSeriesOptionsModel *model) |
Sets the chart series options model. More... | |
vtkQtChartSeriesOptions * | getSeriesOptions (int series) const |
Gets the drawing options for the given series. More... | |
int | getSeriesOptionsIndex (vtkQtChartSeriesOptions *options) const |
Gets the index for the given series options. More... | |
vtkQtChartSeriesSelectionModel * | getSelectionModel () const |
Gets the chart series selection model. More... | |
![]() | |
vtkQtChartLayer () | |
virtual | ~vtkQtChartLayer () |
virtual int | type () const |
vtkQtChartArea * | getChartArea () const |
Gets the chart area containing this layer. More... | |
virtual bool | drawItemFilter (QGraphicsItem *item, QPainter *painter) |
Used to filter items while drawing. More... | |
virtual void | startInteractiveResize () |
Notifies the chart layer that a resize interaction has started. More... | |
Protected Slots | |
virtual void | handleOptionsChanged (vtkQtChartSeriesOptions *, int type, const QVariant &newvalue, const QVariant &oldvalue) |
Called when any of the series options are changed. More... | |
void | handleLayoutNeeded () |
Called when this layer fires the layoutNeeded() signal is fired. More... | |
![]() | |
virtual void | handleOptionsChanged (vtkQtChartSeriesOptions *, int type, const QVariant &newvalue, const QVariant &oldvalue) |
Called when any of the series options are changed. More... | |
Additional Inherited Members | |
![]() | |
void | modelChanged (vtkQtChartSeriesModel *previous, vtkQtChartSeriesModel *current) |
Emitted when the series model is changed. More... | |
void | modelSeriesChanged (int first, int last) |
Emitted when the name or icon changes for a set of series. More... | |
![]() | |
void | layoutNeeded () |
Emitted when the layer layout needs to be calculated. More... | |
void | rangeChanged () |
Emitted when the axis range for the layer has changed. More... | |
![]() | |
virtual void | setupOptions (vtkQtChartSeriesOptions *options) |
Sets up the default values for the series options object. More... | |
virtual void | cleanupOptions (vtkQtChartSeriesOptions *options) |
Cleans up the options by deallocating the style reservation for the option. More... | |
![]() | |
vtkQtChartSeriesSelectionModel * | Selection |
Stores the series/point selection. More... | |
vtkQtChartSeriesModel * | Model |
Stores the series model. More... | |
vtkQtChartContentsArea * | Contents |
Used for panning. More... | |
vtkQtChartSeriesOptionsModel * | Options |
Stores the series options. More... | |
![]() | |
vtkQtChartArea * | ChartArea |
Stores the containing chart area. More... | |
The vtkQtLineChart class is used to display a line chart.
Definition at line 37 of file vtkQtLineChart.h.
anonymous enum |
Enumerator | |
---|---|
Type |
Definition at line 42 of file vtkQtLineChart.h.
vtkQtLineChart::vtkQtLineChart | ( | ) |
|
virtual |
|
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 vtkQtChartSeriesLayer.
|
virtual |
Sets the chart series model.
model | The new chart series model. |
Reimplemented from vtkQtChartSeriesLayer.
|
inline |
Gets the line chart drawing options.
Definition at line 61 of file vtkQtLineChart.h.
void vtkQtLineChart::setOptions | ( | const vtkQtLineChartOptions & | options | ) |
Sets the line chart drawing options.
This method sets all the options at once, which can prevent unnecessary view updates.
options | The new line chart drawing options. |
|
virtual |
Gets the line chart drawing options.
Reimplemented from vtkQtChartSeriesLayer.
|
virtual |
Notifies the chart layer that a resize interaction has finished.
The chart search trees are not updated while the chart is in an interactive state. It is updated in this method if needed.
Reimplemented from vtkQtChartLayer.
|
virtual |
Notifies the chart layer that a resize interaction has finished.
The chart search trees are not updated while the chart is in an interactive state. It is updated in this method if needed.
Implements vtkQtChartLayer.
|
virtual |
Notifies the chart layer that a resize interaction has finished.
The chart search trees are not updated while the chart is in an interactive state. It is updated in this method if needed.
Reimplemented from vtkQtChartLayer.
|
virtual |
Notifies the chart layer that a resize interaction has finished.
The chart search trees are not updated while the chart is in an interactive state. It is updated in this method if needed.
Reimplemented from vtkQtChartLayer.
|
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 from vtkQtChartSeriesLayer.
|
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 from vtkQtChartSeriesLayer.
|
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 from vtkQtChartSeriesLayer.
|
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 from vtkQtChartSeriesLayer.
|
virtual |
|
virtual |
|
slot |
Refreshes the line chart data from the model.
The currently displayed data is cleaned up. If a model is set, it is used to populate the line chart.
|
protectedvirtualslot |
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. |
|
protectedslot |
Called when this layer fires the layoutNeeded() signal is fired.