The vtkQtChartLayer class is the base class for all chart drawing layers.
More...
#include <vtkQtChartLayer.h>
The vtkQtChartLayer class is the base class for all chart drawing layers.
Definition at line 43 of file vtkQtChartLayer.h.
Enumerator |
---|
BottomLeft |
Uses the bottom and left axes.
|
BottomRight |
Uses the bottom and right axes.
|
TopLeft |
Uses the top and left axes.
|
TopRight |
Uses the top and right axes.
|
Definition at line 48 of file vtkQtChartLayer.h.
vtkQtChartLayer::vtkQtChartLayer |
( |
) | |
|
virtual vtkQtChartLayer::~vtkQtChartLayer |
( |
) | |
|
|
inlinevirtual |
virtual int vtkQtChartLayer::type |
( |
) | |
const |
|
inlinevirtual |
Gets the chart area containing this layer.
- Returns
- A pointer to the chart area.
Definition at line 68 of file vtkQtChartLayer.h.
Gets the chart layer's domain.
The layer should use the mergeDomain
method of the domain
parameter to add its domains. The domains from all of the chart layers will be combined using the domain
object.
- Parameters
-
domain | Used to return the chart layer's domain. |
Reimplemented in vtkQtLineChart, vtkQtBarChart, vtkQtStackedChart, and vtkQtStatisticalBoxChart.
virtual void vtkQtChartLayer::layoutChart |
( |
const QRectF & |
area) | |
|
|
pure virtual |
virtual bool vtkQtChartLayer::drawItemFilter |
( |
QGraphicsItem * |
item, |
|
|
QPainter * |
painter |
|
) |
| |
|
virtual |
Used to filter items while drawing.
Items can be filtered in two ways. First, this method can return true to skip drawing the item. Second, the painter can be modified to clip the item. The default implementation simply returns false.
- Note
- The painter is in scene coordinates when passed in. It will be transformed to item coordinates after this call. To clip in item coordinates, use the item's paint method.
- Parameters
-
item | One of the layer's child items. |
painter | The painter used to draw the item. |
- Returns
- True if the item should not be drawn.
virtual bool vtkQtChartLayer::getHelpText |
( |
const QPointF & |
point, |
|
|
QString & |
text |
|
) |
| |
|
virtual |
Gets the help text for the given location.
When the chart receives a help event, the layers are searched, in order, for help text at the help event location. If a layer has an item at the location, it should return true.
- Parameters
-
point | The help location in scene coordinates. |
text | Used to return the help text. |
- Returns
- True if help text is found for the given location.
Reimplemented in vtkQtLineChart, vtkQtBarChart, vtkQtStackedChart, and vtkQtStatisticalBoxChart.
virtual void vtkQtChartLayer::startInteractiveResize |
( |
) | |
|
|
inlinevirtual |
Notifies the chart layer that a resize interaction has started.
Definition at line 132 of file vtkQtChartLayer.h.
virtual void vtkQtChartLayer::finishInteractiveResize |
( |
) | |
|
|
inlinevirtual |
void vtkQtChartLayer::layoutNeeded |
( |
) | |
|
|
signal |
Emitted when the layer layout needs to be calculated.
void vtkQtChartLayer::rangeChanged |
( |
) | |
|
|
signal |
Emitted when the axis range for the layer has changed.
- Note
- This signal should be emitted before the
layoutNeeded
signal to be effective.
The documentation for this class was generated from the following file: