Shapeworks Studio
2.1
Shape analysis software suite
|
#include <itkPSMPointTree.h>
Public Types | |
typedef PSMPointTreeNode | Self |
typedef SmartPointer< Self > | Pointer |
typedef SmartPointer< const Self > | ConstPointer |
typedef LightObject | Superclass |
typedef Point< double, VDimension > | PointType |
typedef std::list< PSMPointIndexPair< VDimension > > | PointListType |
Public Member Functions | |
itkTypeMacro (PSMPointTreeNode, LightObject) | |
itkNewMacro (Self) | |
itkStaticConstMacro (BranchesPerNode, int,(powstruct< 2, VDimension >::c)) | |
bool | operator== (const PSMPointTreeNode &o) const |
bool | IsLeaf () const |
PointListType::iterator | InsertElement (const PSMPointIndexPair< VDimension > &elem) |
bool | Contains (const PointType &p) const |
void | SetLowerBound (const PointType &p) |
const PointType & | GetLowerBound () const |
void | SetUpperBound (const PointType &p) |
const PointType & | GetUpperBound () const |
Self::Pointer * | GetBranches () |
const Self::Pointer * | GetBranches () const |
Self::Pointer & | GetBranch (unsigned int i) |
const Self::Pointer & | GetBranch (unsigned int i) const |
void | SetBranch (unsigned int b, typename Self::Pointer n) |
void | PrintSelf (std::ostream &os, Indent indent) const |
const PointListType & | GetList () const |
PointListType & | GetList () |
Protected Member Functions | |
PSMPointTreeNode (const PSMPointTreeNode &o) | |
const PSMPointTreeNode & | operator= (const PSMPointTreeNode &o) |
A node object for use in the PSMPointTree. This class contains a bounding box, a set of child (branch) node pointers, and a linked list that may be filled with Points and Indices (unsigned ints). The single template parameter is the dimensionality of the Points. This class was designed for use as a binning structure for itkPSMNeighborhood classes.
Definition at line 55 of file itkPSMPointTree.h.
typedef std::list<PSMPointIndexPair<VDimension> > itk::PSMPointTreeNode< VDimension >::PointListType |
List type for storing lists of points+indices.
Definition at line 76 of file itkPSMPointTree.h.
typedef Point<double, VDimension> itk::PSMPointTreeNode< VDimension >::PointType |
Point type stored in the leaf nodes.
Definition at line 73 of file itkPSMPointTree.h.
typedef PSMPointTreeNode itk::PSMPointTreeNode< VDimension >::Self |
Standard class typedefs.
Definition at line 59 of file itkPSMPointTree.h.
|
inline |
Returns true if the bounding box in this node contains the given point and false otherwise.
Definition at line 103 of file itkPSMPointTree.h.
|
inline |
Return a specific branch
Definition at line 129 of file itkPSMPointTree.h.
|
inline |
Return the data structure holding branch (child) nodes.
Definition at line 123 of file itkPSMPointTree.h.
|
inline |
Get the list of elements which contain points and associated indices.
Definition at line 142 of file itkPSMPointTree.h.
|
inline |
Insert a PointIndexPair into the list associated with this node.
Definition at line 96 of file itkPSMPointTree.h.
|
inline |
Returns true if this is a leaf node (has no branches) and false otherwise. The assumption is that a non-leaf node cannot have any empty branches. Each level of the tree must contain BranchesPerNode divisions. This assumption speeds up certain types of processing.
Definition at line 89 of file itkPSMPointTree.h.
itk::PSMPointTreeNode< VDimension >::itkNewMacro | ( | Self | ) |
Method for creation through the object factory.
itk::PSMPointTreeNode< VDimension >::itkStaticConstMacro | ( | BranchesPerNode | , |
int | , | ||
(powstruct< 2, VDimension >::c) | |||
) |
The number of branches at each node of the tree, which is 2^VDimension, e.g. 4 in 2D, 8 in 3D, etc.
|
inline |
Equivalence operator, ignores value type.
Definition at line 79 of file itkPSMPointTree.h.
void itk::PSMPointTreeNode< VDimension >::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const |
Standard ITK PrintSelf method.
Definition at line 29 of file itkPSMPointTree.hxx.
|
inline |
Set the node for a specific branch of this node.
Definition at line 135 of file itkPSMPointTree.h.
|
inline |
Set/Get the lower and upper bounds of the region described by this node.
Definition at line 113 of file itkPSMPointTree.h.