Point Cloud Library (PCL)  1.9.1-dev
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node Class Reference

#include <pcl/recognition/ransac_based/simple_octree.h>

Public Member Functions

 Node ()
 
virtual ~Node ()
 
void setCenter (const Scalar *c)
 
void setBounds (const Scalar *b)
 
const Scalar * getCenter () const
 
const Scalar * getBounds () const
 
void getBounds (Scalar b[6]) const
 
NodegetChild (int id)
 
NodegetChildren ()
 
void setData (const NodeData &src)
 
NodeData & getData ()
 
const NodeData & getData () const
 
NodegetParent ()
 
float getRadius () const
 
bool hasData ()
 
bool hasChildren ()
 
const std::set< Node * > & getNeighbors () const
 
void deleteChildren ()
 
void deleteData ()
 

Protected Member Functions

void setData (NodeData *data)
 
bool createChildren ()
 
void makeNeighbors (Node *node)
 Make this and 'node' neighbors by inserting each node in the others node neighbor set. More...
 
void setParent (Node *parent)
 
void computeRadius ()
 Computes the "radius" of the node which is half the diagonal length. More...
 

Protected Attributes

NodeData * data_
 
Scalar center_ [3]
 
Scalar bounds_ [6]
 
Nodeparent_
 
Nodechildren_
 
Scalar radius_
 
std::set< Node * > full_leaf_neighbors_
 

Friends

class SimpleOctree
 

Detailed Description

template<typename NodeData, typename NodeDataCreator, typename Scalar = float>
class pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node

Definition at line 59 of file simple_octree.h.

Constructor & Destructor Documentation

template<typename NodeData , typename NodeDataCreator , typename Scalar >
pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::Node ( )
inline

Definition at line 14 of file simple_octree.hpp.

template<typename NodeData , typename NodeDataCreator , typename Scalar >
pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::~Node ( )
inline

Member Function Documentation

template<typename NodeData , typename NodeDataCreator , typename Scalar >
void pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::computeRadius ( )
inlineprotected
template<typename NodeData , typename NodeDataCreator , typename Scalar >
bool pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::createChildren ( )
inlineprotected
template<typename NodeData , typename NodeDataCreator , typename Scalar >
void pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::deleteChildren ( )
inline
template<typename NodeData , typename NodeDataCreator , typename Scalar >
void pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::deleteData ( )
inline
template<typename NodeData, typename NodeDataCreator, typename Scalar = float>
const Scalar* pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::getBounds ( ) const
inline

Definition at line 76 of file simple_octree.h.

template<typename NodeData, typename NodeDataCreator, typename Scalar = float>
void pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::getBounds ( Scalar  b[6]) const
inline

Definition at line 79 of file simple_octree.h.

template<typename NodeData, typename NodeDataCreator, typename Scalar = float>
const Scalar* pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::getCenter ( ) const
inline
template<typename NodeData, typename NodeDataCreator, typename Scalar = float>
Node* pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::getChild ( int  id)
inline
template<typename NodeData, typename NodeDataCreator, typename Scalar = float>
Node* pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::getChildren ( )
inline

Definition at line 85 of file simple_octree.h.

template<typename NodeData, typename NodeDataCreator, typename Scalar = float>
NodeData& pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::getData ( )
inline

Definition at line 91 of file simple_octree.h.

template<typename NodeData, typename NodeDataCreator, typename Scalar = float>
const NodeData& pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::getData ( ) const
inline

Definition at line 94 of file simple_octree.h.

template<typename NodeData, typename NodeDataCreator, typename Scalar = float>
const std::set<Node*>& pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::getNeighbors ( ) const
inline

Definition at line 109 of file simple_octree.h.

template<typename NodeData, typename NodeDataCreator, typename Scalar = float>
Node* pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::getParent ( )
inline

Definition at line 97 of file simple_octree.h.

template<typename NodeData, typename NodeDataCreator, typename Scalar = float>
float pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::getRadius ( ) const
inline

Definition at line 100 of file simple_octree.h.

template<typename NodeData, typename NodeDataCreator, typename Scalar = float>
bool pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::hasChildren ( )
inline
template<typename NodeData, typename NodeDataCreator, typename Scalar = float>
bool pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::hasData ( )
inline
template<typename NodeData , typename NodeDataCreator , typename Scalar >
void pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::makeNeighbors ( Node node)
inlineprotected

Make this and 'node' neighbors by inserting each node in the others node neighbor set.

Nothing happens of either of the nodes has no data.

Definition at line 179 of file simple_octree.hpp.

References pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::full_leaf_neighbors_, and pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::hasData().

Referenced by pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::insertNeighbors().

template<typename NodeData , typename NodeDataCreator , typename Scalar>
void pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::setBounds ( const Scalar *  b)
inline
template<typename NodeData , typename NodeDataCreator , typename Scalar>
void pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::setCenter ( const Scalar *  c)
inline
template<typename NodeData, typename NodeDataCreator, typename Scalar = float>
void pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::setData ( const NodeData &  src)
inline
template<typename NodeData, typename NodeDataCreator, typename Scalar = float>
void pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::setData ( NodeData *  data)
inlineprotected

Definition at line 121 of file simple_octree.h.

template<typename NodeData, typename NodeDataCreator, typename Scalar = float>
void pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::setParent ( Node parent)
inlineprotected

Friends And Related Function Documentation

template<typename NodeData, typename NodeDataCreator, typename Scalar = float>
friend class SimpleOctree
friend

Definition at line 117 of file simple_octree.h.

Member Data Documentation

template<typename NodeData, typename NodeDataCreator, typename Scalar = float>
Scalar pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::bounds_[6]
protected
template<typename NodeData, typename NodeDataCreator, typename Scalar = float>
Scalar pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::center_[3]
protected
template<typename NodeData, typename NodeDataCreator, typename Scalar = float>
Node * pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::children_
protected
template<typename NodeData, typename NodeDataCreator, typename Scalar = float>
NodeData* pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::data_
protected
template<typename NodeData, typename NodeDataCreator, typename Scalar = float>
std::set<Node*> pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::full_leaf_neighbors_
protected
template<typename NodeData, typename NodeDataCreator, typename Scalar = float>
Node* pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::parent_
protected

Definition at line 141 of file simple_octree.h.

template<typename NodeData, typename NodeDataCreator, typename Scalar = float>
Scalar pcl::recognition::SimpleOctree< NodeData, NodeDataCreator, Scalar >::Node::radius_
protected

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