vtkQtLineChart Class Reference

#include <vtkQtLineChart.h>

Inheritance diagram for vtkQtLineChart:

Inheritance graph
[legend]
Collaboration diagram for vtkQtLineChart:

Collaboration graph
[legend]

List of all members.


Detailed Description

The vtkQtLineChart class is used to display a line chart.

Definition at line 38 of file vtkQtLineChart.h.


Public Types

enum  { Type = vtkQtChart_LineChartType }

Public Slots

void reset ()
 Refreshes the line chart data from the model.

Public Member Functions

 vtkQtLineChart ()
virtual ~vtkQtLineChart ()
Setup Methods
virtual void setChartArea (vtkQtChartArea *area)
 Sets the chart area for the chart layer.
virtual void setModel (vtkQtChartSeriesModel *model)
 Sets the chart series model.
Drawing Parameters
vtkQtLineChartOptionsgetOptions () const
 Gets the line chart drawing options.
void setOptions (const vtkQtLineChartOptions &options)
 Sets the line chart drawing options.
vtkQtLineChartSeriesOptionsgetLineSeriesOptions (int series) const
 Gets the line chart series options.
virtual QPixmap getSeriesIcon (int series) const
 Gets the line chart drawing options.
Layout Methods
virtual void getLayerDomain (vtkQtChartLayerDomain &domain) const
 Notifies the chart layer that a resize interaction has finished.
virtual void layoutChart (const QRectF &area)
 Notifies the chart layer that a resize interaction has finished.
virtual bool getHelpText (const QPointF &point, QString &text)
 Notifies the chart layer that a resize interaction has finished.
virtual void finishInteractiveResize ()
 Notifies the chart layer that a resize interaction has finished.
Selection Methods
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.
QGraphicsItem Methods
virtual QRectF boundingRect () const
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)

Protected Member Functions

virtual vtkQtChartSeriesOptionscreateOptions (QObject *parent)
 Creates a new line chart series options object.
virtual void setupOptions (vtkQtChartSeriesOptions *options)
 Sets up the series options defaults.

Member Enumeration Documentation

anonymous enum

Enumerator:
Type 

Definition at line 43 of file vtkQtLineChart.h.


Constructor & Destructor Documentation

vtkQtLineChart::vtkQtLineChart (  ) 

virtual vtkQtLineChart::~vtkQtLineChart (  )  [virtual]


Member Function Documentation

virtual void vtkQtLineChart::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.

Parameters:
area The new chart area.

Reimplemented from vtkQtChartSeriesLayer.

virtual void vtkQtLineChart::setModel ( vtkQtChartSeriesModel model  )  [virtual]

Sets the chart series model.

Parameters:
model The new chart series model.

Reimplemented from vtkQtChartSeriesLayer.

vtkQtLineChartOptions* vtkQtLineChart::getOptions (  )  const [inline]

Gets the line chart drawing options.

Returns:
A pointer to the line chart drawing options.

Definition at line 62 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.

Parameters:
options The new line chart drawing options.

vtkQtLineChartSeriesOptions* vtkQtLineChart::getLineSeriesOptions ( int  series  )  const

Gets the line chart series options.

Parameters:
series The series index.
Returns:
A pointer to the line chart series options.

virtual QPixmap vtkQtLineChart::getSeriesIcon ( int  series  )  const [virtual]

Gets the line chart drawing options.

Returns:
A pointer to the line chart drawing options.

Reimplemented from vtkQtChartSeriesLayer.

virtual void vtkQtLineChart::getLayerDomain ( vtkQtChartLayerDomain domain  )  const [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 void vtkQtLineChart::layoutChart ( const QRectF &  area  )  [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 bool vtkQtLineChart::getHelpText ( const QPointF &  point,
QString &  text 
) [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 void vtkQtLineChart::finishInteractiveResize (  )  [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 void vtkQtLineChart::getSeriesAt ( const QPointF &  point,
vtkQtChartSeriesSelection selection 
) const [virtual]

Gets the list of series at a given position.

Parameters:
point The position in scene coordinates.
selection Used to return the list of series.

Reimplemented from vtkQtChartSeriesLayer.

virtual void vtkQtLineChart::getPointsAt ( const QPointF &  point,
vtkQtChartSeriesSelection selection 
) const [virtual]

Gets the list of points at a given position.

Parameters:
point The position in scene coordinates.
selection Used to return the list of points.

Reimplemented from vtkQtChartSeriesLayer.

virtual void vtkQtLineChart::getSeriesIn ( const QRectF &  area,
vtkQtChartSeriesSelection selection 
) const [virtual]

Gets the list of series in a given area.

Parameters:
area The rectangle in scene coordinates.
selection Used to return the list of series.

Reimplemented from vtkQtChartSeriesLayer.

virtual void vtkQtLineChart::getPointsIn ( const QRectF &  area,
vtkQtChartSeriesSelection selection 
) const [virtual]

Gets the list of points in a given area.

Parameters:
area The rectangle in scene coordinates.
selection Used to return the list of points.

Reimplemented from vtkQtChartSeriesLayer.

virtual QRectF vtkQtLineChart::boundingRect (  )  const [virtual]

virtual void vtkQtLineChart::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget 
) [virtual]

void vtkQtLineChart::reset (  )  [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.

virtual vtkQtChartSeriesOptions* vtkQtLineChart::createOptions ( QObject *  parent  )  [protected, virtual]

Creates a new line chart series options object.

Parameters:
parent The parent object.
Returns:
A pointer to the new line chart series options object.

Implements vtkQtChartSeriesLayer.

virtual void vtkQtLineChart::setupOptions ( vtkQtChartSeriesOptions options  )  [protected, virtual]

Sets up the series options defaults.

Parameters:
options The new series options object.

Implements vtkQtChartSeriesLayer.


The documentation for this class was generated from the following file:

Generated on Wed Jun 3 19:28:53 2009 for VTK by  doxygen 1.5.6