OpenVDB  12.0.0
Public Member Functions | Public Attributes | List of all members
TreeData Struct Reference

#include <nanovdb/NanoVDB.h>

Inherited by Tree< RootT >.

Public Member Functions

TreeDataoperator= (const TreeData &)=default
 
__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...
 

Public Attributes

int64_t mNodeOffset [4]
 
uint32_t mNodeCount [3]
 
uint32_t mTileCount [3]
 
uint64_t mVoxelCount
 

Member Function Documentation

__hostdev__ CoordBBox bbox ( ) const
inline

Return the index bounding box of all the active values in this tree, i.e. in all nodes of the tree.

__hostdev__ void* getRoot ( )
inline

Get a non-const void pointer to the root node (never NULL)

__hostdev__ const void* getRoot ( ) const
inline

Get a const void pointer to the root node (never NULL)

__hostdev__ bool isEmpty ( ) const
inline

Return true if the root is empty, i.e. has not child nodes or constant tiles.

__hostdev__ bool isRootNext ( ) const
inline

return true if RootData is layout out immediately after TreeData in memory

TreeData& operator= ( const TreeData )
default
__hostdev__ void setFirstNode ( const NodeT *  node)
inline
__hostdev__ void setRoot ( const void *  root)
inline

Member Data Documentation

uint32_t mNodeCount[3]
int64_t mNodeOffset[4]
uint32_t mTileCount[3]
uint64_t mVoxelCount