OpenVDB
3.2.0
|
This is a simple convenience class that allows for sampling from a source grid into the index space of a target grid. At construction the source and target grids are checked for alignment which potentially renders interpolation unnecessary. Else interpolation is performed according to the templated Sampler type. More...
#include <Interpolation.h>
Public Types | |
typedef GridOrTreeT::ValueType | ValueType |
typedef TreeAdapter< GridOrTreeT >::GridType | GridType |
typedef TreeAdapter< GridOrTreeT >::TreeType | TreeType |
typedef TreeAdapter< GridType >::AccessorType | AccessorType |
Public Member Functions | |
DualGridSampler (const GridType &sourceGrid, const math::Transform &targetXform) | |
Grid and transform constructor. More... | |
DualGridSampler (const TreeType &sourceTree, const math::Transform &sourceXform, const math::Transform &targetXform) | |
Tree and transform constructor. More... | |
ValueType | operator() (const Coord &ijk) const |
Return the value of the source grid at the index coordinates, ijk, relative to the target grid (or its tranform). More... | |
bool | isAligned () const |
Return true if the two grids are aligned. More... | |
This is a simple convenience class that allows for sampling from a source grid into the index space of a target grid. At construction the source and target grids are checked for alignment which potentially renders interpolation unnecessary. Else interpolation is performed according to the templated Sampler type.
typedef TreeAdapter<GridType>::AccessorType AccessorType |
typedef TreeAdapter<GridOrTreeT>::GridType GridType |
typedef TreeAdapter<GridOrTreeT>::TreeType TreeType |
typedef GridOrTreeT::ValueType ValueType |
|
inline |
Grid and transform constructor.
sourceGrid | Source grid. |
targetXform | Transform of the target grid. |
|
inline |
Tree and transform constructor.
sourceTree | Source tree. |
sourceXform | Transform of the source grid. |
targetXform | Transform of the target grid. |
|
inline |
Return true if the two grids are aligned.
|
inline |
Return the value of the source grid at the index coordinates, ijk, relative to the target grid (or its tranform).