|
HDK
|
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 | |
| using | ValueType = typename GridOrTreeT::ValueType |
| using | GridType = typename TreeAdapter< GridOrTreeT >::GridType |
| using | TreeType = typename TreeAdapter< GridOrTreeT >::TreeType |
| using | AccessorType = typename TreeAdapter< GridType >::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.
Definition at line 446 of file Interpolation.h.
| using openvdb::OPENVDB_VERSION_NAME::tools::DualGridSampler< GridOrTreeT, SamplerT >::AccessorType = typename TreeAdapter<GridType>::AccessorType |
Definition at line 452 of file Interpolation.h.
| using openvdb::OPENVDB_VERSION_NAME::tools::DualGridSampler< GridOrTreeT, SamplerT >::GridType = typename TreeAdapter<GridOrTreeT>::GridType |
Definition at line 450 of file Interpolation.h.
| using openvdb::OPENVDB_VERSION_NAME::tools::DualGridSampler< GridOrTreeT, SamplerT >::TreeType = typename TreeAdapter<GridOrTreeT>::TreeType |
Definition at line 451 of file Interpolation.h.
| using openvdb::OPENVDB_VERSION_NAME::tools::DualGridSampler< GridOrTreeT, SamplerT >::ValueType = typename GridOrTreeT::ValueType |
Definition at line 449 of file Interpolation.h.
|
inline |
Grid and transform constructor.
| sourceGrid | Source grid. |
| targetXform | Transform of the target grid. |
Definition at line 457 of file Interpolation.h.
|
inline |
Tree and transform constructor.
| sourceTree | Source tree. |
| sourceXform | Transform of the source grid. |
| targetXform | Transform of the target grid. |
Definition at line 469 of file Interpolation.h.
|
inline |
Return true if the two grids are aligned.
Definition at line 487 of file Interpolation.h.
|
inline |
Return the value of the source grid at the index coordinates, ijk, relative to the target grid (or its tranform).
Definition at line 480 of file Interpolation.h.