HDK
|
Base class for tree-traversal iterators over all nodes. More...
#include <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). More... | |
Index | getMinDepth () const |
Return the depth of the highest level of the tree to which this iterator ascends. More... | |
void | setMaxDepth (Index maxDepth) |
Specify the depth of the lowest level of the tree to which to descend (depth 0 = root). More... | |
Index | getMaxDepth () const |
Return the depth of the lowest level of the tree to which this iterator ascends. More... | |
bool | next () |
Advance to the next tile or voxel value. More... | |
void | increment () |
Advance the iterator to the next leaf node. More... | |
NodeIteratorBase & | operator++ () |
void | increment (Index n) |
Increment the iterator n times. More... | |
Index | getLevel () const |
Return the level in the tree (0 = leaf) of the node to which this iterator is currently pointing. More... | |
Index | getDepth () const |
Return the depth in the tree (0 = root) of the node to which this iterator is currently pointing. More... | |
Coord | getCoord () const |
Return the global coordinates of the voxel or tile to which this iterator is currently pointing. More... | |
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. More... | |
CoordBBox | getBoundingBox () const |
Return the axis-aligned bounding box of the voxel or tile to which this iterator is currently pointing. More... | |
TreeT * | getTree () const |
std::string | summary () const |
bool | test () const |
Return true if this iterator is not yet exhausted. More... | |
operator bool () const | |
Return true if this iterator is not yet exhausted. More... | |
template<typename NodeT > | |
void | getNode (NodeT *&node) const |
Return the node to which the iterator is pointing. More... | |
template<typename NodeT > | |
void | getNode (const NodeT *&node) const |
Return the node to which the iterator is pointing. More... | |
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.
Definition at line 935 of file TreeIterator.h.
using openvdb::OPENVDB_VERSION_NAME::tree::NodeIteratorBase< _TreeT, RootChildOnIterT >::InvTreeT = typename iter::InvertedTree<NCRootNodeT, ROOT_LEVEL>::Type |
Definition at line 943 of file TreeIterator.h.
using openvdb::OPENVDB_VERSION_NAME::tree::NodeIteratorBase< _TreeT, RootChildOnIterT >::NCRootNodeT = typename RootIterT::NonConstNodeType |
Definition at line 941 of file TreeIterator.h.
using openvdb::OPENVDB_VERSION_NAME::tree::NodeIteratorBase< _TreeT, RootChildOnIterT >::RootIterT = RootChildOnIterT |
Definition at line 939 of file TreeIterator.h.
using openvdb::OPENVDB_VERSION_NAME::tree::NodeIteratorBase< _TreeT, RootChildOnIterT >::RootIterTraits = IterTraits<NCRootNodeT, RootIterT> |
Definition at line 946 of file TreeIterator.h.
using openvdb::OPENVDB_VERSION_NAME::tree::NodeIteratorBase< _TreeT, RootChildOnIterT >::RootNodeT = typename RootIterT::NodeType |
Definition at line 940 of file TreeIterator.h.
using openvdb::OPENVDB_VERSION_NAME::tree::NodeIteratorBase< _TreeT, RootChildOnIterT >::TreeT = _TreeT |
Definition at line 938 of file TreeIterator.h.
|
inline |
Definition at line 1024 of file TreeIterator.h.
|
inline |
Definition at line 1037 of file TreeIterator.h.
|
inline |
Definition at line 1051 of file TreeIterator.h.
|
inline |
Return in bbox the axis-aligned bounding box of the voxel or tile to which this iterator is currently pointing.
Definition at line 1144 of file TreeIterator.h.
|
inline |
Return the axis-aligned bounding box of the voxel or tile to which this iterator is currently pointing.
Definition at line 995 of file TreeIterator.h.
|
inline |
Return the global coordinates of the voxel or tile to which this iterator is currently pointing.
Definition at line 1133 of file TreeIterator.h.
|
inline |
Return the depth in the tree (0 = root) of the node to which this iterator is currently pointing.
Definition at line 983 of file TreeIterator.h.
|
inlinestatic |
Definition at line 984 of file TreeIterator.h.
|
inline |
Return the level in the tree (0 = leaf) of the node to which this iterator is currently pointing.
Definition at line 980 of file TreeIterator.h.
|
inline |
Return the depth of the lowest level of the tree to which this iterator ascends.
Definition at line 961 of file TreeIterator.h.
|
inline |
Return the depth of the highest level of the tree to which this iterator ascends.
Definition at line 957 of file TreeIterator.h.
|
inline |
Return the node to which the iterator is pointing.
Definition at line 1002 of file TreeIterator.h.
|
inline |
Return the node to which the iterator is pointing.
Definition at line 1004 of file TreeIterator.h.
|
inline |
Definition at line 1007 of file TreeIterator.h.
|
inline |
Advance the iterator to the next leaf node.
Definition at line 973 of file TreeIterator.h.
|
inline |
Increment the iterator n times.
Definition at line 976 of file TreeIterator.h.
|
inline |
Advance to the next tile or voxel value.
true
if this iterator is not yet exhausted. Definition at line 1101 of file TreeIterator.h.
|
inline |
Return true
if this iterator is not yet exhausted.
Definition at line 966 of file TreeIterator.h.
|
inline |
Definition at line 974 of file TreeIterator.h.
|
inline |
Definition at line 1065 of file TreeIterator.h.
|
inline |
Specify the depth of the lowest level of the tree to which to descend (depth 0 = root).
Definition at line 1091 of file TreeIterator.h.
|
inline |
Specify the depth of the highest level of the tree to which to ascend (depth 0 = root).
Definition at line 1082 of file TreeIterator.h.
|
inline |
Definition at line 1164 of file TreeIterator.h.
|
inline |
Return true
if this iterator is not yet exhausted.
Definition at line 965 of file TreeIterator.h.
|
static |
Definition at line 944 of file TreeIterator.h.
|
static |
Definition at line 944 of file TreeIterator.h.
|
static |
Definition at line 944 of file TreeIterator.h.
|
static |
Definition at line 942 of file TreeIterator.h.