Public Types | Public Slots | Public Member Functions

vtkQtChartAxisLayer Class Reference

The vtkQtChartAxisLayer class is used to display the chart axes. More...

#include <vtkQtChartAxisLayer.h>

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

List of all members.

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.

Detailed Description

The vtkQtChartAxisLayer class is used to display the chart axes.

Definition at line 41 of file vtkQtChartAxisLayer.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
Type 

Definition at line 53 of file vtkQtChartAxisLayer.h.

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.


Constructor & Destructor Documentation

vtkQtChartAxisLayer::vtkQtChartAxisLayer (  )
virtual vtkQtChartAxisLayer::~vtkQtChartAxisLayer (  ) [virtual]

Member Function Documentation

virtual QRectF vtkQtChartAxisLayer::boundingRect (  ) const [virtual]
void vtkQtChartAxisLayer::cancelChartRangeChange (  ) [slot]

Clears the flag to gather the chart domains during layout.

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

Gets the axis in the specified location.

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

Referenced by QmitkVtkHistogramWidget::QmitkVtkHistogramWidget(), and QmitkVtkLineProfileWidget::QmitkVtkLineProfileWidget().

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

Gets the layout behavior for the specified axis.

Parameters:
locationThe location of the axis.
Returns:
The layout behavior for the specified axis.
const vtkQtChartAxisDomainPriority& vtkQtChartAxisLayer::getAxisDomainPriority ( vtkQtChartAxis::AxisLocation  location ) const

Gets the domain priority order for the given axis.

Parameters:
locationThe location of the axis.
Returns:
A reference to the domain priority order.
vtkQtChartAxis* vtkQtChartAxisLayer::getHorizontalAxis ( vtkQtChartLayer::AxesCorner  axes ) const

Gets the horizontal axis in the specified pair.

Parameters:
axesThe pair of chart axes.
Returns:
A pointer to the specified axis.
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.

{return this->LayerBounds;}
vtkQtChartAxis* vtkQtChartAxisLayer::getVerticalAxis ( vtkQtChartLayer::AxesCorner  axes ) const

Gets the vertical axis in the specified pair.

Parameters:
axesThe pair of chart axes.
Returns:
A pointer to the specified axis.
void vtkQtChartAxisLayer::handleChartRangeChange (  ) [slot]

Sets a flag to gather the chart domains during layout.

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:
areaThe area the axes should occupy.
See also:
vtkQtChartAxisLayer::getLayerBounds()

Implements vtkQtChartLayer.

virtual void vtkQtChartAxisLayer::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option,
QWidget *  widget = 0 
) [virtual]
void vtkQtChartAxisLayer::setAxisBehavior ( vtkQtChartAxis::AxisLocation  location,
AxisBehavior  behavior 
)

Sets the layout behavior for the specified axis.

Parameters:
locationThe location of the axis.
behaviorThe new layout behavior.
void vtkQtChartAxisLayer::setAxisDomainPriority ( vtkQtChartAxis::AxisLocation  location,
const vtkQtChartAxisDomainPriority priority 
)

Sets the domain priority order for the given axis.

Parameters:
locationThe location of the axis.
priorityThe new domain priority order.
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:
areaThe new chart area.

Reimplemented from vtkQtChartLayer.


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