#include <openvdb/tools/GridTransformer.h>
A GridResampler applies a geometric transformation to an input grid using one of several sampling schemes, and stores the result in an output grid.
Usage:
where xform
is a functor that implements the following methods:
bool isAffine() const
Vec3< double > Vec3d
Definition Vec3.h:665
Definition Exceptions.h:13
- Note
- When the transform is affine and can be expressed as a 4 x 4 matrix, a GridTransformer is much more efficient than a GridResampler.
◆ InterruptFunc
◆ Ptr
◆ GridResampler() [1/2]
◆ ~GridResampler()
◆ GridResampler() [2/2]
◆ applyTransform()
template<class
Sampler, class GridT, typename Transformer>
void applyTransform |
( |
const Transformer & | xform, |
|
|
const GridT & | inGrid, |
|
|
GridT & | outGrid ) const |
|
protected |
◆ interrupt()
◆ operator=()
◆ setInterrupter()
template<typename InterrupterType>
void setInterrupter |
( |
InterrupterType & | interrupter | ) |
|
Allow processing to be aborted by providing an interrupter object. The interrupter will be queried periodically during processing.
- See also
- util/NullInterrupter.h for interrupter interface requirements.
◆ setThreaded()
void setThreaded |
( |
bool | b | ) |
|
|
inline |
Enable or disable threading. (Threading is enabled by default.)
◆ setTransformTiles()
void setTransformTiles |
( |
bool | b | ) |
|
|
inline |
Enable or disable processing of tiles. (Enabled by default, except for level set grids.)
◆ threaded()
Return true
if threading is enabled.
◆ transformGrid()
template<typename
Sampler, typename GridT, typename Transformer>
void transformGrid |
( |
const Transformer & | xform, |
|
|
const GridT & | inGrid, |
|
|
GridT & | outGrid ) const |
◆ transformTiles()
bool transformTiles |
( |
| ) |
const |
|
inline |
Return true
if tile processing is enabled.