24 #ifndef _vtkQtChartShapeLocator_h
25 #define _vtkQtChartShapeLocator_h
27 #include "vtkQtChartExport.h"
28 #include <QLinkedList>
54 bool contains(
const QPointF &
point)
const;
61 bool intersects(
const QRectF &area)
const;
67 const QRectF &
getBounds()
const {
return *this->Bounds;}
72 void setBounds(
const QRectF &bounds);
106 const QList<vtkQtChartShapeLocatorNode *> &
getNodes()
const {
return this->Nodes;}
112 QList<vtkQtChartShapeLocatorNode *> &
getNodes() {
return this->Nodes;}
125 QList<vtkQtChartShapeLocatorNode *> Nodes;
158 void build(
const QList<QList<vtkQtChartShape *> > &table);
170 void build(
const QList<vtkQtChartShape *> &list);
185 QList<vtkQtChartShape *> getItemsAt(
const QPointF &
point)
const;
192 QList<vtkQtChartShape *> getItemsIn(
const QRectF &area)
const;
215 static void sort(QList<vtkQtChartShape *> &list);
221 void build(QLinkedList<QLinkedList<vtkQtChartShapeLocatorNode *> > &table);
The vtkQtChartShapeLocatorNode class is used to build a tree of chart shapes.
The vtkQtChartShapeLocator class is used to locate shapes in a tree structure.
const QList< vtkQtChartShapeLocatorNode * > & getNodes() const
Gets the list of child nodes.
The vtkQtChartShape class is the base class for shapes used in the chart shape locators.
vtkQtChartShapeLocatorNode * getParent() const
Gets the parent node.
vtkQtChartShape * getElement() const
Gets the chart shape element.
bool hasChildren() const
Gets whether or not the node has children.
const QRectF & getBounds() const
Gets the bounding rectangle.
void setParent(vtkQtChartShapeLocatorNode *parent)
Sets the parent node.
QList< vtkQtChartShapeLocatorNode * > & getNodes()
Gets the list of child nodes.