OpenVDB
0.104.0
|
Base class that provides the interface for continuous sampling of values in a grid. More...
#include <Interpolation.h>
Public Types | |
typedef boost::shared_ptr < GridSampler > | Ptr |
typedef TreeOrAccessorType::ValueType | ValueType |
Public Member Functions | |
GridSampler (const TreeOrAccessorType &tree, const math::Transform &transform=math::Transform()) | |
~GridSampler () | |
template<typename RealType > | |
ValueType | sampleVoxel (const RealType &x, const RealType &y, const RealType &z) const |
Sample a point in index space in the grid. More... | |
ValueType | isSample (const Vec3d &ispoint) const |
Sample in index space. More... | |
ValueType | wsSample (const Vec3d &wspoint) const |
Sample in world space. More... | |
Base class that provides the interface for continuous sampling of values in a grid.
Since grids support only discrete voxel sampling, GridSampler must be used to sample arbitrary continuous points in (world or index) space.
typedef boost::shared_ptr<GridSampler> Ptr |
typedef TreeOrAccessorType::ValueType ValueType |
|
inlineexplicit |
tree | a tree to be sampled, or a ValueAccessor for the tree |
transform | is used when sampling world space locations. (by default an identity transform is used) |
|
inline |
Sample in index space.
ispoint | the location in index space |
|
inline |
Sample a point in index space in the grid.
x | x-coordinate of point in index-coordinates of grid |
y | y-coordinate of point in index-coordinates of grid |
z | z-coordinate of point in index-coordinates of grid |
Sample in world space.
wspoint | the location in world space |