Highest level of the data structure. Contains a tree and a world->index transform (that currently only supports uniform scaling and translation).
More...
|
| 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__ util::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__ util::enable_if< util::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__ const Checksum & | 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 |
|
__hostdev__ void | init (std::initializer_list< GridFlags > list={GridFlags::IsBreadthFirst}, uint64_t gridSize=0u, const Map &map=Map(), GridType gridType=GridType::Unknown, GridClass gridClass=GridClass::Unknown) |
|
__hostdev__ void | setMinMaxOn (bool on=true) |
|
__hostdev__ void | setBBoxOn (bool on=true) |
|
__hostdev__ void | setLongGridNameOn (bool on=true) |
|
__hostdev__ void | setAverageOn (bool on=true) |
|
__hostdev__ void | setStdDeviationOn (bool on=true) |
|
__hostdev__ bool | setGridName (const char *src) |
|
template<typename Vec3T > |
__hostdev__ Vec3T | applyMap (const Vec3T &xyz) const |
|
template<typename Vec3T > |
__hostdev__ Vec3T | applyInverseMap (const Vec3T &xyz) const |
|
template<typename Vec3T > |
__hostdev__ Vec3T | applyJacobian (const Vec3T &xyz) const |
|
template<typename Vec3T > |
__hostdev__ Vec3T | applyInverseJacobian (const Vec3T &xyz) const |
|
template<typename Vec3T > |
__hostdev__ Vec3T | applyIJT (const Vec3T &xyz) const |
|
template<typename Vec3T > |
__hostdev__ Vec3T | applyMapF (const Vec3T &xyz) const |
|
template<typename Vec3T > |
__hostdev__ Vec3T | applyInverseMapF (const Vec3T &xyz) const |
|
template<typename Vec3T > |
__hostdev__ Vec3T | applyJacobianF (const Vec3T &xyz) const |
|
template<typename Vec3T > |
__hostdev__ Vec3T | applyInverseJacobianF (const Vec3T &xyz) const |
|
template<typename Vec3T > |
__hostdev__ Vec3T | applyIJTF (const Vec3T &xyz) const |
|
__hostdev__ void * | treePtr () |
|
__hostdev__ const void * | treePtr () const |
|
template<uint32_t LEVEL> |
__hostdev__ const void * | nodePtr () const |
| Return a non-const void pointer to the first node at LEVEL . More...
|
|
template<uint32_t LEVEL> |
__hostdev__ void * | nodePtr () |
| Return a non-const void pointer to the first node at LEVEL . More...
|
|
template<uint32_t LEVEL> |
__hostdev__ uint32_t | nodeCount () const |
| Return number of nodes at LEVEL . More...
|
|
__hostdev__ const Vec3dBBox & | worldBBox () const |
| return AABB of active values in world space More...
|
|
__hostdev__ const CoordBBox & | indexBBox () const |
| return AABB of active values in index space More...
|
|
__hostdev__ uint32_t | rootTableSize () const |
| return the root table has size More...
|
|
__hostdev__ bool | isEmpty () const |
| test if the grid is empty, e.i the root table has size 0 More...
|
|
__hostdev__ bool | isRootConnected () const |
| return true if RootData follows TreeData in memory without any extra padding More...
|
|
template<typename TreeT>
class nanovdb::Grid< TreeT >
Highest level of the data structure. Contains a tree and a world->index transform (that currently only supports uniform scaling and translation).
- Note
- This the API of this class to interface with client code