Point Cloud Library (PCL)
1.10.0
|
49 #include "octree_container.h"
81 getNodeType ()
const = 0;
85 deepCopy ()
const = 0;
95 template<
typename ContainerT>
202 template<
typename ContainerT>
221 for (
unsigned char i = 0; i < 8; ++i)
232 for (
unsigned char i = 0; i < 8; ++i)
258 assert(child_idx_arg < 8);
269 assert(child_idx_arg < 8);
287 inline bool hasChild (
unsigned char child_idx_arg)
const
Defines all the PCL and non-PCL macros used.
~OctreeLeafNode()
Empty deconstructor.
This file defines compatibility wrappers for low level I/O functions.
const ContainerT * getContainerPtr() const
Get const pointer to container.
OctreeBranchNode(const OctreeBranchNode &source)
Empty constructor.
const ContainerT & getContainer() const
Get const reference to container.
const ContainerT * operator->() const
Get const pointer to container.
OctreeNode * child_node_array_[8]
void setChildPtr(OctreeNode *child, unsigned char index)
Get pointer to child.
Abstract octree node class
const ContainerT * operator->() const
Get const pointer to container.
Abstract octree leaf class
node_type_t getNodeType() const override
Get the type of octree node.
OctreeBranchNode * deepCopy() const override
Octree deep copy method.
const ContainerT & getContainer() const
Get const reference to container.
ContainerT * getContainerPtr()
Get pointer to container.
Abstract octree branch class
const ContainerT & operator*() const
Get const reference to container.
OctreeBranchNode()
Empty constructor.
ContainerT & getContainer()
Get reference to container.
#define PCL_MAKE_ALIGNED_OPERATOR_NEW
Macro to signal a class requires a custom allocator.
OctreeLeafNode< ContainerT > * deepCopy() const override
Method to perform a deep copy of the octree.
virtual OctreeNode * deepCopy() const =0
Pure virtual method to perform a deep copy of the octree.
node_type_t getNodeType() const override
Check if branch can be pruned.
ContainerT * getContainerPtr()
Get pointer to container.
OctreeLeafNode()
Empty constructor.
OctreeNode * getChildPtr(unsigned char child_idx_arg) const
Get pointer to child.
OctreeNode *& operator[](unsigned char child_idx_arg)
Access operator.
bool hasChild(unsigned char child_idx_arg) const
Check if branch is pointing to a particular child node.
ContainerT & getContainer()
Get reference to container.
OctreeLeafNode(const OctreeLeafNode &source)
Copy constructor.
~OctreeBranchNode()
Empty deconstructor.
const ContainerT & operator*() const
Get const reference to container.
const ContainerT * getContainerPtr() const
Get const pointer to container.
OctreeBranchNode & operator=(const OctreeBranchNode &source)
Copy operator.