|
octomap 1.9.8
|
Base class for OcTree iterators. More...
#include <OcTreeBaseImpl.h>
Data Structures | |
| struct | StackElement |
| Element on the internal recursion stack of the iterator. More... | |
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 |
| iterator_base () | |
| Default ctor, only used for the end-iterator. | |
| iterator_base (const iterator_base &other) | |
| Copy constructor of the iterator. | |
| iterator_base (OcTreeBaseImpl< NodeType, INTERFACE > const *ptree, uint8_t depth=0) | |
| Constructor of the iterator. | |
| 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. | |
| 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. | |
| iterator_base & | operator= (const iterator_base &other) |
| bool | operator== (const iterator_base &other) const |
| Comparison between iterators. First compares the tree, then stack size and top element of stack. | |
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. | |
Base class for OcTree iterators.
So far, all iterator's are const with respect to the tree. This file is included within OcTreeBaseImpl.h, you should probably not include this directly.
|
inline |
Default ctor, only used for the end-iterator.
|
inline |
Constructor of the iterator.
Initializes the iterator with the default constructor (= end() iterator) if tree is empty or NULL.
| ptree | OcTreeBaseImpl on which the iterator is used on |
| depth | Maximum depth to traverse the tree. 0 (default): unlimited |
|
inline |
Copy constructor of the iterator.
References octomap::OcTreeBaseImpl< NODE, INTERFACE >::OcTreeBaseImpl().
|
inline |
return the center coordinate of the current node
|
inline |
return depth of the current node
|
inline |
|
inline |
|
inline |
Referenced by octomap::OcTreeBaseImpl< NODE, INTERFACE >::calcMinMax(), octomap::OcTreeBaseImpl< NODE, INTERFACE >::getMetricMax(), and octomap::OcTreeBaseImpl< NODE, INTERFACE >::getMetricMin().
|
inline |
Referenced by octomap::OcTreeBaseImpl< NODE, INTERFACE >::calcMinMax(), octomap::OcTreeBaseImpl< NODE, INTERFACE >::getMetricMax(), and octomap::OcTreeBaseImpl< NODE, INTERFACE >::getMetricMin().
|
inline |
Referenced by octomap::OcTreeBaseImpl< NODE, INTERFACE >::calcMinMax(), octomap::OcTreeBaseImpl< NODE, INTERFACE >::getMetricMax(), and octomap::OcTreeBaseImpl< NODE, INTERFACE >::getMetricMin().
|
inline |
Referenced by octomap::OcTreeBaseImpl< NODE, INTERFACE >::calcMinMax(), octomap::OcTreeBaseImpl< NODE, INTERFACE >::getMetricMax(), and octomap::OcTreeBaseImpl< NODE, INTERFACE >::getMetricMin().
|
inline |
Comparison between iterators. First compares the tree, then stack size and top element of stack.
|
inline |
Return the current node in the octree which the iterator is referring to.
|
inline |
Return the current node in the octree which the iterator is referring to.
|
inline |
Ptr operator will return the current node in the octree which the iterator is referring to.
|
inline |
Ptr operator will return the current node in the octree which the iterator is referring to.
|
inline |
|
inline |
Comparison between iterators. First compares the tree, then stack size and top element of stack.
|
inlineprotected |
One step of depth-first tree traversal. How this is used depends on the actual iterator.
|
protected |
Maximum depth for depth-limited queries.
Referenced by octomap::OcTreeBaseImpl< NODE, INTERFACE >::leaf_bbx_iterator::leaf_bbx_iterator().
|
protected |
Internal recursion stack. Apparently a stack of vector works fastest here.
|
protected |
Octree this iterator is working on.