VTK
|
The vtkQtChartShapeLocatorNode class is used to build a tree of chart shapes. More...
#include <vtkQtChartShapeLocator.h>
Public Member Functions | |
vtkQtChartShapeLocatorNode (vtkQtChartShape *element=0) | |
Constructs a chart shape locator node. | |
~vtkQtChartShapeLocatorNode () | |
bool | contains (const QPointF &point) const |
Gets whether or not the bounding area contains the given point. | |
bool | intersects (const QRectF &area) const |
Gets whether or not the bounding area intersects the given area. | |
const QRectF & | getBounds () const |
Gets the bounding rectangle. | |
void | setBounds (const QRectF &bounds) |
Sets the bounding rectangle. | |
vtkQtChartShape * | getElement () const |
Gets the chart shape element. | |
void | setElement (vtkQtChartShape *element) |
Sets the chart shape element. | |
vtkQtChartShapeLocatorNode * | getParent () const |
Gets the parent node. | |
void | setParent (vtkQtChartShapeLocatorNode *parent) |
Sets the parent node. | |
bool | hasChildren () const |
Gets whether or not the node has children. | |
const QList < vtkQtChartShapeLocatorNode * > & | getNodes () const |
Gets the list of child nodes. | |
QList < vtkQtChartShapeLocatorNode * > & | getNodes () |
Gets the list of child nodes. | |
void | updateBounds () |
Updates the bounding rectangle. |
The vtkQtChartShapeLocatorNode class is used to build a tree of chart shapes.
Definition at line 40 of file vtkQtChartShapeLocator.h.
vtkQtChartShapeLocatorNode::vtkQtChartShapeLocatorNode | ( | vtkQtChartShape * | element = 0 | ) |
Constructs a chart shape locator node.
element | The chart shape element to wrap. |
bool vtkQtChartShapeLocatorNode::contains | ( | const QPointF & | point | ) | const |
Gets whether or not the bounding area contains the given point.
point | The position to evaluate. |
bool vtkQtChartShapeLocatorNode::intersects | ( | const QRectF & | area | ) | const |
Gets whether or not the bounding area intersects the given area.
area | The rectangle to evaluate. |
const QRectF& vtkQtChartShapeLocatorNode::getBounds | ( | ) | const [inline] |
Gets the bounding rectangle.
Definition at line 67 of file vtkQtChartShapeLocator.h.
void vtkQtChartShapeLocatorNode::setBounds | ( | const QRectF & | bounds | ) |
Sets the bounding rectangle.
bounds | The new bounding rectangle. |
vtkQtChartShape* vtkQtChartShapeLocatorNode::getElement | ( | ) | const [inline] |
Gets the chart shape element.
Definition at line 78 of file vtkQtChartShapeLocator.h.
void vtkQtChartShapeLocatorNode::setElement | ( | vtkQtChartShape * | element | ) |
Sets the chart shape element.
element | The new chart shape element. |
vtkQtChartShapeLocatorNode* vtkQtChartShapeLocatorNode::getParent | ( | ) | const [inline] |
Gets the parent node.
Definition at line 89 of file vtkQtChartShapeLocator.h.
void vtkQtChartShapeLocatorNode::setParent | ( | vtkQtChartShapeLocatorNode * | parent | ) | [inline] |
Sets the parent node.
parent | The new parent node. |
Definition at line 94 of file vtkQtChartShapeLocator.h.
bool vtkQtChartShapeLocatorNode::hasChildren | ( | ) | const [inline] |
Gets whether or not the node has children.
Definition at line 100 of file vtkQtChartShapeLocator.h.
const QList<vtkQtChartShapeLocatorNode *>& vtkQtChartShapeLocatorNode::getNodes | ( | ) | const [inline] |
Gets the list of child nodes.
Definition at line 106 of file vtkQtChartShapeLocator.h.
QList<vtkQtChartShapeLocatorNode *>& vtkQtChartShapeLocatorNode::getNodes | ( | ) | [inline] |
Gets the list of child nodes.
Definition at line 112 of file vtkQtChartShapeLocator.h.
Updates the bounding rectangle.
The bounding rectangle is the bounds of the element or the bounds of the child nodes.