pcl::octree::OctreeDepthFirstIterator< OctreeT > Class Template Reference

**Octree** iterator class
More...

`#include <octree_iterator.h>`

Inheritance diagram for pcl::octree::OctreeDepthFirstIterator< OctreeT >:

## Public Types | |

typedef OctreeIteratorBase < OctreeT >::BranchNode | BranchNode |

typedef OctreeIteratorBase < OctreeT >::LeafNode | LeafNode |

## Public Member Functions | |

OctreeDepthFirstIterator (unsigned int max_depth_arg=0) | |

Empty constructor. | |

OctreeDepthFirstIterator (OctreeT *octree_arg, unsigned int max_depth_arg=0) | |

Constructor. | |

OctreeDepthFirstIterator & | operator++ () |

Preincrement operator. | |

OctreeDepthFirstIterator | operator++ (int) |

postincrement operator. | |

OctreeDepthFirstIterator & | operator= (const OctreeDepthFirstIterator &src) |

Copy operator. | |

virtual void | reset () |

Reset the iterator to the root node of the octree. | |

void | skipChildVoxels () |

Skip all child voxels of current node and return to parent node. | |

virtual | ~OctreeDepthFirstIterator () |

Empty deconstructor. | |

## Protected Attributes | |

std::vector< IteratorState > | stack_ |

class pcl::octree::OctreeDepthFirstIterator< OctreeT >

**Octree** iterator class

**Note:**- This class implements a forward iterator for traversing octrees in a depth-first manner.

Definition at line 368 of file octree_iterator.h.

template<typename OctreeT >

typedef OctreeIteratorBase<OctreeT>::BranchNode pcl::octree::OctreeDepthFirstIterator< OctreeT >::BranchNode |

Reimplemented from pcl::octree::OctreeIteratorBase< OctreeT >.

Reimplemented in pcl::octree::OctreeLeafNodeIterator< OctreeT >.

Definition at line 374 of file octree_iterator.h.

template<typename OctreeT >

typedef OctreeIteratorBase<OctreeT>::LeafNode pcl::octree::OctreeDepthFirstIterator< OctreeT >::LeafNode |

Reimplemented from pcl::octree::OctreeIteratorBase< OctreeT >.

Reimplemented in pcl::octree::OctreeLeafNodeIterator< OctreeT >.

Definition at line 373 of file octree_iterator.h.

template<typename OctreeT >

pcl::octree::OctreeDepthFirstIterator< OctreeT >::OctreeDepthFirstIterator | ( | unsigned int | max_depth_arg = `0` | ) | ` [explicit]` |

Empty constructor.

**Parameters:**-
[in] max_depth_arg Depth limitation during traversal

Definition at line 53 of file octree_iterator.hpp.

template<typename OctreeT >

pcl::octree::OctreeDepthFirstIterator< OctreeT >::OctreeDepthFirstIterator | ( | OctreeT * | octree_arg, |

unsigned int | max_depth_arg = `0` |
||

) | ` [explicit]` |

Constructor.

**Parameters:**-
[in] octree_arg Octree to be iterated. Initially the iterator is set to its root node. [in] max_depth_arg Depth limitation during traversal

Definition at line 62 of file octree_iterator.hpp.

template<typename OctreeT >

pcl::octree::OctreeDepthFirstIterator< OctreeT >::~OctreeDepthFirstIterator | ( | ) | ` [virtual]` |

Empty deconstructor.

Definition at line 71 of file octree_iterator.hpp.

template<typename OctreeT >

OctreeDepthFirstIterator< OctreeT > & pcl::octree::OctreeDepthFirstIterator< OctreeT >::operator++ | ( | ) |

Preincrement operator.

**Note:**- recursively step to next octree node

Reimplemented in pcl::octree::OctreeLeafNodeIterator< OctreeT >.

Definition at line 130 of file octree_iterator.hpp.

template<typename OctreeT >

OctreeDepthFirstIterator pcl::octree::OctreeDepthFirstIterator< OctreeT >::operator++ | ( | int | ) | ` [inline]` |

postincrement operator.

**Note:**- recursively step to next octree node

Reimplemented in pcl::octree::OctreeLeafNodeIterator< OctreeT >.

Definition at line 430 of file octree_iterator.h.

template<typename OctreeT >

OctreeDepthFirstIterator& pcl::octree::OctreeDepthFirstIterator< OctreeT >::operator= | ( | const OctreeDepthFirstIterator< OctreeT > & | src | ) | ` [inline]` |

Copy operator.

**Parameters:**-
[in] src the iterator to copy into this

Definition at line 397 of file octree_iterator.h.

template<typename OctreeT >

void pcl::octree::OctreeDepthFirstIterator< OctreeT >::reset | ( | ) | ` [virtual]` |

Reset the iterator to the root node of the octree.

Reimplemented from pcl::octree::OctreeIteratorBase< OctreeT >.

Reimplemented in pcl::octree::OctreeLeafNodeIterator< OctreeT >.

Definition at line 77 of file octree_iterator.hpp.

template<typename OctreeT >

void pcl::octree::OctreeDepthFirstIterator< OctreeT >::skipChildVoxels | ( | ) |

Skip all child voxels of current node and return to parent node.

Definition at line 104 of file octree_iterator.hpp.

template<typename OctreeT >

std::vector<IteratorState> pcl::octree::OctreeDepthFirstIterator< OctreeT >::stack_` [protected]` |

Stack structure.

Definition at line 444 of file octree_iterator.h.

The documentation for this class was generated from the following files: