|
octomap
1.9.7
|
Bounding-box leaf iterator. More...
Inheritance diagram for leaf_bbx_iterator:
Collaboration diagram for leaf_bbx_iterator:Public Member Functions | |
| point3d | getCoordinate () const |
| return the center coordinate of the current node More... | |
| unsigned | getDepth () const |
| return depth of the current node More... | |
| OcTreeKey | getIndexKey () const |
| const OcTreeKey & | getKey () const |
| double | getSize () const |
| double | getX () const |
| double | getY () const |
| double | getZ () const |
| leaf_bbx_iterator () | |
| leaf_bbx_iterator (const leaf_bbx_iterator &other) | |
| leaf_bbx_iterator (OcTreeBaseImpl< NodeType, INTERFACE > const *ptree, const OcTreeKey &min, const OcTreeKey &max, uint8_t depth=0) | |
| Constructor of the iterator. More... | |
| leaf_bbx_iterator (OcTreeBaseImpl< NodeType, INTERFACE > const *ptree, const point3d &min, const point3d &max, uint8_t depth=0) | |
| Constructor of the iterator. More... | |
| bool | operator!= (const iterator_base &other) const |
| Comparison between iterators. First compares the tree, then stack size and top element of stack. More... | |
| NodeType & | operator* () |
| Return the current node in the octree which the iterator is referring to. More... | |
| const NodeType & | operator* () const |
| Return the current node in the octree which the iterator is referring to. More... | |
| leaf_bbx_iterator & | operator++ () |
| prefix increment operator of iterator (++it) More... | |
| leaf_bbx_iterator | operator++ (int) |
| postfix increment operator of iterator (it++) More... | |
| NodeType * | operator-> () |
| Ptr operator will return the current node in the octree which the iterator is referring to. More... | |
| NodeType const * | operator-> () const |
| Ptr operator will return the current node in the octree which the iterator is referring to. More... | |
| bool | operator== (const iterator_base &other) const |
| Comparison between iterators. First compares the tree, then stack size and top element of stack. More... | |
Protected Member Functions | |
| void | singleIncrement () |
Protected Attributes | |
| uint8_t | maxDepth |
| Maximum depth for depth-limited queries. More... | |
| OcTreeKey | maxKey |
| OcTreeKey | minKey |
| std::stack< StackElement, std::vector< StackElement > > | stack |
| Internal recursion stack. Apparently a stack of vector works fastest here. More... | |
| OcTreeBaseImpl< NodeType, INTERFACE > const * | tree |
| Octree this iterator is working on. More... | |
Bounding-box leaf iterator.
This iterator will traverse all leaf nodes within a given bounding box (axis-aligned). See below for example usage. Note that the non-trivial call to tree->end_leafs_bbx() should be done only once for efficiency!
|
inline |
|
inline |
Constructor of the iterator.
The bounding box corners min and max are converted into an OcTreeKey first.
| ptree | OcTreeBaseImpl on which the iterator is used on |
| min | Minimum point3d of the axis-aligned boundingbox |
| max | Maximum point3d of the axis-aligned boundingbox |
| depth | Maximum depth to traverse the tree. 0 (default): unlimited |
References iterator_base::maxDepth, maxKey, minKey, operator++(), iterator_base::stack, and iterator_base::tree.
|
inline |
Constructor of the iterator.
This version uses the exact keys as axis-aligned bounding box (including min and max).
| ptree | OcTreeBaseImpl on which the iterator is used on |
| min | Minimum OcTreeKey to be included in the axis-aligned boundingbox |
| max | Maximum OcTreeKey to be included in the axis-aligned boundingbox |
| depth | Maximum depth to traverse the tree. 0 (default): unlimited |
References operator++(), and iterator_base::stack.
|
inline |
|
inlineinherited |
return the center coordinate of the current node
References iterator_base::stack, and iterator_base::tree.
|
inlineinherited |
return depth of the current node
References iterator_base::stack.
|
inlineinherited |
References octomap::computeIndexKey(), iterator_base::stack, and iterator_base::tree.
|
inlineinherited |
References iterator_base::stack.
|
inlineinherited |
References iterator_base::stack, and iterator_base::tree.
|
inlineinherited |
References iterator_base::stack, and iterator_base::tree.
|
inlineinherited |
References iterator_base::stack, and iterator_base::tree.
|
inlineinherited |
References iterator_base::stack, and iterator_base::tree.
|
inlineinherited |
Comparison between iterators. First compares the tree, then stack size and top element of stack.
References iterator_base::stack, and iterator_base::tree.
|
inlineinherited |
Return the current node in the octree which the iterator is referring to.
References iterator_base::stack.
|
inlineinherited |
Return the current node in the octree which the iterator is referring to.
References iterator_base::stack.
|
inline |
prefix increment operator of iterator (++it)
References singleIncrement(), iterator_base::stack, and iterator_base::tree.
Referenced by leaf_bbx_iterator().
|
inline |
postfix increment operator of iterator (it++)
|
inlineinherited |
Ptr operator will return the current node in the octree which the iterator is referring to.
References iterator_base::stack.
|
inlineinherited |
Ptr operator will return the current node in the octree which the iterator is referring to.
References iterator_base::stack.
|
inlineinherited |
Comparison between iterators. First compares the tree, then stack size and top element of stack.
References iterator_base::stack, and iterator_base::tree.
|
inlineprotected |
|
protectedinherited |
Maximum depth for depth-limited queries.
Referenced by iterator_base::iterator_base(), leaf_bbx_iterator(), iterator_base::operator=(), and iterator_base::singleIncrement().
|
protected |
Referenced by leaf_bbx_iterator(), and singleIncrement().
|
protected |
Referenced by leaf_bbx_iterator(), and singleIncrement().
|
protectedinherited |
Internal recursion stack. Apparently a stack of vector works fastest here.
Referenced by iterator_base::getCoordinate(), iterator_base::getDepth(), iterator_base::getIndexKey(), iterator_base::getKey(), iterator_base::getSize(), iterator_base::getX(), iterator_base::getY(), iterator_base::getZ(), iterator_base::iterator_base(), leaf_bbx_iterator(), leaf_iterator::leaf_iterator(), iterator_base::operator!=(), iterator_base::operator*(), tree_iterator::operator++(), leaf_iterator::operator++(), operator++(), iterator_base::operator->(), iterator_base::operator=(), iterator_base::operator==(), iterator_base::singleIncrement(), and singleIncrement().
|
protectedinherited |
Octree this iterator is working on.
Referenced by iterator_base::getCoordinate(), iterator_base::getIndexKey(), iterator_base::getSize(), iterator_base::getX(), iterator_base::getY(), iterator_base::getZ(), tree_iterator::isLeaf(), iterator_base::iterator_base(), leaf_bbx_iterator(), iterator_base::operator!=(), tree_iterator::operator++(), leaf_iterator::operator++(), operator++(), iterator_base::operator=(), iterator_base::operator==(), iterator_base::singleIncrement(), and singleIncrement().