Base class for tree-traversal iterators over all nodes. More...
#include <openvdb/tree/TreeIterator.h>
Public Types | |
using | TreeT = _TreeT |
using | RootIterT = RootChildOnIterT |
using | RootNodeT = typename RootIterT::NodeType |
using | NCRootNodeT = typename RootIterT::NonConstNodeType |
using | InvTreeT = typename iter::InvertedTree<NCRootNodeT, ROOT_LEVEL>::Type |
using | RootIterTraits = IterTraits<NCRootNodeT, RootIterT> |
Public Member Functions | |
NodeIteratorBase () | |
NodeIteratorBase (TreeT &) | |
NodeIteratorBase (const NodeIteratorBase &other) | |
NodeIteratorBase & | operator= (const NodeIteratorBase &other) |
void | setMinDepth (Index minDepth) |
Specify the depth of the highest level of the tree to which to ascend (depth 0 = root). | |
Index | getMinDepth () const |
Return the depth of the highest level of the tree to which this iterator ascends. | |
void | setMaxDepth (Index maxDepth) |
Specify the depth of the lowest level of the tree to which to descend (depth 0 = root). | |
Index | getMaxDepth () const |
Return the depth of the lowest level of the tree to which this iterator ascends. | |
bool | test () const |
Return true if this iterator is not yet exhausted. | |
operator bool () const | |
bool | next () |
Advance to the next tile or voxel value. | |
void | increment () |
Advance the iterator to the next leaf node. | |
NodeIteratorBase & | operator++ () |
void | increment (Index n) |
Increment the iterator n times. | |
Index | getLevel () const |
Return the level in the tree (0 = leaf) of the node to which this iterator is currently pointing. | |
Index | getDepth () const |
Return the depth in the tree (0 = root) of the node to which this iterator is currently pointing. | |
Coord | getCoord () const |
Return the global coordinates of the voxel or tile to which this iterator is currently pointing. | |
bool | getBoundingBox (CoordBBox &bbox) const |
Return in bbox the axis-aligned bounding box of the voxel or tile to which this iterator is currently pointing. | |
CoordBBox | getBoundingBox () const |
Return the axis-aligned bounding box of the voxel or tile to which this iterator is currently pointing. | |
template<typename NodeT> | |
void | getNode (NodeT *&node) const |
Return the node to which the iterator is pointing. | |
template<typename NodeT> | |
void | getNode (const NodeT *&node) const |
TreeT * | getTree () const |
std::string | summary () const |
Static Public Member Functions | |
static Index | getLeafDepth () |
Static Public Attributes | |
static const Index | ROOT_LEVEL = RootNodeT::LEVEL |
static const Index | LEAF_LEVEL = 0 |
static const Index | ROOT_DEPTH = 0 |
static const Index | LEAF_DEPTH = ROOT_LEVEL |
Base class for tree-traversal iterators over all nodes.
using InvTreeT = typename iter::InvertedTree<NCRootNodeT, ROOT_LEVEL>::Type |
using NCRootNodeT = typename RootIterT::NonConstNodeType |
using RootIterT = RootChildOnIterT |
using RootIterTraits = IterTraits<NCRootNodeT, RootIterT> |
using RootNodeT = typename RootIterT::NodeType |
using TreeT = _TreeT |
|
inline |
|
inline |
|
inline |
|
inline |
Return the axis-aligned bounding box of the voxel or tile to which this iterator is currently pointing.
|
inline |
Return in bbox the axis-aligned bounding box of the voxel or tile to which this iterator is currently pointing.
Return the global coordinates of the voxel or tile to which this iterator is currently pointing.
|
inline |
Return the depth in the tree (0 = root) of the node to which this iterator is currently pointing.
|
inlinestatic |
|
inline |
Return the level in the tree (0 = leaf) of the node to which this iterator is currently pointing.
|
inline |
Return the depth of the lowest level of the tree to which this iterator ascends.
|
inline |
Return the depth of the highest level of the tree to which this iterator ascends.
|
inline |
|
inline |
Return the node to which the iterator is pointing.
|
inline |
|
inline |
Advance the iterator to the next leaf node.
|
inline |
Increment the iterator n times.
|
inline |
Advance to the next tile or voxel value.
true
if this iterator is not yet exhausted.
|
inline |
|
inline |
|
inline |
Specify the depth of the lowest level of the tree to which to descend (depth 0 = root).
Specify the depth of the highest level of the tree to which to ascend (depth 0 = root).
|
inline |
|
inline |
Return true
if this iterator is not yet exhausted.
|
static |
|
static |
|
static |
|
static |