HDK
|
Highest level of the data structure. Contains a tree and a world->index transform (that currently only supports uniform scaling and translation). More...
#include <NanoVDB.h>
Public Types | |
using | TreeType = TreeT |
using | RootType = typename TreeT::RootType |
using | RootNodeType = RootType |
using | UpperNodeType = typename RootNodeType::ChildNodeType |
using | LowerNodeType = typename UpperNodeType::ChildNodeType |
using | LeafNodeType = typename RootType::LeafNodeType |
using | DataType = GridData |
using | ValueType = typename TreeT::ValueType |
using | BuildType = typename TreeT::BuildType |
using | CoordType = typename TreeT::CoordType |
using | AccessorType = DefaultReadAccessor< BuildType > |
Public Member Functions | |
Grid (const Grid &)=delete | |
Disallow constructions, copy and assignment. More... | |
Grid & | operator= (const Grid &)=delete |
~Grid ()=delete | |
__hostdev__ Version | version () const |
__hostdev__ DataType * | data () |
__hostdev__ const DataType * | data () const |
__hostdev__ uint64_t | gridSize () const |
Return memory usage in bytes for this class only. More... | |
__hostdev__ uint32_t | gridIndex () const |
Return index of this grid in the buffer. More... | |
__hostdev__ uint32_t | gridCount () const |
Return total number of grids in the buffer. More... | |
template<typename T = BuildType> | |
__hostdev__ enable_if < BuildTraits< T >::is_index, const uint64_t & >::type | valueCount () const |
Return the total number of values indexed by this IndexGrid. More... | |
template<typename T = BuildType> | |
__hostdev__ enable_if< is_same < T, Point >::value, const uint64_t & >::type | pointCount () const |
Return the total number of points indexed by this PointGrid. More... | |
__hostdev__ const TreeT & | tree () const |
Return a const reference to the tree. More... | |
__hostdev__ TreeT & | tree () |
Return a non-const reference to the tree. More... | |
__hostdev__ AccessorType | getAccessor () const |
Return a new instance of a ReadAccessor used to access values in this grid. More... | |
__hostdev__ const Vec3d & | voxelSize () const |
Return a const reference to the size of a voxel in world units. More... | |
__hostdev__ const Map & | map () const |
Return a const reference to the Map for this grid. More... | |
template<typename Vec3T > | |
__hostdev__ Vec3T | worldToIndex (const Vec3T &xyz) const |
world to index space transformation More... | |
template<typename Vec3T > | |
__hostdev__ Vec3T | indexToWorld (const Vec3T &xyz) const |
index to world space transformation More... | |
template<typename Vec3T > | |
__hostdev__ Vec3T | indexToWorldDir (const Vec3T &dir) const |
transformation from index space direction to world space direction More... | |
template<typename Vec3T > | |
__hostdev__ Vec3T | worldToIndexDir (const Vec3T &dir) const |
transformation from world space direction to index space direction More... | |
template<typename Vec3T > | |
__hostdev__ Vec3T | indexToWorldGrad (const Vec3T &grad) const |
transform the gradient from index space to world space. More... | |
template<typename Vec3T > | |
__hostdev__ Vec3T | worldToIndexF (const Vec3T &xyz) const |
world to index space transformation More... | |
template<typename Vec3T > | |
__hostdev__ Vec3T | indexToWorldF (const Vec3T &xyz) const |
index to world space transformation More... | |
template<typename Vec3T > | |
__hostdev__ Vec3T | indexToWorldDirF (const Vec3T &dir) const |
transformation from index space direction to world space direction More... | |
template<typename Vec3T > | |
__hostdev__ Vec3T | worldToIndexDirF (const Vec3T &dir) const |
transformation from world space direction to index space direction More... | |
template<typename Vec3T > | |
__hostdev__ Vec3T | indexToWorldGradF (const Vec3T &grad) const |
Transforms the gradient from index space to world space. More... | |
__hostdev__ uint64_t | activeVoxelCount () const |
Computes a AABB of active values in world space. More... | |
__hostdev__ bool | isValid () const |
Methods related to the classification of this grid. More... | |
__hostdev__ const GridType & | gridType () const |
__hostdev__ const GridClass & | gridClass () 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 |
template<typename NodeT > | |
__hostdev__ bool | isSequential () const |
return true if the specified node type is layed out breadth-first in memory and has a fixed size. This allows for sequential access to the nodes. More... | |
template<int LEVEL> | |
__hostdev__ bool | isSequential () const |
return true if the specified node level is layed out breadth-first in memory and has a fixed size. This allows for sequential access to the nodes. More... | |
__hostdev__ bool | isSequential () const |
return true if nodes at all levels can safely be accessed with simple linear offsets More... | |
__hostdev__ const char * | gridName () const |
Return a c-string with the name of this grid. More... | |
__hostdev__ const char * | shortGridName () const |
Return a c-string with the name of this grid, truncated to 255 characters. More... | |
__hostdev__ uint64_t | checksum () const |
Return checksum of the grid buffer. More... | |
__hostdev__ uint32_t | blindDataCount () const |
Return true if this grid is empty, i.e. contains no values or nodes. More... | |
__hostdev__ int | findBlindData (const char *name) const |
Return the index of the first blind data with specified name if found, otherwise -1. More... | |
__hostdev__ int | findBlindDataForSemantic (GridBlindDataSemantic semantic) const |
Return the index of the first blind data with specified semantic if found, otherwise -1. More... | |
__hostdev__ const void * | blindData (uint32_t n) const |
Returns a const pointer to the blindData at the specified linear offset. More... | |
template<typename BlindDataT > | |
__hostdev__ const BlindDataT * | getBlindData (uint32_t n) const |
template<typename BlindDataT > | |
__hostdev__ BlindDataT * | getBlindData (uint32_t n) |
__hostdev__ const GridBlindMetaData & | blindMetaData (uint32_t n) const |
Highest level of the data structure. Contains a tree and a world->index transform (that currently only supports uniform scaling and translation).
using nanovdb::Grid< TreeT >::AccessorType = DefaultReadAccessor<BuildType> |
using nanovdb::Grid< TreeT >::BuildType = typename TreeT::BuildType |
using nanovdb::Grid< TreeT >::CoordType = typename TreeT::CoordType |
using nanovdb::Grid< TreeT >::DataType = GridData |
using nanovdb::Grid< TreeT >::LeafNodeType = typename RootType::LeafNodeType |
using nanovdb::Grid< TreeT >::LowerNodeType = typename UpperNodeType::ChildNodeType |
using nanovdb::Grid< TreeT >::RootNodeType = RootType |
using nanovdb::Grid< TreeT >::RootType = typename TreeT::RootType |
using nanovdb::Grid< TreeT >::TreeType = TreeT |
using nanovdb::Grid< TreeT >::UpperNodeType = typename RootNodeType::ChildNodeType |
using nanovdb::Grid< TreeT >::ValueType = typename TreeT::ValueType |
|
delete |
Disallow constructions, copy and assignment.
|
delete |
|
inline |
Computes a AABB of active values in world space.
Computes a AABB of active values in index space
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
__hostdev__ int nanovdb::Grid< TreeT >::findBlindData | ( | const char * | name | ) | const |
__hostdev__ int nanovdb::Grid< TreeT >::findBlindDataForSemantic | ( | GridBlindDataSemantic | semantic | ) | const |
|
inline |
Return a new instance of a ReadAccessor used to access values in this grid.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
delete |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Return the total number of values indexed by this IndexGrid.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |