Inviwo  0.9.10.1
Inviwo documentation
inviwo::KDNode< N, T, P > Class Template Reference

Public Member Functions

 KDNode (const P pos[N], const T &data, KDNode *parent=0)
 
KDNodeclone ()
 
bool isLeaf () const
 
bool isRightLeaf () const
 
bool isLeftLeaf () const
 
unsigned long depth () const
 
unsigned long size () const
 
T & get ()
 
const T & get () const
 
T * getDataAsPointer ()
 
P * getPosition ()
 
bool isOk () const
 
KDNodefindMin (unsigned int dim)
 
KDNodefindMax (unsigned int dim)
 
KDNodeinsert (const P pos[N], const T &data)
 
KDNodefind (const P pos[N])
 
KDNodefindParent (const KDNode *n)
 
KDNodegetRightChild ()
 
KDNodegetLeftChild ()
 
std::pair< KDNode *, KDNode * > getChilds ()
 
KDNode< N, T, P > * findNearest (const P pos[N], KDNode *nearest)
 
void findNNearest (const P pos[N], size_t amount, std::vector< KDNodeDistWrapper< N, T, P >> &current)
 
void findCloseTo (const P pos[N], const P squaredDistance, std::vector< KDNode * > &nodes)
 
void getAsVector (std::vector< KDNode * > &nodes)
 

Static Public Member Functions

static void swap (KDNode< N, T, P > *n0, KDNode< N, T, P > *n1, KDNode< N, T, P > *p0, KDNode< N, T, P > *p1)
 

Friends

class KDTree< N, T, P >
 

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