OpenVDB
9.0.1
|
#include <openvdb/tools/GridTransformer.h>
Inherited by GridTransformer.
Public Types | |
using | Ptr = SharedPtr< GridResampler > |
using | InterruptFunc = std::function< bool(void)> |
Public Member Functions | |
GridResampler () | |
virtual | ~GridResampler () |
GridResampler (const GridResampler &)=default | |
GridResampler & | operator= (const GridResampler &)=default |
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 |
Protected Member Functions | |
template<typename Sampler , typename GridT , typename Transformer > | |
void | applyTransform (const Transformer &, const GridT &inGrid, GridT &outGrid) const |
bool | interrupt () const |
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:
using InterruptFunc = std::function<bool (void)> |
using Ptr = SharedPtr<GridResampler> |
|
inline |
|
inlinevirtual |
|
default |
|
protected |
|
inlineprotected |
|
default |
void setInterrupter | ( | InterrupterType & | interrupter | ) |
Allow processing to be aborted by providing an interrupter object. The interrupter will be queried periodically during processing.
|
inline |
Enable or disable threading. (Threading is enabled by default.)
|
inline |
Enable or disable processing of tiles. (Enabled by default, except for level set grids.)
|
inline |
Return true
if threading is enabled.
void transformGrid | ( | const Transformer & | xform, |
const GridT & | inGrid, | ||
GridT & | outGrid | ||
) | const |
|
inline |
Return true
if tile processing is enabled.