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:
Inheritance graph
[legend]
Collaboration diagram for vtkQtChartGridLayer:
Collaboration graph
[legend]

List of all members.

Public Types

enum  { Type = vtkQtChart_GridLayerType }

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)

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

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines