OMC::Transformation Class Reference

Detailed Description

Provides a transformation object that can contain transformation, depth and deformation data.

Public Member Functions

virtual void reset ()
 Reset the transformation to its default values.
 
void multiply (const OMC::Matrix *matrix)
 Compounds this matrix with m, same as = (*this) * m. The matrix object is modified in place.
 
void translate (const OMC::Vector3d *vector)
 Translates the local coordinate system represented by this tranformation matrix by the given vector. The matrix object is modified in place.
 
virtual void translate (double deltaX=0.0, double deltaY=0.0, double deltaZ=0.0)
 Translates the local coordinate system represented by this tranformation matrix by the given vector. The matrix object is modified in place.
 
virtual void scale (double scaleX=1.0, double scaleY=1.0, double scaleZ=1.0)
 Scales the local coordinate system represented by this tranformation matrix by the given factors. The matrix object is modified in place.
 
void rotate_radians (double rads, const OMC::Vector3d *vector)
 Rotates the local coordinate system represented by this tranformation matrix by the given angle (expressed in radian) around the given vector. The matrix object is modified in place.
 
void rotate_degrees (double degs, const OMC::Vector3d *vector)
 Rotates the local coordinate system represented by this tranformation matrix by the given angle (expressed in degree) around the given vector. The matrix object is modified in place.
 
virtual void skew (double skew)
 Skews the local coordinate system represented by this tranformation matrix by the given angle (expressed in degree). The matrix object is modified in place.
 
void add (const OMC::Matrix *matrix)
 Add to the matrix of the transformation.
 
void set (const OMC::Matrix *matrix)
 Set the matrix of the transformation.
 
void deformation_reset ()
 Reset the transformation so that no deformation is present, but transformations are retained.
 
OMC::Matrixmatrix_with_deformation ()
 Returns the transformation matrix with the deformation's final transformation applied.
 
virtual OMC::Matrixmatrix_inversed ()
 Returns the inverted transformation matrix, if possible.
 

Public Attributes

int depth
 The transformation depth, used when compositing in layered space, as opposed to the transformation space.
 
bool valid
 Identifies if the transformation has been set and is valid.
 
OMC::Matrixmatrix
 Get and set the transformation matrix.
 
bool deformation_valid
 Identifies if the transformation has valid deformations applied.
 
OMC::Point3dorigin
 Get the transformation matrix' origin.
 
Inheritance diagram for OMC::Transformation:
Collaboration diagram for OMC::Transformation: