VTK
Public Types | Public Slots | Public Member Functions
vtkQtChartGridLayer Class Reference

The vtkQtChartGridLayer class is used to dislpay the chart background grid. More...

#include <vtkQtChartGridLayer.h>

Inheritance diagram for vtkQtChartGridLayer:
[legend]
Collaboration diagram for vtkQtChartGridLayer:
[legend]

List of all members.

Public Types

enum  { Type = vtkQtChart_GridLayerType }
- Public Types inherited from vtkQtChartLayer
enum  AxesCorner { BottomLeft = 0, BottomRight, TopLeft, TopRight }
enum  { Type = vtkQtChart_LayerType }

Public Slots

void setXOffset (float xOffset)
 Sets the x-axis pan offset.
void setYOffset (float yOffset)
 Sets the y-axis pan offset.

Public Member Functions

 vtkQtChartGridLayer ()
virtual ~vtkQtChartGridLayer ()
virtual void setChartArea (vtkQtChartArea *area)
 Sets the chart area that contains this layer.
virtual void layoutChart (const QRectF &area)
 Used to layout the chart layer.
virtual QRectF boundingRect () const
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
- Public Member Functions inherited from vtkQtChartLayer
 vtkQtChartLayer ()
virtual ~vtkQtChartLayer ()
virtual int type () const
vtkQtChartAreagetChartArea () const
 Gets the chart area containing this layer.
virtual void getLayerDomain (vtkQtChartLayerDomain &domain) const
 Gets the chart layer's domain.
virtual bool drawItemFilter (QGraphicsItem *item, QPainter *painter)
 Used to filter items while drawing.
virtual bool getHelpText (const QPointF &point, QString &text)
 Gets the help text for the given location.
virtual void startInteractiveResize ()
 Notifies the chart layer that a resize interaction has started.
virtual void finishInteractiveResize ()
 Notifies the chart layer that a resize interaction has finished.

Additional Inherited Members

- Signals inherited from vtkQtChartLayer
void layoutNeeded ()
 Emitted when the layer layout needs to be calculated.
void rangeChanged ()
 Emitted when the axis range for the layer has changed.
- Protected Attributes inherited from vtkQtChartLayer
vtkQtChartAreaChartArea
 Stores the containing chart area.

Detailed Description

The vtkQtChartGridLayer class is used to dislpay the chart background grid.

Definition at line 37 of file vtkQtChartGridLayer.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
Type 

Definition at line 42 of file vtkQtChartGridLayer.h.


Constructor & Destructor Documentation

vtkQtChartGridLayer::vtkQtChartGridLayer ( )
virtual vtkQtChartGridLayer::~vtkQtChartGridLayer ( )
virtual

Member Function Documentation

virtual void vtkQtChartGridLayer::setChartArea ( vtkQtChartArea area)
virtual

Sets the chart area that contains this layer.

The chart area will call this method when the layer is added to it. The layer can overload this method to perform any setup it needs to.

Parameters:
areaThe new chart area.

Reimplemented from vtkQtChartLayer.

virtual void vtkQtChartGridLayer::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 QRectF vtkQtChartGridLayer::boundingRect ( ) const
virtual
virtual void vtkQtChartGridLayer::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = 0 
)
virtual
void vtkQtChartGridLayer::setXOffset ( float  xOffset)
slot

Sets the x-axis pan offset.

Parameters:
xOffsetThe new x-axis pan offset.
void vtkQtChartGridLayer::setYOffset ( float  yOffset)
slot

Sets the y-axis pan offset.

Parameters:
yOffsetThe new y-axis pan offset.

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