3Depict
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
K3DNode Class Reference

Node Class for storing point. More...

#include <K3DTree.h>

Public Member Functions

Point3D getLoc () const
 Return the point data from the ndoe. More...
 
const Point3DgetLocRef () 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
 
K3DNodeleft () const
 
K3DNoderight () 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...
 

Detailed Description

Node Class for storing point.

Member Function Documentation

◆ deleteChildren()

void K3DNode::deleteChildren ( )

Recursively delete this node and all children.

Referenced by K3DTree::kill().

Here is the caller graph for this function:

◆ dump()

void K3DNode::dump ( std::ostream &  strm,
unsigned int  depth 
) const

print the node data out to a given stream

Referenced by K3DTree::dump().

Here is the caller graph for this function:

◆ getAxis()

unsigned int K3DNode::getAxis ( ) const
inline

Retrieve the axis that this node operates on.

◆ getAxisVal()

float K3DNode::getAxisVal ( ) const
inline

retrieve the value associated with this axis

References Point3D::getValue().

◆ getLoc()

Point3D K3DNode::getLoc ( ) const

Return the point data from the ndoe.

◆ getLocRef()

const Point3D* K3DNode::getLocRef ( ) const
inline

Return a pointer to the point from the node.

Referenced by K3DTree::findNearest().

Here is the caller graph for this function:

◆ getLocVal()

float K3DNode::getLocVal ( unsigned int  pos) const
inline

References Point3D::getValue().

Referenced by K3DTree::findNearest().

Here is the caller graph for this function:

◆ left()

K3DNode* K3DNode::left ( ) const
inline

Referenced by K3DTree::findNearest().

Here is the caller graph for this function:

◆ right()

K3DNode* K3DNode::right ( ) const
inline

Referenced by K3DTree::findNearest().

Here is the caller graph for this function:

◆ setAxis()

void K3DNode::setAxis ( unsigned int  newAxis)
inline

Set the axis that this node operates on.

Referenced by K3DTree::buildByRef().

Here is the caller graph for this function:

◆ setLeft()

void K3DNode::setLeft ( K3DNode node)
inline

Set the left child node.

Referenced by K3DTree::buildByRef().

Here is the caller graph for this function:

◆ setLoc()

void K3DNode::setLoc ( const Point3D locNew)

Set the point data associated with this node.

Referenced by K3DTree::buildByRef().

Here is the caller graph for this function:

◆ setRight()

void K3DNode::setRight ( K3DNode node)
inline

Set the right child node.

Referenced by K3DTree::buildByRef().

Here is the caller graph for this function:

◆ sqrDist()

float K3DNode::sqrDist ( const Point3D pt) const
inline

References Point3D::sqrDist().

Referenced by K3DTree::findNearest().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: