Point Cloud Library (PCL)
1.12.1-dev
|
41 #include <pcl/octree/octree_container.h>
66 getNodeType()
const = 0;
79 template <
typename ContainerT>
178 template <
typename ContainerT>
193 for (
unsigned char i = 0; i < 8; ++i)
204 for (
unsigned char i = 0; i < 8; ++i)
228 assert(child_idx_arg < 8);
239 assert(child_idx_arg < 8);
Defines all the PCL and non-PCL macros used.
~OctreeLeafNode()
Empty deconstructor.
ContainerT * operator->()
Get pointer to container.
const ContainerT * getContainerPtr() const
Get const pointer to container.
OctreeBranchNode(const OctreeBranchNode &source)
Empty constructor.
const ContainerT & getContainer() const
Get const reference to container.
ContainerT & operator*()
Get 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 * operator->()
Get pointer to container.
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.
ContainerT & operator*()
Get reference to container.
const ContainerT * getContainerPtr() const
Get const pointer to container.
Defines functions, macros and traits for allocating and using memory.
OctreeBranchNode & operator=(const OctreeBranchNode &source)
Copy operator.