3Depict
|
Node Class for storing point. More...
#include <K3DTree.h>
Public Member Functions | |
Point3D | getLoc () const |
Return the point data from the ndoe. More... | |
const Point3D * | getLocRef () const |
Return a pointer to the point from the node. More... | |
void | setLeft (K3DNode *node) |
Set the left child node. More... | |
void | setRight (K3DNode *node) |
Set the right child node. More... | |
void | setLoc (const Point3D &) |
Set the point data associated with this node. More... | |
void | setAxis (unsigned int newAxis) |
Set the axis that this node operates on. More... | |
unsigned int | getAxis () const |
Retrieve the axis that this node operates on. More... | |
float | getAxisVal () const |
retrieve the value associated with this axis More... | |
float | getLocVal (unsigned int pos) const |
float | sqrDist (const Point3D &pt) const |
K3DNode * | left () const |
K3DNode * | right () const |
void | deleteChildren () |
Recursively delete this node and all children. More... | |
void | dump (std::ostream &, unsigned int) const |
print the node data out to a given stream More... | |
Node Class for storing point.
void K3DNode::deleteChildren | ( | ) |
Recursively delete this node and all children.
Referenced by K3DTree::kill().
void K3DNode::dump | ( | std::ostream & | strm, |
unsigned int | depth | ||
) | const |
print the node data out to a given stream
Referenced by K3DTree::dump().
|
inline |
Retrieve the axis that this node operates on.
|
inline |
retrieve the value associated with this axis
References Point3D::getValue().
Point3D K3DNode::getLoc | ( | ) | const |
Return the point data from the ndoe.
|
inline |
Return a pointer to the point from the node.
Referenced by K3DTree::findNearest().
|
inline |
References Point3D::getValue().
Referenced by K3DTree::findNearest().
|
inline |
|
inline |
|
inline |
Set the axis that this node operates on.
Referenced by K3DTree::buildByRef().
|
inline |
Set the left child node.
Referenced by K3DTree::buildByRef().
void K3DNode::setLoc | ( | const Point3D & | locNew | ) |
Set the point data associated with this node.
Referenced by K3DTree::buildByRef().
|
inline |
Set the right child node.
Referenced by K3DTree::buildByRef().
|
inline |
References Point3D::sqrDist().
Referenced by K3DTree::findNearest().