The vtkQtChartAxisLayer class is used to display the chart axes. More...
#include <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 | |
vtkQtChartAxis * | getAxis (vtkQtChartAxis::AxisLocation location) const |
Gets the axis in the specified location. | |
vtkQtChartAxis * | getHorizontalAxis (vtkQtChartLayer::AxesCorner axes) const |
Gets the horizontal axis in the specified pair. | |
vtkQtChartAxis * | getVerticalAxis (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. |
The vtkQtChartAxisLayer class is used to display the chart axes.
Definition at line 41 of file vtkQtChartAxisLayer.h.
anonymous enum |
Definition at line 53 of file vtkQtChartAxisLayer.h.
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.
{ ChartSelect = 0, BestFit, FixedInterval };
vtkQtChartAxisLayer::vtkQtChartAxisLayer | ( | ) |
virtual vtkQtChartAxisLayer::~vtkQtChartAxisLayer | ( | ) | [virtual] |
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.
location | The location of the axis. |
Referenced by QmitkVtkHistogramWidget::QmitkVtkHistogramWidget(), and QmitkVtkLineProfileWidget::QmitkVtkLineProfileWidget().
AxisBehavior vtkQtChartAxisLayer::getAxisBehavior | ( | vtkQtChartAxis::AxisLocation | location ) | const |
Gets the layout behavior for the specified axis.
location | The location of the axis. |
const vtkQtChartAxisDomainPriority& vtkQtChartAxisLayer::getAxisDomainPriority | ( | vtkQtChartAxis::AxisLocation | location ) | const |
Gets the domain priority order for the given axis.
location | The location of the axis. |
vtkQtChartAxis* vtkQtChartAxisLayer::getHorizontalAxis | ( | vtkQtChartLayer::AxesCorner | axes ) | const |
Gets the horizontal axis in the specified pair.
axes | The pair of chart axes. |
QRectF vtkQtChartAxisLayer::getLayerBounds | ( | ) | const [inline] |
Gets 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.
axes | The pair of chart axes. |
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.
area | The area the axes should occupy. |
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.
location | The location of the axis. |
behavior | The new layout behavior. |
void vtkQtChartAxisLayer::setAxisDomainPriority | ( | vtkQtChartAxis::AxisLocation | location, |
const vtkQtChartAxisDomainPriority & | priority | ||
) |
Sets the domain priority order for the given axis.
location | The location of the axis. |
priority | The 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.
area | The new chart area. |
Reimplemented from vtkQtChartLayer.