OpenVDB 10.0.1
|
Simple dense grid class. More...
#include <nanovdb/examples/benchmark/DenseGrid.h>
Public Types | |
using | ValueType = ValueT |
Public Member Functions | |
__hostdev__ | DenseGrid (const DenseGrid &)=delete |
__hostdev__ | ~DenseGrid ()=delete |
__hostdev__ DenseGrid & | operator= (const DenseGrid &)=delete |
__hostdev__ uint64_t | size () const |
__hostdev__ uint64_t | coordToOffset (const Coord &ijk) const |
__hostdev__ bool | test (const Coord &ijk) const |
__hostdev__ uint64_t | memUsage () const |
__hostdev__ uint64_t | gridSize () const |
__hostdev__ const Coord & | min () const |
__hostdev__ const Coord & | max () const |
__hostdev__ bool | isValidType () const |
__hostdev__ const Map & | map () const |
Return a const reference to the Map for this grid. | |
__hostdev__ const Vec3R & | voxelSize () const |
template<typename Vec3T > | |
__hostdev__ Vec3T | worldToIndex (const Vec3T &xyz) const |
world to index space transformation | |
template<typename Vec3T > | |
__hostdev__ Vec3T | indexToWorld (const Vec3T &xyz) const |
world to index space transformation | |
template<typename Vec3T > | |
__hostdev__ Vec3T | indexToWorldDir (const Vec3T &dir) const |
transformation from index space direction to world space direction | |
template<typename Vec3T > | |
__hostdev__ Vec3T | worldToIndexDir (const Vec3T &dir) const |
transformation from world space direction to index space direction | |
template<typename Vec3T > | |
__hostdev__ Vec3T | indexToWorldGrad (const Vec3T &grad) const |
transform the gradient from index space to world space. | |
template<typename Vec3T > | |
__hostdev__ Vec3T | worldToIndexF (const Vec3T &xyz) const |
world to index space transformation | |
template<typename Vec3T > | |
__hostdev__ Vec3T | indexToWorldF (const Vec3T &xyz) const |
index to world space transformation | |
template<typename Vec3T > | |
__hostdev__ Vec3T | indexToWorldDirF (const Vec3T &dir) const |
transformation from index space direction to world space direction | |
template<typename Vec3T > | |
__hostdev__ Vec3T | worldToIndexDirF (const Vec3T &dir) const |
transformation from world space direction to index space direction | |
template<typename Vec3T > | |
__hostdev__ Vec3T | indexToWorldGradF (const Vec3T &grad) const |
Transforms the gradient from index space to world space. | |
__hostdev__ const BBox< Vec3R > & | worldBBox () const |
Computes a AABB of active values in world space. | |
__hostdev__ bool | isLevelSet () const |
__hostdev__ bool | isFogVolume () const |
__hostdev__ const CoordBBox & | indexBBox () const |
Computes a AABB of active values in index space. | |
__hostdev__ const GridType & | gridType () const |
__hostdev__ const GridClass & | gridClass () const |
__hostdev__ DenseData * | data () |
__hostdev__ const DenseData * | data () const |
__hostdev__ ValueT * | values () |
__hostdev__ const ValueT * | values () const |
__hostdev__ const ValueT & | getValue (const Coord &ijk) const |
__hostdev__ void | setValue (const Coord &ijk, const ValueT &v) |
Static Public Member Functions | |
template<typename BufferT = HostBuffer> | |
static DenseGridHandle< BufferT > | create (Coord min, Coord max, double dx=1.0, const Vec3d &p0=Vec3d(0.0), GridClass gridClass=GridClass::Unknown, const BufferT &allocator=BufferT()) |
Simple dense grid class.
|
delete |
|
delete |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Computes a AABB of active values in index space.
|
inline |
world to index space transformation
|
inline |
transformation from index space direction to world space direction
|
inline |
transformation from index space direction to world space direction
|
inline |
index to world space transformation
|
inline |
transform the gradient from index space to world space.
Applies the inverse jacobian transform map.
|
inline |
Transforms the gradient from index space to world space.
Applies the inverse jacobian transform map.
|
inline |
|
inline |
|
inline |
Return a const reference to the Map for this grid.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Computes a AABB of active values in world space.
|
inline |
world to index space transformation
|
inline |
transformation from world space direction to index space direction
|
inline |
transformation from world space direction to index space direction
|
inline |
world to index space transformation