OpenVDB
12.0.0
|
#include <openvdb/tree/NodeManager.h>
Public Types | |
using | NonConstRootNodeType = typename TreeOrLeafManagerT::RootNodeType |
using | RootNodeType = typename CopyConstness< TreeOrLeafManagerT, NonConstRootNodeType >::Type |
using | NonConstChildNodeType = typename RootNodeType::ChildNodeType |
using | ChildNodeType = typename CopyConstness< TreeOrLeafManagerT, NonConstChildNodeType >::Type |
Public Member Functions | |
DynamicNodeManager (TreeOrLeafManagerT &tree) | |
DynamicNodeManager (const DynamicNodeManager &)=delete | |
const NonConstRootNodeType & | root () const |
Return a reference to the root node. More... | |
template<typename NodeOp > | |
void | foreachTopDown (const NodeOp &op, bool threaded=true, size_t leafGrainSize=1, size_t nonLeafGrainSize=1) |
Threaded method that applies a user-supplied functor to all the nodes in the tree. More... | |
template<typename NodeOp > | |
void | reduceTopDown (NodeOp &op, bool threaded=true, size_t leafGrainSize=1, size_t nonLeafGrainSize=1) |
Threaded method that processes nodes with a user supplied functor. More... | |
Static Public Attributes | |
static const Index | LEVELS = _LEVELS |
Protected Attributes | |
RootNodeType & | mRoot |
DynamicNodeManagerLink< ChildNodeType, LEVELS-1 > | mChain |
using ChildNodeType = typename CopyConstness<TreeOrLeafManagerT, NonConstChildNodeType>::Type |
using NonConstChildNodeType = typename RootNodeType::ChildNodeType |
using NonConstRootNodeType = typename TreeOrLeafManagerT::RootNodeType |
using RootNodeType = typename CopyConstness<TreeOrLeafManagerT, NonConstRootNodeType>::Type |
|
inlineexplicit |
|
delete |
|
inline |
Threaded method that applies a user-supplied functor to all the nodes in the tree.
op | user-supplied functor, see examples for interface details. |
threaded | optional toggle to disable threading, on by default. |
leafGrainSize | optional parameter to specify the grainsize for threading over leaf nodes, one by default. |
nonLeafGrainSize | optional parameter to specify the grainsize for threading over non-leaf nodes, one by default. |
|
inline |
Threaded method that processes nodes with a user supplied functor.
op | user-supplied functor, see examples for interface details. |
threaded | optional toggle to disable threading, on by default. |
leafGrainSize | optional parameter to specify the grainsize for threading over leaf nodes, one by default. |
nonLeafGrainSize | optional parameter to specify the grainsize for threading over non-leaf nodes, one by default. |
|
inline |
Return a reference to the root node.
|
static |
|
protected |
|
protected |