Point Cloud Library (PCL)
1.11.1
|
42 #include <pcl/octree/octree_key.h>
43 #include <pcl/octree/octree_nodes.h>
52 #pragma GCC system_header
70 template <
typename OctreeT>
111 unsigned int max_depth_arg,
250 ret =
octree_->getBranchBitPattern(*current_branch);
268 return leaf_node->getContainer();
283 return leaf_node->getContainer();
298 return branch_node->getContainer();
313 return branch_node->getContainer();
319 virtual unsigned long
322 unsigned long id = 0;
330 unsigned int depth =
octree_->getTreeDepth();
331 id =
static_cast<unsigned long>(key.
x) << (depth * 2) |
332 static_cast<unsigned long>(key.
y) << (depth * 1) |
333 static_cast<unsigned long>(key.
z) << (depth * 0);
357 template <
typename OctreeT>
375 unsigned int max_depth_arg = 0);
387 unsigned int max_depth_arg,
389 const std::vector<IteratorState>& stack = std::vector<IteratorState>())
462 template <
typename OctreeT>
480 unsigned int max_depth_arg = 0);
492 unsigned int max_depth_arg,
494 const std::deque<IteratorState>& fifo = std::deque<IteratorState>())
562 template <
typename OctreeT>
579 unsigned int fixed_depth_arg = 0);
592 unsigned int fixed_depth_arg,
594 const std::deque<IteratorState>& fifo = std::deque<IteratorState>())
596 octree_arg, fixed_depth_arg, current_state, fifo)
626 reset(
unsigned int fixed_depth_arg);
651 template <
typename OctreeT>
672 unsigned int max_depth_arg = 0)
688 unsigned int max_depth_arg,
690 const std::vector<IteratorState>& stack = std::vector<IteratorState>())
753 template <
typename OctreeT>
770 unsigned int max_depth_arg = 0);
783 unsigned int max_depth_arg,
785 const std::deque<IteratorState>& fifo = std::deque<IteratorState>());
811 #include <pcl/octree/impl/octree_iterator.hpp>
OctreeT * octree_
Reference to octree class.
OctreeIteratorBase(OctreeT *octree_arg, unsigned int max_depth_arg=0)
Constructor.
OctreeFixedDepthIterator(OctreeT *octree_arg, unsigned int fixed_depth_arg, IteratorState *current_state, const std::deque< IteratorState > &fifo=std::deque< IteratorState >())
Constructor.
unsigned int max_octree_depth_
Maximum octree depth.
OctreeBreadthFirstIterator(unsigned int max_depth_arg=0)
Empty constructor.
typename OctreeIteratorBase< OctreeT >::BranchNode BranchNode
void reset()
Reset the iterator to the first leaf in the breadth first way.
typename OctreeT::LeafContainer LeafContainer
typename OctreeIteratorBase< OctreeT >::BranchNode BranchNode
OctreeNode * operator*() const
*operator.
virtual node_type_t getNodeType() const =0
Pure virtual method for receiving the type of octree node (branch or leaf)
typename OctreeIteratorBase< OctreeT >::LeafNode LeafNode
char getNodeConfiguration() const
Get bit pattern of children configuration of current node.
LeafContainer & getLeafContainer()
Method for retrieving a single leaf container from the octree leaf node.
OctreeLeafNodeDepthFirstIterator(unsigned int max_depth_arg=0)
Empty constructor.
OctreeLeafNodeDepthFirstIterator & operator++()
Preincrement operator.
OctreeNode * getCurrentOctreeNode() const
Get the current octree node.
OctreeIteratorBase(OctreeT *octree_arg, unsigned int max_depth_arg, IteratorState *current_state)
Constructor.
OctreeDepthFirstIterator & operator=(const OctreeDepthFirstIterator &src)
Copy assignment.
std::deque< IteratorState > FIFO_
FIFO list.
OctreeFixedDepthIterator(const OctreeFixedDepthIterator &other)
Copy Constructor.
bool isLeafNode() const
check if current node is a branch node
OctreeDepthFirstIterator(OctreeT *octree_arg, unsigned int max_depth_arg, IteratorState *current_state, const std::vector< IteratorState > &stack=std::vector< IteratorState >())
Constructor.
Abstract octree node class
OctreeLeafNodeBreadthFirstIterator & operator++()
Preincrement operator.
OctreeLeafNodeBreadthFirstIterator(unsigned int max_depth_arg=0)
Empty constructor.
void reset()
Reset the iterator to the root node of the octree.
IteratorState * current_state_
Pointer to current iterator state.
bool operator!=(const OctreeIteratorBase &other) const
Inequal comparison operator.
OctreeBreadthFirstIterator operator++(int)
postincrement operator.
OctreeFixedDepthIterator & operator=(const OctreeFixedDepthIterator &src)
Copy assignment.
typename OctreeT::BranchContainer BranchContainer
const LeafContainer & getLeafContainer() const
Method for retrieving a single leaf container from the octree leaf node.
void skipChildVoxels()
Skip all child voxels of current node and return to parent node.
bool isBranchNode() const
check if current node is a branch node
virtual ~OctreeIteratorBase()
Empty deconstructor.
Abstract octree iterator class
OctreeLeafNodeDepthFirstIterator(OctreeT *octree_arg, unsigned int max_depth_arg, IteratorState *current_state, const std::vector< IteratorState > &stack=std::vector< IteratorState >())
Constructor.
virtual void reset()
Reset the iterator to the root node of the octree.
typename OctreeIteratorBase< OctreeT >::LeafNode LeafNode
OctreeDepthFirstIterator & operator++()
Preincrement operator.
void reset()
Reset the iterator to the root node of the octree.
virtual unsigned long getNodeID() const
get a integer identifier for current node (note: identifier depends on tree depth).
OctreeBreadthFirstIterator(const OctreeBreadthFirstIterator &other)
Copy Constructor.
Octree leaf node iterator class.
std::vector< IteratorState > stack_
Stack structure.
OctreeDepthFirstIterator(const OctreeDepthFirstIterator &other)
Copy Constructor.
OctreeDepthFirstIterator operator++(int)
postincrement operator.
const BranchContainer & getBranchContainer() const
Method for retrieving the container from an octree branch node.
OctreeFixedDepthIterator()
Empty constructor.
bool operator==(const OctreeIteratorBase &other) const
Equal comparison operator.
Octree leaf node iterator class.
OctreeBreadthFirstIterator & operator++()
Preincrement operator.
BranchContainer & getBranchContainer()
Method for retrieving the container from an octree branch node.
OctreeLeafNodeDepthFirstIterator operator++(int)
postincrement operator.
typename OctreeT::LeafNode LeafNode
unsigned int getCurrentOctreeDepth() const
Get the current depth level of octree.
OctreeNode * operator*() const
*operator.
OctreeIteratorBase(unsigned int max_depth_arg=0)
Empty constructor.
typename OctreeT::BranchNode BranchNode
void reset()
Reset the iterator to the first node at the current depth.
OctreeLeafNodeDepthFirstIterator(OctreeT *octree_arg, unsigned int max_depth_arg=0)
Constructor.
OctreeDepthFirstIterator(unsigned int max_depth_arg=0)
Empty constructor.
unsigned int fixed_depth_
Given level of the node to be iterated.
OctreeBreadthFirstIterator & operator=(const OctreeBreadthFirstIterator &src)
Copy operator.
OctreeBreadthFirstIterator(OctreeT *octree_arg, unsigned int max_depth_arg, IteratorState *current_state, const std::deque< IteratorState > &fifo=std::deque< IteratorState >())
Constructor.
const OctreeKey & getCurrentOctreeKey() const
Get octree key for the current iterator octree node.
void reset()
Reset iterator.