vtkQtChartAxisLayer Class Reference

#include <vtkQtChartAxisLayer.h>

Inheritance diagram for vtkQtChartAxisLayer:

Inheritance graph
[legend]
Collaboration diagram for vtkQtChartAxisLayer:

Collaboration graph
[legend]

List of all members.


Detailed Description

The vtkQtChartAxisLayer class is used to display the chart axes.

Definition at line 41 of file vtkQtChartAxisLayer.h.


Public Types

enum  AxisBehavior { ChartSelect = 0, BestFit, FixedInterval }
enum  { Type = vtkQtChart_AxisLayerType }

Public Slots

void handleChartRangeChange ()
 Sets a flag to gather the chart domains during layout.
void cancelChartRangeChange ()
 Clears the flag to gather the chart domains during layout.

Public Member Functions

 vtkQtChartAxisLayer ()
virtual ~vtkQtChartAxisLayer ()
virtual void layoutChart (const QRectF &area)
 Used to layout the chart axes.
virtual void setChartArea (vtkQtChartArea *area)
 Sets the chart area that contains this layer.
QRectF getLayerBounds () const
 Gets the area inside the chart axes.
virtual QRectF boundingRect () const
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Axis Methods
vtkQtChartAxisgetAxis (vtkQtChartAxis::AxisLocation location) const
 Gets the axis in the specified location.
vtkQtChartAxisgetHorizontalAxis (vtkQtChartLayer::AxesCorner axes) const
 Gets the horizontal axis in the specified pair.
vtkQtChartAxisgetVerticalAxis (vtkQtChartLayer::AxesCorner axes) const
 Gets the vertical axis in the specified pair.
AxisBehavior getAxisBehavior (vtkQtChartAxis::AxisLocation location) const
 Gets the layout behavior for the specified axis.
void setAxisBehavior (vtkQtChartAxis::AxisLocation location, AxisBehavior behavior)
 Sets the layout behavior for the specified axis.
const
vtkQtChartAxisDomainPriority
getAxisDomainPriority (vtkQtChartAxis::AxisLocation location) const
 Gets the domain priority order for the given axis.
void setAxisDomainPriority (vtkQtChartAxis::AxisLocation location, const vtkQtChartAxisDomainPriority &priority)
 Sets the domain priority order for the given axis.

Member Enumeration Documentation

Enumerator:
ChartSelect  The axis labels are determined by the charts.
BestFit  The axis labels are determined by space.
FixedInterval  The axis labels are fixed.

Definition at line 46 of file vtkQtChartAxisLayer.h.

anonymous enum

Enumerator:
Type 

Definition at line 53 of file vtkQtChartAxisLayer.h.


Constructor & Destructor Documentation

vtkQtChartAxisLayer::vtkQtChartAxisLayer (  ) 

virtual vtkQtChartAxisLayer::~vtkQtChartAxisLayer (  )  [virtual]


Member Function Documentation

vtkQtChartAxis* vtkQtChartAxisLayer::getAxis ( vtkQtChartAxis::AxisLocation  location  )  const

Gets the axis in the specified location.

Parameters:
location The location of the axis.
Returns:
A pointer to the specified axis.

vtkQtChartAxis* vtkQtChartAxisLayer::getHorizontalAxis ( vtkQtChartLayer::AxesCorner  axes  )  const

Gets the horizontal axis in the specified pair.

Parameters:
axes The pair of chart axes.
Returns:
A pointer to the specified axis.

vtkQtChartAxis* vtkQtChartAxisLayer::getVerticalAxis ( vtkQtChartLayer::AxesCorner  axes  )  const

Gets the vertical axis in the specified pair.

Parameters:
axes The pair of chart axes.
Returns:
A pointer to the specified axis.

AxisBehavior vtkQtChartAxisLayer::getAxisBehavior ( vtkQtChartAxis::AxisLocation  location  )  const

Gets the layout behavior for the specified axis.

Parameters:
location The location of the axis.
Returns:
The layout behavior for the specified axis.

void vtkQtChartAxisLayer::setAxisBehavior ( vtkQtChartAxis::AxisLocation  location,
AxisBehavior  behavior 
)

Sets the layout behavior for the specified axis.

Parameters:
location The location of the axis.
behavior The new layout behavior.

const vtkQtChartAxisDomainPriority& vtkQtChartAxisLayer::getAxisDomainPriority ( vtkQtChartAxis::AxisLocation  location  )  const

Gets the domain priority order for the given axis.

Parameters:
location The location of the axis.
Returns:
A reference to the domain priority order.

void vtkQtChartAxisLayer::setAxisDomainPriority ( vtkQtChartAxis::AxisLocation  location,
const vtkQtChartAxisDomainPriority priority 
)

Sets the domain priority order for the given axis.

Parameters:
location The location of the axis.
priority The new domain priority order.

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

Used to layout the chart axes.

The area passed to this method is the total chart area. The axis layer uses the whole area to layout the axes. Once the layout is complete, the space inside the axes is passed to the other chart layers.

Parameters:
area The area the axes should occupy.
See also:
vtkQtChartAxisLayer::getLayerBounds()

Implements vtkQtChartLayer.

virtual void vtkQtChartAxisLayer::setChartArea ( vtkQtChartArea area  )  [virtual]

Sets the chart area that contains this layer.

The contents space object for the axes is set to the one used by the chart area.

Parameters:
area The new chart area.

Reimplemented from vtkQtChartLayer.

QRectF vtkQtChartAxisLayer::getLayerBounds (  )  const [inline]

Gets the area inside the chart axes.

Returns:
The area inside the chart axes.

Definition at line 138 of file vtkQtChartAxisLayer.h.

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

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

void vtkQtChartAxisLayer::handleChartRangeChange (  )  [slot]

Sets a flag to gather the chart domains during layout.

void vtkQtChartAxisLayer::cancelChartRangeChange (  )  [slot]

Clears the flag to gather the chart domains during layout.


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

Generated on Wed Aug 24 11:59:17 2011 for VTK by  doxygen 1.5.6