VTK
|
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 } |
![]() | |
enum | AxesCorner { BottomLeft = 0, BottomRight, TopLeft, TopRight } |
enum | { Type = vtkQtChart_LayerType } |
Public Slots | |
void | handleChartRangeChange () |
Sets a flag to gather the chart domains during layout. More... | |
void | cancelChartRangeChange () |
Clears the flag to gather the chart domains during layout. More... | |
Public Member Functions | |
vtkQtChartAxisLayer () | |
virtual | ~vtkQtChartAxisLayer () |
virtual void | layoutChart (const QRectF &area) |
Used to layout the chart axes. More... | |
virtual void | setChartArea (vtkQtChartArea *area) |
Sets the chart area that contains this layer. More... | |
QRectF | getLayerBounds () const |
Gets the area inside the chart axes. More... | |
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. More... | |
vtkQtChartAxis * | getHorizontalAxis (vtkQtChartLayer::AxesCorner axes) const |
Gets the horizontal axis in the specified pair. More... | |
vtkQtChartAxis * | getVerticalAxis (vtkQtChartLayer::AxesCorner axes) const |
Gets the vertical axis in the specified pair. More... | |
AxisBehavior | getAxisBehavior (vtkQtChartAxis::AxisLocation location) const |
Gets the layout behavior for the specified axis. More... | |
void | setAxisBehavior (vtkQtChartAxis::AxisLocation location, AxisBehavior behavior) |
Sets the layout behavior for the specified axis. More... | |
const vtkQtChartAxisDomainPriority & | getAxisDomainPriority (vtkQtChartAxis::AxisLocation location) const |
Gets the domain priority order for the given axis. More... | |
void | setAxisDomainPriority (vtkQtChartAxis::AxisLocation location, const vtkQtChartAxisDomainPriority &priority) |
Sets the domain priority order for the given axis. More... | |
![]() | |
vtkQtChartLayer () | |
virtual | ~vtkQtChartLayer () |
virtual int | type () const |
vtkQtChartArea * | getChartArea () const |
Gets the chart area containing this layer. More... | |
virtual void | getLayerDomain (vtkQtChartLayerDomain &domain) const |
Gets the chart layer's domain. More... | |
virtual bool | drawItemFilter (QGraphicsItem *item, QPainter *painter) |
Used to filter items while drawing. More... | |
virtual bool | getHelpText (const QPointF &point, QString &text) |
Gets the help text for the given location. More... | |
virtual void | startInteractiveResize () |
Notifies the chart layer that a resize interaction has started. More... | |
virtual void | finishInteractiveResize () |
Notifies the chart layer that a resize interaction has finished. More... | |
Additional Inherited Members | |
![]() | |
void | layoutNeeded () |
Emitted when the layer layout needs to be calculated. More... | |
void | rangeChanged () |
Emitted when the axis range for the layer has changed. More... | |
![]() | |
vtkQtChartArea * | ChartArea |
Stores the containing chart area. More... | |
The vtkQtChartAxisLayer class is used to display the chart axes.
Definition at line 41 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.
anonymous enum |
Enumerator | |
---|---|
Type |
Definition at line 53 of file vtkQtChartAxisLayer.h.
vtkQtChartAxisLayer::vtkQtChartAxisLayer | ( | ) |
|
virtual |
vtkQtChartAxis* vtkQtChartAxisLayer::getAxis | ( | vtkQtChartAxis::AxisLocation | location) | const |
Gets the axis in the specified location.
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. |
vtkQtChartAxis* vtkQtChartAxisLayer::getVerticalAxis | ( | vtkQtChartLayer::AxesCorner | axes) | const |
Gets the vertical axis in the specified pair.
axes | The pair of chart axes. |
AxisBehavior vtkQtChartAxisLayer::getAxisBehavior | ( | vtkQtChartAxis::AxisLocation | location) | const |
Gets the layout behavior for the specified axis.
location | The location of the axis. |
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. |
const vtkQtChartAxisDomainPriority& vtkQtChartAxisLayer::getAxisDomainPriority | ( | vtkQtChartAxis::AxisLocation | location) | const |
Gets the domain priority order for the given axis.
location | The location of the axis. |
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 |
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 |
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.
|
inline |
Gets the area inside the chart axes.
Definition at line 138 of file vtkQtChartAxisLayer.h.
|
virtual |
|
virtual |
|
slot |
Sets a flag to gather the chart domains during layout.
|
slot |
Clears the flag to gather the chart domains during layout.