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.
|
| |
| Grid & | operator= (const Grid &)=delete |
| |
| | ~Grid ()=delete |
| |
| Version | version () const |
| |
| DataType * | data () |
| |
| const DataType * | data () const |
| |
| uint64_t | gridSize () const |
| | Return the memory footprint of the entire grid, i.e. including all nodes and blind data.
|
| |
| uint32_t | gridIndex () const |
| | Return index of this grid in the buffer.
|
| |
| uint32_t | gridCount () const |
| | Return total number of grids in the buffer.
|
| |
| template<typename T = BuildType> |
| enable_if< is_same< T, ValueIndex >::value, uint64_t >::type | valueCount () const |
| | Return the total number of values indexed by this IndexGrid.
|
| |
| const TreeT & | tree () const |
| | Return a const reference to the tree.
|
| |
| TreeT & | tree () |
| | Return a non-const reference to the tree.
|
| |
| AccessorType | getAccessor () const |
| | Return a new instance of a ReadAccessor used to access values in this grid.
|
| |
| const Vec3R & | voxelSize () const |
| | Return a const reference to the size of a voxel in world units.
|
| |
| const Map & | map () const |
| | Return a const reference to the Map for this grid.
|
| |
| template<typename Vec3T > |
| Vec3T | worldToIndex (const Vec3T &xyz) const |
| | world to index space transformation
|
| |
| template<typename Vec3T > |
| Vec3T | indexToWorld (const Vec3T &xyz) const |
| | index to world space transformation
|
| |
| template<typename Vec3T > |
| Vec3T | indexToWorldDir (const Vec3T &dir) const |
| | transformation from index space direction to world space direction
|
| |
| template<typename Vec3T > |
| Vec3T | worldToIndexDir (const Vec3T &dir) const |
| | transformation from world space direction to index space direction
|
| |
| template<typename Vec3T > |
| Vec3T | indexToWorldGrad (const Vec3T &grad) const |
| | transform the gradient from index space to world space.
|
| |
| template<typename Vec3T > |
| Vec3T | worldToIndexF (const Vec3T &xyz) const |
| | world to index space transformation
|
| |
| template<typename Vec3T > |
| Vec3T | indexToWorldF (const Vec3T &xyz) const |
| | index to world space transformation
|
| |
| template<typename Vec3T > |
| Vec3T | indexToWorldDirF (const Vec3T &dir) const |
| | transformation from index space direction to world space direction
|
| |
| template<typename Vec3T > |
| Vec3T | worldToIndexDirF (const Vec3T &dir) const |
| | transformation from world space direction to index space direction
|
| |
| template<typename Vec3T > |
| Vec3T | indexToWorldGradF (const Vec3T &grad) const |
| | Transforms the gradient from index space to world space.
|
| |
| const BBox< Vec3R > & | worldBBox () const |
| | Computes a AABB of active values in world space.
|
| |
| const BBox< CoordType > & | indexBBox () const |
| | Computes a AABB of active values in index space.
|
| |
| uint64_t | activeVoxelCount () const |
| | Return the total number of active voxels in this tree.
|
| |
| bool | isValid () const |
| | Methods related to the classification of this grid.
|
| |
| const GridType & | gridType () const |
| |
| const GridClass & | gridClass () const |
| |
| bool | isLevelSet () const |
| |
| bool | isFogVolume () const |
| |
| bool | isStaggered () const |
| |
| bool | isPointIndex () const |
| |
| bool | isGridIndex () const |
| |
| bool | isPointData () const |
| |
| bool | isMask () const |
| |
| bool | isUnknown () const |
| |
| bool | hasMinMax () const |
| |
| bool | hasBBox () const |
| |
| bool | hasLongGridName () const |
| |
| bool | hasAverage () const |
| |
| bool | hasStdDeviation () const |
| |
| bool | isBreadthFirst () const |
| |
| template<typename NodeT > |
| 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.
|
| |
| template<int LEVEL> |
| 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.
|
| |
| const char * | gridName () const |
| | Return a c-string with the name of this grid.
|
| |
| const char * | shortGridName () const |
| | Return a c-string with the name of this grid, truncated to 255 characters.
|
| |
| uint64_t | checksum () const |
| | Return checksum of the grid buffer.
|
| |
| bool | isEmpty () const |
| | Return true if this grid is empty, i.e. contains no values or nodes.
|
| |
| uint32_t | blindDataCount () const |
| | Return the count of blind-data encoded in this grid.
|
| |
| int | findBlindDataForSemantic (GridBlindDataSemantic semantic) const |
| | Return the index of the blind data with specified semantic if found, otherwise -1.
|
| |
| const void * | blindData (uint32_t n) const |
| | Returns a const pointer to the blindData at the specified linear offset.
|
| |
| const GridBlindMetaData & | blindMetaData (uint32_t n) const |
| |
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