GridTransformOp is a functor class for use with GridBase::apply() that samples an input grid into an output grid of the same type through a given affine transform.  
 More...
#include <openvdb_houdini/UT_VDBTools.h>
template<typename Sampler>
class openvdb_houdini::GridTransformOp< Sampler >
GridTransformOp is a functor class for use with GridBase::apply() that samples an input grid into an output grid of the same type through a given affine transform. 
The output grid's transform is unchanged by this operation. 
- See also
- GridResampleOp, GridResampleToMatchOp 
- Example:
- const Grid- & inGrid = ...;  
 -   -   - openvdb::tools::GridTransformer xform(pivot, scale, rotate, ...); -   - virtual GridBase::Ptr copyGridWithNewTree() const =0 - Return a new grid of the same type as this grid whose metadata and transform are deep copies of this ... 
- bool apply(OpT &) const - If this grid resolves to one of the listed grid types, invoke the given functor on the resolved grid. - Definition Grid.h:1803 
- openvdb::GridBase::Ptr GridPtr - Definition Utils.h:35 
- openvdb::GridBase Grid - Definition Utils.h:34 
- openvdb::TypeList< openvdb::BoolGrid, openvdb::FloatGrid, openvdb::DoubleGrid, openvdb::Int32Grid, openvdb::Int64Grid > ScalarGridTypes - Definition Utils.h:317 
◆ GridTransformOp()
template<typename Sampler> 
 
- Parameters
- 
  
    | outGrid | a generic pointer to an output grid of the same type as the grid to be resampled |  | t | a GridTransformerthat defines an affine transform |  
 
- Note
- GridTransformOp makes an internal copy of the GridTransformerand supplies the copy with a default Interrupter that replaces any existing interrupter.
 
 
◆ operator()()
template<typename Sampler> 
template<typename GridType> 
  
  | 
        
          | void operator() | ( | const GridType & | inGrid | ) |  |  | inline |