|
| Tree ()=delete |
| This class cannot be constructed or deleted. More...
|
|
| Tree (const Tree &)=delete |
|
Tree & | operator= (const Tree &)=delete |
|
| ~Tree ()=delete |
|
__hostdev__ DataType * | data () |
|
__hostdev__ const DataType * | data () const |
|
__hostdev__ RootT & | root () |
|
__hostdev__ const RootT & | root () const |
|
__hostdev__ AccessorType | getAccessor () const |
|
__hostdev__ ValueType | getValue (const CoordType &ijk) const |
| Return the value of the given voxel (regardless of state or location in the tree.) More...
|
|
__hostdev__ ValueType | getValue (int i, int j, int k) const |
|
__hostdev__ bool | isActive (const CoordType &ijk) const |
| Return the active state of the given voxel (regardless of state or location in the tree.) More...
|
|
__hostdev__ bool | probeValue (const CoordType &ijk, ValueType &v) const |
| Return true if this tree is empty, i.e. contains no values or nodes. More...
|
|
__hostdev__ const ValueType & | background () const |
| Return a const reference to the background value. More...
|
|
__hostdev__ void | extrema (ValueType &min, ValueType &max) const |
| Sets the extrema values of all the active values in this tree, i.e. in all nodes of the tree. More...
|
|
__hostdev__ uint64_t | activeVoxelCount () const |
| Return a const reference to the index bounding box of all the active values in this tree, i.e. in all nodes of the tree. More...
|
|
__hostdev__ const uint32_t & | activeTileCount (uint32_t level) const |
| Return the total number of active tiles at the specified level of the tree. More...
|
|
template<typename NodeT > |
__hostdev__ uint32_t | nodeCount () const |
|
__hostdev__ uint32_t | nodeCount (int level) const |
|
__hostdev__ uint32_t | totalNodeCount () const |
|
template<typename NodeT > |
__hostdev__ NodeT * | getFirstNode () |
| return a pointer to the first node of the specified type More...
|
|
template<typename NodeT > |
__hostdev__ const NodeT * | getFirstNode () const |
| return a const pointer to the first node of the specified type More...
|
|
template<int LEVEL> |
__hostdev__ NodeTrait< RootT, LEVEL >::type * | getFirstNode () |
| return a pointer to the first node at the specified level More...
|
|
template<int LEVEL> |
__hostdev__ const NodeTrait< RootT, LEVEL >::type * | getFirstNode () const |
| return a const pointer to the first node of the specified level More...
|
|
__hostdev__ LeafNodeType * | getFirstLeaf () |
| Template specializations of getFirstNode. More...
|
|
__hostdev__ const LeafNodeType * | getFirstLeaf () const |
|
__hostdev__ NodeTrait< RootT, 1 >::type * | getFirstLower () |
|
__hostdev__ const NodeTrait< RootT, 1 >::type * | getFirstLower () const |
|
__hostdev__ NodeTrait< RootT, 2 >::type * | getFirstUpper () |
|
__hostdev__ const NodeTrait< RootT, 2 >::type * | getFirstUpper () const |
|
template<typename OpT , typename... ArgsT> |
__hostdev__ auto | get (const CoordType &ijk, ArgsT &&...args) const |
|
template<typename OpT , typename... ArgsT> |
__hostdev__ auto | set (const CoordType &ijk, ArgsT &&...args) |
|
__hostdev__ void | setRoot (const void *root) |
|
__hostdev__ void * | getRoot () |
| Get a non-const void pointer to the root node (never NULL) More...
|
|
__hostdev__ const void * | getRoot () const |
| Get a const void pointer to the root node (never NULL) More...
|
|
template<typename NodeT > |
__hostdev__ void | setFirstNode (const NodeT *node) |
|
__hostdev__ bool | isEmpty () const |
| Return true if the root is empty, i.e. has not child nodes or constant tiles. More...
|
|
__hostdev__ CoordBBox | bbox () const |
| Return the index bounding box of all the active values in this tree, i.e. in all nodes of the tree. More...
|
|
__hostdev__ bool | isRootNext () const |
| return true if RootData is layout out immediately after TreeData in memory More...
|
|
template<typename RootT>
class nanovdb::Tree< RootT >
VDB Tree, which is a thin wrapper around a RootNode.
__hostdev__ const uint32_t& activeTileCount |
( |
uint32_t |
level | ) |
const |
|
inline |
Return the total number of active tiles at the specified level of the tree.
level = 1,2,3 corresponds to active tile count in lower internal nodes, upper internal nodes, and the root level. Note active values at the leaf level are referred to as active voxels (see activeVoxelCount defined above).