HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
nanovdb::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.h>

Public Member Functions

template<typename T >
 GridMetaData (const NanoGrid< T > &grid)
 
 GridMetaData (const GridData *gridData)
 
__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 BBox< Vec3d > & worldBBox () const
 
__hostdev__ const BBox< Coord > & 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__ uint64_t checksum () 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.

Definition at line 7497 of file NanoVDB.h.

Constructor & Destructor Documentation

template<typename T >
nanovdb::GridMetaData::GridMetaData ( const NanoGrid< T > &  grid)
inline

Definition at line 7506 of file NanoVDB.h.

nanovdb::GridMetaData::GridMetaData ( const GridData *  gridData)
inline

Definition at line 7513 of file NanoVDB.h.

Member Function Documentation

__hostdev__ const uint32_t& nanovdb::GridMetaData::activeTileCount ( uint32_t  level) const
inline

Definition at line 7567 of file NanoVDB.h.

__hostdev__ uint64_t nanovdb::GridMetaData::activeVoxelCount ( ) const
inline

Definition at line 7566 of file NanoVDB.h.

__hostdev__ int nanovdb::GridMetaData::blindDataCount ( ) const
inline

Definition at line 7565 of file NanoVDB.h.

__hostdev__ uint64_t nanovdb::GridMetaData::checksum ( ) const
inline

Definition at line 7569 of file NanoVDB.h.

__hostdev__ const GridClass& nanovdb::GridMetaData::gridClass ( ) const
inline

Definition at line 7542 of file NanoVDB.h.

__hostdev__ uint32_t nanovdb::GridMetaData::gridCount ( ) const
inline

Definition at line 7559 of file NanoVDB.h.

__hostdev__ uint32_t nanovdb::GridMetaData::gridIndex ( ) const
inline

Definition at line 7558 of file NanoVDB.h.

__hostdev__ uint64_t nanovdb::GridMetaData::gridSize ( ) const
inline

Definition at line 7557 of file NanoVDB.h.

__hostdev__ const GridType& nanovdb::GridMetaData::gridType ( ) const
inline

Definition at line 7541 of file NanoVDB.h.

__hostdev__ bool nanovdb::GridMetaData::hasAverage ( ) const
inline

Definition at line 7554 of file NanoVDB.h.

__hostdev__ bool nanovdb::GridMetaData::hasBBox ( ) const
inline

Definition at line 7552 of file NanoVDB.h.

__hostdev__ bool nanovdb::GridMetaData::hasLongGridName ( ) const
inline

Definition at line 7553 of file NanoVDB.h.

__hostdev__ bool nanovdb::GridMetaData::hasMinMax ( ) const
inline

Definition at line 7551 of file NanoVDB.h.

__hostdev__ bool nanovdb::GridMetaData::hasStdDeviation ( ) const
inline

Definition at line 7555 of file NanoVDB.h.

__hostdev__ const BBox<Coord>& nanovdb::GridMetaData::indexBBox ( ) const
inline

Definition at line 7563 of file NanoVDB.h.

__hostdev__ bool nanovdb::GridMetaData::isBreadthFirst ( ) const
inline

Definition at line 7556 of file NanoVDB.h.

__hostdev__ bool nanovdb::GridMetaData::isEmpty ( ) const
inline

Definition at line 7571 of file NanoVDB.h.

__hostdev__ bool nanovdb::GridMetaData::isFogVolume ( ) const
inline

Definition at line 7544 of file NanoVDB.h.

__hostdev__ bool nanovdb::GridMetaData::isGridIndex ( ) const
inline

Definition at line 7547 of file NanoVDB.h.

__hostdev__ bool nanovdb::GridMetaData::isLevelSet ( ) const
inline

Definition at line 7543 of file NanoVDB.h.

__hostdev__ bool nanovdb::GridMetaData::isMask ( ) const
inline

Definition at line 7549 of file NanoVDB.h.

__hostdev__ bool nanovdb::GridMetaData::isPointData ( ) const
inline

Definition at line 7548 of file NanoVDB.h.

__hostdev__ bool nanovdb::GridMetaData::isPointIndex ( ) const
inline

Definition at line 7546 of file NanoVDB.h.

__hostdev__ bool nanovdb::GridMetaData::isStaggered ( ) const
inline

Definition at line 7545 of file NanoVDB.h.

__hostdev__ bool nanovdb::GridMetaData::isUnknown ( ) const
inline

Definition at line 7550 of file NanoVDB.h.

__hostdev__ bool nanovdb::GridMetaData::isValid ( ) const
inline

Definition at line 7540 of file NanoVDB.h.

__hostdev__ const Map& nanovdb::GridMetaData::map ( ) const
inline

Definition at line 7561 of file NanoVDB.h.

__hostdev__ uint32_t nanovdb::GridMetaData::nodeCount ( uint32_t  level) const
inline

Definition at line 7568 of file NanoVDB.h.

__hostdev__ uint32_t nanovdb::GridMetaData::rootTableSize ( ) const
inline

Definition at line 7570 of file NanoVDB.h.

__hostdev__ bool nanovdb::GridMetaData::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

Definition at line 7528 of file NanoVDB.h.

static __hostdev__ bool nanovdb::GridMetaData::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.

Definition at line 7532 of file NanoVDB.h.

template<typename T >
static __hostdev__ bool nanovdb::GridMetaData::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.

Definition at line 7539 of file NanoVDB.h.

__hostdev__ const char* nanovdb::GridMetaData::shortGridName ( ) const
inline

Definition at line 7560 of file NanoVDB.h.

__hostdev__ Version nanovdb::GridMetaData::version ( ) const
inline

Definition at line 7572 of file NanoVDB.h.

__hostdev__ Vec3d nanovdb::GridMetaData::voxelSize ( ) const
inline

Definition at line 7564 of file NanoVDB.h.

__hostdev__ const BBox<Vec3d>& nanovdb::GridMetaData::worldBBox ( ) const
inline

Definition at line 7562 of file NanoVDB.h.


The documentation for this class was generated from the following file: