OpenVDB  12.0.0
Public Member Functions | List of all members
ABTransform Class Reference

This class implements the Transformer functor interface (specifically, the isAffine(), transform() and invTransform() methods) for a transform that maps an A grid into a B grid's index space such that, after resampling, A's index space and transform match B's index space and transform. More...

#include <openvdb/tools/GridTransformer.h>

Public Member Functions

 ABTransform (const math::Transform &aXform, const math::Transform &bXform)
 
bool isAffine () const
 
bool isIdentity () const
 
openvdb::Vec3R transform (const openvdb::Vec3R &pos) const
 
openvdb::Vec3R invTransform (const openvdb::Vec3R &pos) const
 
const math::TransformgetA () const
 
const math::TransformgetB () const
 

Detailed Description

This class implements the Transformer functor interface (specifically, the isAffine(), transform() and invTransform() methods) for a transform that maps an A grid into a B grid's index space such that, after resampling, A's index space and transform match B's index space and transform.

Constructor & Destructor Documentation

ABTransform ( const math::Transform aXform,
const math::Transform bXform 
)
inline
Parameters
aXformthe A grid's transform
bXformthe B grid's transform

Member Function Documentation

const math::Transform& getA ( ) const
inline
const math::Transform& getB ( ) const
inline
openvdb::Vec3R invTransform ( const openvdb::Vec3R pos) const
inline
bool isAffine ( ) const
inline
bool isIdentity ( ) const
inline
openvdb::Vec3R transform ( const openvdb::Vec3R pos) const
inline