OpenVDB 13.1.0
Loading...
Searching...
No Matches
TreeData Struct Reference

#include <nanovdb/NanoVDB.h>

Public Member Functions

TreeData & operator= (const TreeData &)=default
void setRoot (const void *root)
void * getRoot ()
 Get a non-const void pointer to the root node (never NULL)
const void * getRoot () const
 Get a const void pointer to the root node (never NULL)
template<typename NodeT>
void setFirstNode (const NodeT *node)
bool isEmpty () const
 Return true if the root is empty, i.e. has not child nodes or constant tiles.
CoordBBox bbox () const
 Return the index bounding box of all the active values in this tree, i.e. in all nodes of the tree.
bool isRootNext () const
 return true if RootData is layout out immediately after TreeData in memory

Public Attributes

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

Member Function Documentation

◆ bbox()

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.

◆ getRoot() [1/2]

void * getRoot ( )
inline

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

◆ getRoot() [2/2]

const void * getRoot ( ) const
inline

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

◆ isEmpty()

bool isEmpty ( ) const
inline

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

◆ isRootNext()

bool isRootNext ( ) const
inline

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

◆ operator=()

TreeData & operator= ( const TreeData & )
default

◆ setFirstNode()

template<typename NodeT>
void setFirstNode ( const NodeT * node)
inline

◆ setRoot()

void setRoot ( const void * root)
inline

Member Data Documentation

◆ mNodeCount

uint32_t mNodeCount[3]

◆ mNodeOffset

int64_t mNodeOffset[4]

◆ mTileCount

uint32_t mTileCount[3]

◆ mVoxelCount

uint64_t mVoxelCount