W3cubDocs

/PointCloudLibrary

Abstract octree branch class More...

#include <pcl/octree/octree_nodes.h>

Public Member Functions

OctreeBranchNode ()
Empty constructor. More...
OctreeBranchNode (const OctreeBranchNode &source)
Empty constructor. More...
OctreeBranchNode & operator= (const OctreeBranchNode &source)
Copy operator. More...
OctreeBranchNode * deepCopy () const override
Octree deep copy method. More...
~OctreeBranchNode ()
Empty deconstructor. More...
OctreeNode *& operator[] (unsigned char child_idx_arg)
Access operator. More...
OctreeNode * getChildPtr (unsigned char child_idx_arg) const
Get pointer to child. More...
void setChildPtr (OctreeNode *child, unsigned char index)
Get pointer to child. More...
bool hasChild (unsigned char child_idx_arg) const
Check if branch is pointing to a particular child node. More...
node_type_t getNodeType () const override
Check if branch can be pruned. More...
void reset ()
const ContainerT * operator-> () const
Get const pointer to container. More...
ContainerT * operator-> ()
Get pointer to container. More...
const ContainerT & operator* () const
Get const reference to container. More...
ContainerT & operator* ()
Get reference to container. More...
const ContainerT & getContainer () const
Get const reference to container. More...
ContainerT & getContainer ()
Get reference to container. More...
const ContainerT * getContainerPtr () const
Get const pointer to container. More...
ContainerT * getContainerPtr ()
Get pointer to container. More...
- Public Member Functions inherited from pcl::octree::OctreeNode
OctreeNode ()
virtual ~OctreeNode ()

Protected Attributes

OctreeNode * child_node_array_ [8]
ContainerT container_

Detailed Description

template<typename ContainerT>
class pcl::octree::OctreeBranchNode< ContainerT >

Abstract octree branch class

Note
Octree branch classes may collect data of type DataT
Author
Julius Kammerl (juliu.nosp@m.s@ka.nosp@m.mmerl.nosp@m..de)

Definition at line 179 of file octree_nodes.h.

Constructor & Destructor Documentation

OctreeBranchNode() [1/2]

template<typename ContainerT >
pcl::octree::OctreeBranchNode< ContainerT >::OctreeBranchNode ( )
inline

Empty constructor.

Definition at line 182 of file octree_nodes.h.

References pcl::octree::OctreeBranchNode< ContainerT >::child_node_array_.

OctreeBranchNode() [2/2]

template<typename ContainerT >
pcl::octree::OctreeBranchNode< ContainerT >::OctreeBranchNode ( const OctreeBranchNode< ContainerT > & source )
inline

~OctreeBranchNode()

template<typename ContainerT >
pcl::octree::OctreeBranchNode< ContainerT >::~OctreeBranchNode ( )
inline

Empty deconstructor.

Definition at line 219 of file octree_nodes.h.

Member Function Documentation

deepCopy()

template<typename ContainerT >
OctreeBranchNode* pcl::octree::OctreeBranchNode< ContainerT >::deepCopy ( ) const
inlineoverridevirtual

Octree deep copy method.

Implements pcl::octree::OctreeNode.

Definition at line 212 of file octree_nodes.h.

getChildPtr()

getContainer() [1/2]

template<typename ContainerT >
ContainerT& pcl::octree::OctreeBranchNode< ContainerT >::getContainer ( )
inline

Get reference to container.

Definition at line 339 of file octree_nodes.h.

References pcl::octree::OctreeBranchNode< ContainerT >::container_.

getContainer() [2/2]

template<typename ContainerT >
const ContainerT& pcl::octree::OctreeBranchNode< ContainerT >::getContainer ( ) const
inline

Get const reference to container.

Definition at line 332 of file octree_nodes.h.

References pcl::octree::OctreeBranchNode< ContainerT >::container_.

getContainerPtr() [1/2]

template<typename ContainerT >
ContainerT* pcl::octree::OctreeBranchNode< ContainerT >::getContainerPtr ( )
inline

Get pointer to container.

Definition at line 353 of file octree_nodes.h.

References pcl::octree::OctreeBranchNode< ContainerT >::container_.

getContainerPtr() [2/2]

template<typename ContainerT >
const ContainerT* pcl::octree::OctreeBranchNode< ContainerT >::getContainerPtr ( ) const
inline

Get const pointer to container.

Definition at line 346 of file octree_nodes.h.

References pcl::octree::OctreeBranchNode< ContainerT >::container_.

getNodeType()

template<typename ContainerT >
node_type_t pcl::octree::OctreeBranchNode< ContainerT >::getNodeType ( ) const
inlineoverridevirtual

Check if branch can be pruned.

Note
if all children are leaf nodes AND contain identical containers, branch can be pruned
Returns
"true" if branch can be pruned; "false" otherwise

Get the type of octree node. Returns LEAVE_NODE type

Implements pcl::octree::OctreeNode.

Definition at line 289 of file octree_nodes.h.

References pcl::octree::BRANCH_NODE.

hasChild()

template<typename ContainerT >
bool pcl::octree::OctreeBranchNode< ContainerT >::hasChild ( unsigned char child_idx_arg ) const
inline

operator*() [1/2]

template<typename ContainerT >
ContainerT& pcl::octree::OctreeBranchNode< ContainerT >::operator* ( )
inline

Get reference to container.

Definition at line 325 of file octree_nodes.h.

References pcl::octree::OctreeBranchNode< ContainerT >::container_.

operator*() [2/2]

template<typename ContainerT >
const ContainerT& pcl::octree::OctreeBranchNode< ContainerT >::operator* ( ) const
inline

Get const reference to container.

Definition at line 318 of file octree_nodes.h.

References pcl::octree::OctreeBranchNode< ContainerT >::container_.

operator->() [1/2]

template<typename ContainerT >
ContainerT* pcl::octree::OctreeBranchNode< ContainerT >::operator-> ( )
inline

Get pointer to container.

Definition at line 311 of file octree_nodes.h.

References pcl::octree::OctreeBranchNode< ContainerT >::container_.

operator->() [2/2]

template<typename ContainerT >
const ContainerT* pcl::octree::OctreeBranchNode< ContainerT >::operator-> ( ) const
inline

Get const pointer to container.

Definition at line 304 of file octree_nodes.h.

References pcl::octree::OctreeBranchNode< ContainerT >::container_.

operator=()

template<typename ContainerT >
OctreeBranchNode& pcl::octree::OctreeBranchNode< ContainerT >::operator= ( const OctreeBranchNode< ContainerT > & source )
inline

operator[]()

template<typename ContainerT >
OctreeNode*& pcl::octree::OctreeBranchNode< ContainerT >::operator[] ( unsigned char child_idx_arg )
inline

Access operator.

Parameters
child_idx_arg index to child node
Returns
OctreeNode pointer

Definition at line 226 of file octree_nodes.h.

References pcl::octree::OctreeBranchNode< ContainerT >::child_node_array_.

reset()

template<typename ContainerT >
void pcl::octree::OctreeBranchNode< ContainerT >::reset ( )
inline

setChildPtr()

template<typename ContainerT >
void pcl::octree::OctreeBranchNode< ContainerT >::setChildPtr ( OctreeNode * child,
unsigned char index
)
inline

Get pointer to child.

Returns
OctreeNode pointer

Definition at line 247 of file octree_nodes.h.

References pcl::octree::OctreeBranchNode< ContainerT >::child_node_array_.

Member Data Documentation

child_node_array_

container_


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

© 2009–2012, Willow Garage, Inc.
© 2012–, Open Perception, Inc.
Licensed under the BSD License.
https://pointclouds.org/documentation/classpcl_1_1octree_1_1_octree_branch_node.html