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

#include <nanovdb/NanoVDB.h>

Public Member Functions

 GridBlindMetaData (const GridBlindMetaData &)=delete
 
const GridBlindMetaDataoperator= (const GridBlindMetaData &)=delete
 
__hostdev__ void setBlindData (void *blindData)
 
__hostdev__ const void * blindData () const
 
template<typename BlindDataT >
__hostdev__ const BlindDataT * getBlindData () const
 Get a const pointer to the blind data represented by this meta data. More...
 
__hostdev__ bool isValid () const
 return true if this meta data has a valid combination of semantic, class and value tags More...
 
__hostdev__ uint64_t blindDataSize () const
 return size in bytes of the blind data represented by this blind meta data More...
 

Public Attributes

int64_t mDataOffset
 
uint64_t mValueCount
 
uint32_t mValueSize
 
GridBlindDataSemantic mSemantic
 
GridBlindDataClass mDataClass
 
GridType mDataType
 
char mName [MaxNameSize]
 

Static Public Attributes

static const int MaxNameSize = 256
 

Constructor & Destructor Documentation

GridBlindMetaData ( const GridBlindMetaData )
delete

Member Function Documentation

__hostdev__ const void* blindData ( ) const
inline
__hostdev__ uint64_t blindDataSize ( ) const
inline

return size in bytes of the blind data represented by this blind meta data

Note
This size includes possible padding for 32 byte alignment. The actual amount of bind data is mValueCount * mValueSize
__hostdev__ const BlindDataT* getBlindData ( ) const
inline

Get a const pointer to the blind data represented by this meta data.

Template Parameters
BlindDataTExpected value type of the blind data.
Returns
Returns NULL if mGridType!=toGridType<BlindDataT>(), else a const point of type BlindDataT.
Note
Use mDataType=Unknown if BlindDataT is a custom data type unknown to NanoVDB.
__hostdev__ bool isValid ( ) const
inline

return true if this meta data has a valid combination of semantic, class and value tags

const GridBlindMetaData& operator= ( const GridBlindMetaData )
delete
__hostdev__ void setBlindData ( void *  blindData)
inline

Member Data Documentation

const int MaxNameSize = 256
static
GridBlindDataClass mDataClass
int64_t mDataOffset
GridType mDataType
char mName[MaxNameSize]
uint64_t mValueCount
uint32_t mValueSize