Visit all nodes that are downstream of a specific node in depth-first order and apply a user-supplied functor to each node.
More...
#include <NodeVisitor.h>
|
template<typename OpT > |
static size_t | visit (NodeT &node, OpT &op, size_t idx=0) |
|
template<typename NodeT, Index LEVEL>
struct openvdb::v8_1::tools::DepthFirstNodeVisitor< NodeT, LEVEL >
Visit all nodes that are downstream of a specific node in depth-first order and apply a user-supplied functor to each node.
- Note
- This uses the same operator interface as documented in visitNodesDepthFirst().
-
The LEVEL template argument can be used to reduce the traversal depth. For example, calling visit() with a RootNode and using NodeT::LEVEL-1 would not visit leaf nodes.
◆ ChildNodeType
◆ NonConstChildType
◆ visit()
static size_t visit |
( |
NodeT & |
node, |
|
|
OpT & |
op, |
|
|
size_t |
idx = 0 |
|
) |
| |
|
inlinestatic |
The documentation for this struct was generated from the following file: