Public Slots | Public Member Functions | Protected Member Functions

vtkQtBarChart Class Reference

The vtkQtBarChart class is used to display a bar chart. More...

#include <vtkQtBarChart.h>

Inheritance diagram for vtkQtBarChart:
Inheritance graph
[legend]
Collaboration diagram for vtkQtBarChart:
Collaboration graph
[legend]

List of all members.

Public Slots

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

Public Member Functions

 vtkQtBarChart ()
virtual ~vtkQtBarChart ()
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
vtkQtBarChartOptionsgetOptions () const
 Gets the bar chart drawing options.
void setOptions (const vtkQtBarChartOptions &options)
 Sets the bar chart drawing options.
vtkQtBarChartSeriesOptionsgetBarSeriesOptions (int series) const
 Gets the bar chart series options.
virtual QPixmap getSeriesIcon (int series) const
 Gets the icon for a given series.
Layout Methods
virtual void getLayerDomain (vtkQtChartLayerDomain &domain) const
 Gets the chart layer's domain.
virtual void layoutChart (const QRectF &area)
 Used to layout the chart layer.
virtual bool getHelpText (const QPointF &point, QString &text)
 Gets the help text for the given location.
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=0)

Protected Member Functions

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

Detailed Description

The vtkQtBarChart class is used to display a bar chart.

Definition at line 38 of file vtkQtBarChart.h.


Constructor & Destructor Documentation

vtkQtBarChart::vtkQtBarChart (  )
virtual vtkQtBarChart::~vtkQtBarChart (  ) [virtual]

Member Function Documentation

virtual QRectF vtkQtBarChart::boundingRect (  ) const [virtual]
virtual vtkQtChartSeriesOptions* vtkQtBarChart::createOptions ( QObject *  parent ) [protected, virtual]

Creates a new bar chart series options object.

Parameters:
parentThe parent object.
Returns:
A pointer to the new bar chart series options object.

Implements vtkQtChartSeriesLayer.

virtual void vtkQtBarChart::finishInteractiveResize (  ) [virtual]

Notifies the chart layer that a resize interaction has finished.

The chart bar tree is not updated while the chart is in an interactive state. It is updated in this method if needed.

Reimplemented from vtkQtChartLayer.

vtkQtBarChartSeriesOptions* vtkQtBarChart::getBarSeriesOptions ( int  series ) const

Gets the bar chart series options.

Parameters:
seriesThe series index.
Returns:
A pointer to the bar chart series options.
virtual bool vtkQtBarChart::getHelpText ( const QPointF &  point,
QString &  text 
) [virtual]

Gets the help text for the given location.

When the chart receives a help event, the layers are searched, in order, for help text at the help event location. If a layer has an item at the location, it should return true.

Parameters:
pointThe help location in scene coordinates.
textUsed to return the help text.
Returns:
True if help text is found for the given location.

Reimplemented from vtkQtChartLayer.

virtual void vtkQtBarChart::getLayerDomain ( vtkQtChartLayerDomain domain ) const [virtual]

Gets the chart layer's domain.

The layer should use the mergeDomain method of the domain parameter to add its domains. The domains from all of the chart layers will be combined using the domain object.

Parameters:
domainUsed to return the chart layer's domain.

Reimplemented from vtkQtChartLayer.

vtkQtBarChartOptions* vtkQtBarChart::getOptions (  ) const [inline]

Gets the bar chart drawing options.

Returns:
A pointer to the bar chart drawing options.

Definition at line 59 of file vtkQtBarChart.h.

{return this->Options;}
virtual void vtkQtBarChart::getPointsAt ( const QPointF &  point,
vtkQtChartSeriesSelection selection 
) const [virtual]

Gets the list of points at a given position.

Parameters:
pointThe position in scene coordinates.
selectionUsed to return the list of points.

Reimplemented from vtkQtChartSeriesLayer.

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

Gets the list of points in a given area.

Parameters:
areaThe rectangle in scene coordinates.
selectionUsed to return the list of points.

Reimplemented from vtkQtChartSeriesLayer.

virtual void vtkQtBarChart::getSeriesAt ( const QPointF &  point,
vtkQtChartSeriesSelection selection 
) const [virtual]

Gets the list of series at a given position.

Parameters:
pointThe position in scene coordinates.
selectionUsed to return the list of series.

Reimplemented from vtkQtChartSeriesLayer.

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

Gets the icon for a given series.

The icon is used by the chart legend.

Parameters:
seriesThe index of the series.
Returns:
A pixmap representation of the series.

Reimplemented from vtkQtChartSeriesLayer.

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

Gets the list of series in a given area.

Parameters:
areaThe rectangle in scene coordinates.
selectionUsed to return the list of series.

Reimplemented from vtkQtChartSeriesLayer.

virtual void vtkQtBarChart::layoutChart ( const QRectF &  area ) [virtual]

Used to layout the chart layer.

Use the AxisDomain from the relevant axes to determine if the chart data can be displayed. The domain priority for the axes can override a layer's desired domain.

Parameters:
areaThe area the chart should occupy.

Implements vtkQtChartLayer.

virtual void vtkQtBarChart::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = 0 
) [virtual]
void vtkQtBarChart::reset (  ) [slot]

Refreshes the bar chart data from the model.

The currently displayed data is cleaned up. If a model is set, it is used to populate the bar chart.

virtual void vtkQtBarChart::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:
areaThe new chart area.

Reimplemented from vtkQtChartSeriesLayer.

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

Sets the chart series model.

Parameters:
modelThe new chart series model.

Reimplemented from vtkQtChartSeriesLayer.

Referenced by QmitkVtkHistogramWidget::UpdateItemModelFromHistogram().

void vtkQtBarChart::setOptions ( const vtkQtBarChartOptions options )

Sets the bar chart drawing options.

This method sets all the options at once, which can prevent unnecessary view updates.

Parameters:
optionsThe new bar chart drawing options.
virtual void vtkQtBarChart::setupOptions ( vtkQtChartSeriesOptions options ) [protected, virtual]

Sets up the series options defaults.

Parameters:
optionsThe new series options object.

Implements vtkQtChartSeriesLayer.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines