cisst-saw
Loading...
Searching...
No Matches
msh2DirPDTreeNode Class Reference

#include <msh2DirPDTreeNode.h>

Public Member Functions

 msh2DirPDTreeNode (int *pDataIndexArray, size_t numIndexes, msh2DirPDTreeBase *pTree, msh2DirPDTreeNode *pParent, bool bComputeOBB=true, unsigned int splitDimension=0)
 msh2DirPDTreeNode (double)
 ~msh2DirPDTreeNode ()
int FindClosestDatum (const vct2 &v, const vct2 &n, vct2 &closestPoint, vct2 &closestPointNorm, double &ErrorBound, unsigned int &numNodesVisited, unsigned int &numNodesSearched)
size_t NumData () const
int IsTerminalNode () const
int ConstructTree (const size_t CountThresh, double DiagThresh)
msh2DirPDTreeNodeGetChildSplitNode (const vct2 &datumPos)
int Datum (int i) const
int & Datum (int i)
int FindTerminalNode (int datum, msh2DirPDTreeNode **termNode)
void PrintTerminalNodes (std::ofstream &fs)
bool NodeContainsDatum (int datum)

Public Attributes

msh2DirPDTreeBaseMyTree
msh2DirPDTreeNodeParent
int * DataIndices
size_t NData
size_t myDepth
msh2DirPDTreeNodeLEq
msh2DirPDTreeNodeMore
vctFrm2 F
msh2BoundingBox Bounds
bool bUsingOBB
unsigned int splitDim
vct2 posAvg
vct2x2 posCov
vct2 Navg
double dThetaMax
vct2 posSum
vct2x2 covSum
vct2 Nsum

Protected Member Functions

int SortNodeForSplit ()
void ConstructLeaf ()
vct2 ComputeOrientationSum ()
vct2 ComputeOrientationAverage (vct2 &Nsum)
double ComputeOrientationThetaMax (vct2 Navg)
vctFrm2 ComputeCovFrame (vct2x2 posCov, vct2 posMean)

Constructor & Destructor Documentation

◆ msh2DirPDTreeNode() [1/2]

msh2DirPDTreeNode::msh2DirPDTreeNode ( int * pDataIndexArray,
size_t numIndexes,
msh2DirPDTreeBase * pTree,
msh2DirPDTreeNode * pParent,
bool bComputeOBB = true,
unsigned int splitDimension = 0 )

◆ msh2DirPDTreeNode() [2/2]

msh2DirPDTreeNode::msh2DirPDTreeNode ( double )
inline

◆ ~msh2DirPDTreeNode()

msh2DirPDTreeNode::~msh2DirPDTreeNode ( )

Member Function Documentation

◆ ComputeCovFrame()

vctFrm2 msh2DirPDTreeNode::ComputeCovFrame ( vct2x2 posCov,
vct2 posMean )
protected

◆ ComputeOrientationAverage()

vct2 msh2DirPDTreeNode::ComputeOrientationAverage ( vct2 & Nsum)
protected

◆ ComputeOrientationSum()

vct2 msh2DirPDTreeNode::ComputeOrientationSum ( )
protected

◆ ComputeOrientationThetaMax()

double msh2DirPDTreeNode::ComputeOrientationThetaMax ( vct2 Navg)
protected

◆ ConstructLeaf()

void msh2DirPDTreeNode::ConstructLeaf ( )
protected

◆ ConstructTree()

int msh2DirPDTreeNode::ConstructTree ( const size_t CountThresh,
double DiagThresh )

◆ Datum() [1/2]

int & msh2DirPDTreeNode::Datum ( int i)
inline

◆ Datum() [2/2]

int msh2DirPDTreeNode::Datum ( int i) const
inline

◆ FindClosestDatum()

int msh2DirPDTreeNode::FindClosestDatum ( const vct2 & v,
const vct2 & n,
vct2 & closestPoint,
vct2 & closestPointNorm,
double & ErrorBound,
unsigned int & numNodesVisited,
unsigned int & numNodesSearched )

◆ FindTerminalNode()

int msh2DirPDTreeNode::FindTerminalNode ( int datum,
msh2DirPDTreeNode ** termNode )

◆ GetChildSplitNode()

msh2DirPDTreeNode * msh2DirPDTreeNode::GetChildSplitNode ( const vct2 & datumPos)

◆ IsTerminalNode()

int msh2DirPDTreeNode::IsTerminalNode ( ) const
inline

◆ NodeContainsDatum()

bool msh2DirPDTreeNode::NodeContainsDatum ( int datum)
inline

◆ NumData()

size_t msh2DirPDTreeNode::NumData ( ) const
inline

◆ PrintTerminalNodes()

void msh2DirPDTreeNode::PrintTerminalNodes ( std::ofstream & fs)

◆ SortNodeForSplit()

int msh2DirPDTreeNode::SortNodeForSplit ( )
protected

Member Data Documentation

◆ Bounds

msh2BoundingBox msh2DirPDTreeNode::Bounds

◆ bUsingOBB

bool msh2DirPDTreeNode::bUsingOBB

◆ covSum

vct2x2 msh2DirPDTreeNode::covSum

◆ DataIndices

int* msh2DirPDTreeNode::DataIndices

◆ dThetaMax

double msh2DirPDTreeNode::dThetaMax

◆ F

vctFrm2 msh2DirPDTreeNode::F

◆ LEq

msh2DirPDTreeNode* msh2DirPDTreeNode::LEq

◆ More

msh2DirPDTreeNode * msh2DirPDTreeNode::More

◆ myDepth

size_t msh2DirPDTreeNode::myDepth

◆ MyTree

msh2DirPDTreeBase* msh2DirPDTreeNode::MyTree

◆ Navg

vct2 msh2DirPDTreeNode::Navg

◆ NData

size_t msh2DirPDTreeNode::NData

◆ Nsum

vct2 msh2DirPDTreeNode::Nsum

◆ Parent

msh2DirPDTreeNode* msh2DirPDTreeNode::Parent

◆ posAvg

vct2 msh2DirPDTreeNode::posAvg

◆ posCov

vct2x2 msh2DirPDTreeNode::posCov

◆ posSum

vct2 msh2DirPDTreeNode::posSum

◆ splitDim

unsigned int msh2DirPDTreeNode::splitDim

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