24 #ifndef _vtkQtChartBarLocator_h
25 #define _vtkQtChartBarLocator_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);
168 void build(
const QList<vtkQtChartBar *> &list);
190 QList<vtkQtChartBar *> getItemsIn(
const QRectF &area)
const;
209 void buildTree(QLinkedList<vtkQtChartBarLocatorNode *> &list)
const;
213 QList<vtkQtChartBarLocatorNode *> Items;
void setSecond(vtkQtChartBarLocatorNode *second)
Sets the second child node.
void setFirst(vtkQtChartBarLocatorNode *first)
Sets the first child node.
vtkQtChartBarLocatorNode * getSecond() const
Gets the second child node.
vtkQtChartBar * getElement() const
Gets the chart shape element.
The vtkQtChartBarLocator class is used to locate bars in a tree structure.
const QRectF & getBounds() const
Gets the bounding rectangle.
vtkQtChartBarLocatorNode * getParent() const
Gets the parent node.
bool hasChildren() const
Gets whether or not the node has children.
The vtkQtChartBar class defines a bar used by the chart bar locator.
vtkQtChartBarLocatorNode * getFirst() const
Gets the first child node.
void setParent(vtkQtChartBarLocatorNode *parent)
Sets the parent node.
The vtkQtChartBarLocatorNode class is used to build a tree of chart bar shapes.