|
| TreeValueIteratorBase (TreeT &) |
|
| TreeValueIteratorBase (const TreeValueIteratorBase &other) |
|
TreeValueIteratorBase & | operator= (const TreeValueIteratorBase &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. Return true if this iterator is not yet exhausted.
|
|
TreeValueIteratorBase & | operator++ () |
| Advance to the next tile or voxel value.
|
|
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.
|
|
template<typename NodeType > |
void | getNode (NodeType *&node) const |
| Return in node a pointer to the node over which this iterator is currently iterating or one of that node's parents, as determined by NodeType. Sets node to null pointer if NodeType specifies a node at a lower level of the tree than that given by getLevel().
|
|
Coord | getCoord () const |
| Return the global coordinates of the voxel or tile to which this iterator is currently pointing.
|
|
bool | getBoundingBox (CoordBBox &) 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.
|
|
Index64 | getVoxelCount () const |
| Return the number of (virtual) voxels corresponding to the value.
|
|
bool | isTileValue () const |
| Return true if this iterator is currently pointing to a (non-leaf) tile value.
|
|
bool | isVoxelValue () const |
| Return true if this iterator is currently pointing to a (leaf) voxel value.
|
|
bool | isValueOn () const |
| Return true if the value to which this iterator is currently pointing is active.
|
|
const ValueT & | getValue () const |
| Return the tile or voxel value to which this iterator is currently pointing.
|
|
const ValueT & | operator* () const |
|
const ValueT * | operator-> () const |
|
void | setValue (const ValueT &val) const |
| Change the tile or voxel value to which this iterator is currently pointing and mark it as active.
|
|
void | setActiveState (bool on) const |
| Change the active/inactive state of the tile or voxel value to which this iterator is currently pointing.
|
|
void | setValueOff () const |
| Mark the tile or voxel value to which this iterator is currently pointing as inactive.
|
|
template<typename ModifyOp > |
void | modifyValue (const ModifyOp &op) const |
| Apply a functor to the item to which this iterator is pointing. (Not valid for const iterators.)
|
|
TreeT * | getTree () const |
| Return a pointer to the tree over which this iterator is iterating.
|
|
std::string | summary () const |
| Return a string (for debugging, mainly) describing this iterator's current state.
|
|
template<typename _TreeT, typename _ValueIterT>
class openvdb::v10_0::tree::TreeValueIteratorBase< _TreeT, _ValueIterT >
Base class for tree-traversal iterators over tile and voxel values.
template<typename _TreeT , typename _ValueIterT >
template<typename NodeType >
void getNode |
( |
NodeType *& |
node | ) |
const |
|
inline |
Return in node a pointer to the node over which this iterator is currently iterating or one of that node's parents, as determined by NodeType. Sets node to null pointer if NodeType specifies a node at a lower level of the tree than that given by getLevel().