39 #ifndef PCL_OCTREE_ITERATOR_H
40 #define PCL_OCTREE_ITERATOR_H
46 #include "octree_nodes.h"
47 #include "octree_key.h"
49 #include <pcl/point_cloud.h>
50 #include <pcl/point_types.h>
56 #pragma GCC system_header
77 template<
typename OctreeT>
78 class OctreeIteratorBase :
public std::iterator<std::forward_iterator_tag, const OctreeNode, void,
79 const OctreeNode*, const OctreeNode&>
261 ret =
octree_->getBranchBitPattern (*current_branch);
280 return leaf_node->getContainer();
295 return leaf_node->getContainer();
310 return branch_node->getContainer();
325 return branch_node->getContainer();
331 virtual unsigned long
334 unsigned long id = 0;
343 unsigned int depth =
octree_->getTreeDepth ();
344 id = key.
x << (depth * 2) | key.
y << (depth * 1) | key.
z << (depth * 0);
367 template<
typename OctreeT>
453 template<
typename OctreeT>
535 template<
typename OctreeT>