OpenVDB  12.0.0
Public Member Functions | Static Public Member Functions | List of all members
GridMetaData Class Reference

This is a convenient class that allows for access to grid meta-data that are independent of the value type of a grid. That is, this class can be used to get information about a grid without actually knowing its ValueType. More...

#include <nanovdb/NanoVDB.h>

Public Member Functions

template<typename T >
 GridMetaData (const NanoGrid< T > &grid)
 
 GridMetaData (const GridData *gridData)
 
GridMetaDataoperator= (const GridMetaData &)=default
 
__hostdev__ bool safeCast () const
 return true if the RootData follows right after the TreeData. If so, this implies that it's safe to cast the grid from which this instance was constructed to a GridMetaData More...
 
__hostdev__ bool isValid () const
 
__hostdev__ const GridTypegridType () const
 
__hostdev__ const GridClassgridClass () const
 
__hostdev__ bool isLevelSet () const
 
__hostdev__ bool isFogVolume () const
 
__hostdev__ bool isStaggered () const
 
__hostdev__ bool isPointIndex () const
 
__hostdev__ bool isGridIndex () const
 
__hostdev__ bool isPointData () const
 
__hostdev__ bool isMask () const
 
__hostdev__ bool isUnknown () const
 
__hostdev__ bool hasMinMax () const
 
__hostdev__ bool hasBBox () const
 
__hostdev__ bool hasLongGridName () const
 
__hostdev__ bool hasAverage () const
 
__hostdev__ bool hasStdDeviation () const
 
__hostdev__ bool isBreadthFirst () const
 
__hostdev__ uint64_t gridSize () const
 
__hostdev__ uint32_t gridIndex () const
 
__hostdev__ uint32_t gridCount () const
 
__hostdev__ const char * shortGridName () const
 
__hostdev__ const Mapmap () const
 
__hostdev__ const Vec3dBBox & worldBBox () const
 
__hostdev__ const CoordBBox & indexBBox () const
 
__hostdev__ Vec3d voxelSize () const
 
__hostdev__ int blindDataCount () const
 
__hostdev__ uint64_t activeVoxelCount () const
 
__hostdev__ const uint32_t & activeTileCount (uint32_t level) const
 
__hostdev__ uint32_t nodeCount (uint32_t level) const
 
__hostdev__ const Checksumchecksum () const
 
__hostdev__ uint32_t rootTableSize () const
 
__hostdev__ bool isEmpty () const
 
__hostdev__ Version version () const
 

Static Public Member Functions

static __hostdev__ bool safeCast (const GridData *gridData)
 return true if it is safe to cast the grid to a pointer of type GridMetaData, i.e. construction can be avoided. More...
 
template<typename T >
static __hostdev__ bool safeCast (const NanoGrid< T > &grid)
 return true if it is safe to cast the grid to a pointer of type GridMetaData, i.e. construction can be avoided. More...
 

Detailed Description

This is a convenient class that allows for access to grid meta-data that are independent of the value type of a grid. That is, this class can be used to get information about a grid without actually knowing its ValueType.

Constructor & Destructor Documentation

GridMetaData ( const NanoGrid< T > &  grid)
inline
GridMetaData ( const GridData gridData)
inline

Member Function Documentation

__hostdev__ const uint32_t& activeTileCount ( uint32_t  level) const
inline
__hostdev__ uint64_t activeVoxelCount ( ) const
inline
__hostdev__ int blindDataCount ( ) const
inline
__hostdev__ const Checksum& checksum ( ) const
inline
__hostdev__ const GridClass& gridClass ( ) const
inline
__hostdev__ uint32_t gridCount ( ) const
inline
__hostdev__ uint32_t gridIndex ( ) const
inline
__hostdev__ uint64_t gridSize ( ) const
inline
__hostdev__ const GridType& gridType ( ) const
inline
__hostdev__ bool hasAverage ( ) const
inline
__hostdev__ bool hasBBox ( ) const
inline
__hostdev__ bool hasLongGridName ( ) const
inline
__hostdev__ bool hasMinMax ( ) const
inline
__hostdev__ bool hasStdDeviation ( ) const
inline
__hostdev__ const CoordBBox& indexBBox ( ) const
inline
__hostdev__ bool isBreadthFirst ( ) const
inline
__hostdev__ bool isEmpty ( ) const
inline
__hostdev__ bool isFogVolume ( ) const
inline
__hostdev__ bool isGridIndex ( ) const
inline
__hostdev__ bool isLevelSet ( ) const
inline
__hostdev__ bool isMask ( ) const
inline
__hostdev__ bool isPointData ( ) const
inline
__hostdev__ bool isPointIndex ( ) const
inline
__hostdev__ bool isStaggered ( ) const
inline
__hostdev__ bool isUnknown ( ) const
inline
__hostdev__ bool isValid ( ) const
inline
__hostdev__ const Map& map ( ) const
inline
__hostdev__ uint32_t nodeCount ( uint32_t  level) const
inline
GridMetaData& operator= ( const GridMetaData )
default
__hostdev__ uint32_t rootTableSize ( ) const
inline
__hostdev__ bool safeCast ( ) const
inline

return true if the RootData follows right after the TreeData. If so, this implies that it's safe to cast the grid from which this instance was constructed to a GridMetaData

static __hostdev__ bool safeCast ( const GridData gridData)
inlinestatic

return true if it is safe to cast the grid to a pointer of type GridMetaData, i.e. construction can be avoided.

static __hostdev__ bool safeCast ( const NanoGrid< T > &  grid)
inlinestatic

return true if it is safe to cast the grid to a pointer of type GridMetaData, i.e. construction can be avoided.

__hostdev__ const char* shortGridName ( ) const
inline
__hostdev__ Version version ( ) const
inline
__hostdev__ Vec3d voxelSize ( ) const
inline
__hostdev__ const Vec3dBBox& worldBBox ( ) const
inline