|
octomap 1.9.8
|
Iterator over the complete tree (inner nodes and leafs). More...
#include <OcTreeBaseImpl.h>
Public Member Functions | |
| point3d | getCoordinate () const |
| return the center coordinate of the current node | |
| unsigned | getDepth () const |
| return depth of the current node | |
| OcTreeKey | getIndexKey () const |
| const OcTreeKey & | getKey () const |
| double | getSize () const |
| double | getX () const |
| double | getY () const |
| double | getZ () const |
| bool | isLeaf () const |
| bool | operator!= (const iterator_base &other) const |
| Comparison between iterators. First compares the tree, then stack size and top element of stack. | |
| NodeType & | operator* () |
| Return the current node in the octree which the iterator is referring to. | |
| const NodeType & | operator* () const |
| Return the current node in the octree which the iterator is referring to. | |
| tree_iterator & | operator++ () |
| Prefix increment operator to advance the iterator. | |
| tree_iterator | operator++ (int) |
| postfix increment operator of iterator (it++) | |
| NodeType * | operator-> () |
| Ptr operator will return the current node in the octree which the iterator is referring to. | |
| NodeType const * | operator-> () const |
| Ptr operator will return the current node in the octree which the iterator is referring to. | |
| bool | operator== (const iterator_base &other) const |
| Comparison between iterators. First compares the tree, then stack size and top element of stack. | |
| tree_iterator () | |
| tree_iterator (OcTreeBaseImpl< NodeType, INTERFACE > const *ptree, uint8_t depth=0) | |
| Constructor of the iterator. | |
Data Fields | |
| OcTreeKey | elements |
| STL member. | |
Protected Member Functions | |
| void | singleIncrement () |
| One step of depth-first tree traversal. How this is used depends on the actual iterator. | |
Protected Attributes | |
| uint8_t | maxDepth |
| Maximum depth for depth-limited queries. | |
| std::stack< StackElement, std::vector< StackElement > > | stack |
| Internal recursion stack. Apparently a stack of vector works fastest here. | |
| OcTreeBaseImpl< NodeType, INTERFACE > const * | tree |
| Octree this iterator is working on. | |
Iterator over the complete tree (inner nodes and leafs).
See below for example usage. Note that the non-trivial call to tree->end_tree() should be done only once for efficiency!
|
inline |
|
inline |
Constructor of the iterator.
| ptree | OcTreeBaseImpl on which the iterator is used on |
| depth | Maximum depth to traverse the tree. 0 (default): unlimited |
|
inlineinherited |
return the center coordinate of the current node
|
inlineinherited |
return depth of the current node
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Referenced by octomap::OcTreeBaseImpl< NODE, INTERFACE >::calcMinMax(), octomap::OcTreeBaseImpl< NODE, INTERFACE >::getMetricMax(), and octomap::OcTreeBaseImpl< NODE, INTERFACE >::getMetricMin().
|
inlineinherited |
Referenced by octomap::OcTreeBaseImpl< NODE, INTERFACE >::calcMinMax(), octomap::OcTreeBaseImpl< NODE, INTERFACE >::getMetricMax(), and octomap::OcTreeBaseImpl< NODE, INTERFACE >::getMetricMin().
|
inlineinherited |
Referenced by octomap::OcTreeBaseImpl< NODE, INTERFACE >::calcMinMax(), octomap::OcTreeBaseImpl< NODE, INTERFACE >::getMetricMax(), and octomap::OcTreeBaseImpl< NODE, INTERFACE >::getMetricMin().
|
inlineinherited |
Referenced by octomap::OcTreeBaseImpl< NODE, INTERFACE >::calcMinMax(), octomap::OcTreeBaseImpl< NODE, INTERFACE >::getMetricMax(), and octomap::OcTreeBaseImpl< NODE, INTERFACE >::getMetricMin().
|
inline |
References octomap::OcTreeBaseImpl< NODE, INTERFACE >::tree_size.
|
inlineinherited |
Comparison between iterators. First compares the tree, then stack size and top element of stack.
|
inlineinherited |
Return the current node in the octree which the iterator is referring to.
|
inlineinherited |
Return the current node in the octree which the iterator is referring to.
|
inline |
Prefix increment operator to advance the 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.
|
inlineinherited |
Ptr operator will return the current node in the octree which the iterator is referring to.
|
inlineinherited |
Comparison between iterators. First compares the tree, then stack size and top element of stack.
|
inlineprotectedinherited |
One step of depth-first tree traversal. How this is used depends on the actual iterator.
|
protectedinherited |
Maximum depth for depth-limited queries.
Referenced by octomap::OcTreeBaseImpl< NODE, INTERFACE >::leaf_bbx_iterator::leaf_bbx_iterator().
|
protectedinherited |
Internal recursion stack. Apparently a stack of vector works fastest here.
|
protectedinherited |
Octree this iterator is working on.