A GridTransformer applies a geometric transformation to an input grid using one of several sampling schemes, and stores the result in an output grid.
More...
#include <GridTransformer.h>
Inherits GridResampler.
|
| | GridTransformer (const Mat4R &xform) |
| |
| | GridTransformer (const Vec3R &pivot, const Vec3R &scale, const Vec3R &rotate, const Vec3R &translate, const std::string &xformOrder="tsr", const std::string &rotationOrder="zyx") |
| |
| | ~GridTransformer () override=default |
| |
| | GridTransformer (const GridTransformer &)=default |
| |
| GridTransformer & | operator= (const GridTransformer &)=default |
| |
| const Mat4R & | getTransform () const |
| |
| template<class Sampler , class GridT > |
| void | transformGrid (const GridT &inGrid, GridT &outGrid) const |
| |
| void | setThreaded (bool b) |
| | Enable or disable threading. (Threading is enabled by default.) More...
|
| |
| bool | threaded () const |
| | Return true if threading is enabled. More...
|
| |
| void | setTransformTiles (bool b) |
| | Enable or disable processing of tiles. (Enabled by default, except for level set grids.) More...
|
| |
| bool | transformTiles () const |
| | Return true if tile processing is enabled. More...
|
| |
| template<typename InterrupterType > |
| void | setInterrupter (InterrupterType &) |
| | Allow processing to be aborted by providing an interrupter object. The interrupter will be queried periodically during processing. More...
|
| |
| template<typename Sampler , typename GridT , typename Transformer > |
| void | transformGrid (const Transformer &, const GridT &inGrid, GridT &outGrid) const |
| |
|
| template<typename Sampler , typename GridT , typename Transformer > |
| void | applyTransform (const Transformer &, const GridT &inGrid, GridT &outGrid) const |
| |
| bool | interrupt () const |
| |
A GridTransformer applies a geometric transformation to an input grid using one of several sampling schemes, and stores the result in an output grid.
- Note
- GridTransformer is optimized for affine transformations.
Usage:
transformer.transformGrid<BoxSampler>(inGrid, outGrid);
or
Vec3R pivot = ...,
scale = ..., rotate = ..., translate = ...;
transformer.transformGrid<QuadraticSampler>(inGrid, outGrid);
◆ InterruptFunc
◆ Ptr
◆ GridTransformer() [1/3]
◆ GridTransformer() [2/3]
| GridTransformer |
( |
const Vec3R & |
pivot, |
|
|
const Vec3R & |
scale, |
|
|
const Vec3R & |
rotate, |
|
|
const Vec3R & |
translate, |
|
|
const std::string & |
xformOrder = "tsr", |
|
|
const std::string & |
rotationOrder = "zyx" |
|
) |
| |
|
inline |
◆ ~GridTransformer()
◆ GridTransformer() [3/3]
◆ applyTransform()
| void applyTransform |
( |
const Transformer & |
xform, |
|
|
const GridT & |
inGrid, |
|
|
GridT & |
outGrid |
|
) |
| const |
|
protectedinherited |
◆ getTransform()
| const Mat4R& getTransform |
( |
| ) |
const |
|
inline |
◆ interrupt()
◆ operator=()
◆ setInterrupter()
| void setInterrupter |
( |
InterrupterType & |
interrupter | ) |
|
|
inherited |
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 | ) |
|
|
inlineinherited |
Enable or disable threading. (Threading is enabled by default.)
◆ setTransformTiles()
| void setTransformTiles |
( |
bool |
b | ) |
|
|
inlineinherited |
Enable or disable processing of tiles. (Enabled by default, except for level set grids.)
◆ threaded()
Return true if threading is enabled.
◆ transformGrid() [1/2]
| void transformGrid |
( |
const Transformer & |
xform, |
|
|
const GridT & |
inGrid, |
|
|
GridT & |
outGrid |
|
) |
| const |
|
inherited |
◆ transformGrid() [2/2]
| void transformGrid |
( |
const GridT & |
inGrid, |
|
|
GridT & |
outGrid |
|
) |
| const |
◆ transformTiles()
| bool transformTiles |
( |
| ) |
const |
|
inlineinherited |
Return true if tile processing is enabled.
The documentation for this class was generated from the following file: