Public Member Functions

vtkQtChartShapeLocatorNode Class Reference

The vtkQtChartShapeLocatorNode class is used to build a tree of chart shapes. More...

#include <vtkQtChartShapeLocator.h>

Collaboration diagram for vtkQtChartShapeLocatorNode:
Collaboration graph
[legend]

List of all members.

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.
vtkQtChartShapegetElement () const
 Gets the chart shape element.
void setElement (vtkQtChartShape *element)
 Sets the chart shape element.
vtkQtChartShapeLocatorNodegetParent () 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.

Detailed Description

The vtkQtChartShapeLocatorNode class is used to build a tree of chart shapes.

Definition at line 40 of file vtkQtChartShapeLocator.h.


Constructor & Destructor Documentation

vtkQtChartShapeLocatorNode::vtkQtChartShapeLocatorNode ( vtkQtChartShape element = 0 )

Constructs a chart shape locator node.

Parameters:
elementThe chart shape element to wrap.
vtkQtChartShapeLocatorNode::~vtkQtChartShapeLocatorNode (  )

Member Function Documentation

bool vtkQtChartShapeLocatorNode::contains ( const QPointF &  point ) const

Gets whether or not the bounding area contains the given point.

Parameters:
pointThe position to evaluate.
Returns:
True if the bounding area contains the given point.
const QRectF& vtkQtChartShapeLocatorNode::getBounds (  ) const [inline]

Gets the bounding rectangle.

Returns:
The bounding rectangle.

Definition at line 67 of file vtkQtChartShapeLocator.h.

{return *this->Bounds;}
vtkQtChartShape* vtkQtChartShapeLocatorNode::getElement (  ) const [inline]

Gets the chart shape element.

Returns:
A pointer to the chart shape element.

Definition at line 78 of file vtkQtChartShapeLocator.h.

{return this->Element;}
QList<vtkQtChartShapeLocatorNode *>& vtkQtChartShapeLocatorNode::getNodes (  ) [inline]

Gets the list of child nodes.

Returns:
The list of child nodes.

Definition at line 112 of file vtkQtChartShapeLocator.h.

{return this->Nodes;}
const QList<vtkQtChartShapeLocatorNode *>& vtkQtChartShapeLocatorNode::getNodes (  ) const [inline]

Gets the list of child nodes.

Returns:
The list of child nodes.

Definition at line 106 of file vtkQtChartShapeLocator.h.

{return this->Nodes;}
vtkQtChartShapeLocatorNode* vtkQtChartShapeLocatorNode::getParent (  ) const [inline]

Gets the parent node.

Returns:
A pointer to the parent node.

Definition at line 89 of file vtkQtChartShapeLocator.h.

{return this->Parent;}
bool vtkQtChartShapeLocatorNode::hasChildren (  ) const [inline]

Gets whether or not the node has children.

Returns:
True if the node has children.

Definition at line 100 of file vtkQtChartShapeLocator.h.

{return this->Nodes.size() > 0;}
bool vtkQtChartShapeLocatorNode::intersects ( const QRectF &  area ) const

Gets whether or not the bounding area intersects the given area.

Parameters:
areaThe rectangle to evaluate.
Returns:
True if the bounding area intersects the given area.
void vtkQtChartShapeLocatorNode::setBounds ( const QRectF &  bounds )

Sets the bounding rectangle.

Parameters:
boundsThe new bounding rectangle.
void vtkQtChartShapeLocatorNode::setElement ( vtkQtChartShape element )

Sets the chart shape element.

Parameters:
elementThe new chart shape element.
void vtkQtChartShapeLocatorNode::setParent ( vtkQtChartShapeLocatorNode parent ) [inline]

Sets the parent node.

Parameters:
parentThe new parent node.

Definition at line 94 of file vtkQtChartShapeLocator.h.

{this->Parent = parent;}
void vtkQtChartShapeLocatorNode::updateBounds (  )

Updates the bounding rectangle.

The bounding rectangle is the bounds of the element or the bounds of the child nodes.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines