|  | 
|  | GridSampler (const AccessorType &acc, const math::Transform &transform) | 
|  | 
| const math::Transform & | transform () const | 
|  | 
| template<typename RealType> | 
| ValueType | sampleVoxel (const RealType &x, const RealType &y, const RealType &z) const | 
|  | Sample a point in index space in the grid. 
 | 
|  | 
| ValueType | sampleVoxel (typename Coord::ValueType i, typename Coord::ValueType j, typename Coord::ValueType k) const | 
|  | Sample value in integer index space. 
 | 
|  | 
| ValueType | isSample (const Coord &ijk) const | 
|  | Sample value in integer index space. 
 | 
|  | 
| ValueType | isSample (const Vec3d &ispoint) const | 
|  | Sample in fractional index space. 
 | 
|  | 
| ValueType | wsSample (const Vec3d &wspoint) const | 
|  | Sample in world space. 
 | 
|  | 
|  | GridSampler (const GridType &grid) | 
|  | 
|  | GridSampler (const TreeType &tree, const math::Transform &transform) | 
|  | 
| const math::Transform & | transform () const | 
|  | 
| ValueType | sampleVoxel (const RealType &x, const RealType &y, const RealType &z) const | 
|  | Sample a point in index space in the grid. 
 | 
|  | 
| ValueType | sampleVoxel (typename Coord::ValueType i, typename Coord::ValueType j, typename Coord::ValueType k) const | 
|  | Sample value in integer index space. 
 | 
|  | 
| ValueType | isSample (const Coord &ijk) const | 
|  | Sample value in integer index space. 
 | 
|  | 
| ValueType | isSample (const Vec3d &ispoint) const | 
|  | Sample in fractional index space. 
 | 
|  | 
| ValueType | wsSample (const Vec3d &wspoint) const | 
|  | Sample in world space. 
 | 
|  | 
template<typename TreeT, typename SamplerType>
class openvdb::v12_0::tools::GridSampler< tree::ValueAccessor< TreeT >, SamplerType >
Specialization of GridSampler for construction from a ValueAccessor type. 
- Note
- This version should normally be favored over the one above that takes a Grid or Tree. The reason is this version uses a ValueAccessor that performs fast (cached) access where the tree-based flavor performs slower (uncached) access.
- Warning
- Since this version stores a pointer to an (externally allocated) value accessor it is not threadsafe. Hence each thread should have its own instance of a GridSampler constructed from a local ValueAccessor. Alternatively the Grid/Tree-based GridSampler is threadsafe, but also slower.