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&>
260 ret =
octree_->getBranchBitPattern (*current_branch);
279 return leaf_node->getContainer();
294 return leaf_node->getContainer();
309 return branch_node->getContainer();
324 return branch_node->getContainer();
330 virtual unsigned long
333 unsigned long id = 0;
342 unsigned int depth =
octree_->getTreeDepth ();
343 id = key.
x << (depth * 2) | key.
y << (depth * 1) | key.
z << (depth * 0);
366 template<
typename OctreeT>
452 template<
typename OctreeT>
534 template<
typename OctreeT>