#include <Transform.h>
Inheritance diagram for Transform:
Public Member Functions | |
Transform () | |
Transform (const Matrix4 &src) | |
virtual | ~Transform () |
virtual Transform * | clone (void) const |
void | rotateX (float a) |
void | rotateY (float a) |
void | rotateZ (float a) |
void | rotate (float a, const Vector3 &axis) |
void | translate (float x, float y, float z) |
void | scale (float s) |
void | scale (float sx, float sy, float sz) |
void | scale (const Vector3 &s) |
void | transform (const Matrix4 &mat) |
void | setIdentity (void) |
Matrix4 & | get (void) |
const Matrix4 & | get (void) const |
const Matrix3 * | getRotation (void) |
const Vector3 * | getTranslation (void) |
const Vector3 * | getScale (void) |
Protected Member Functions | |
virtual void | _duplicate_attributes (const Transform &) |
Protected Attributes | |
Matrix4 | _mat |
homogenous transformation matrix | |
Matrix3 | _rotMat |
abbrev. for rotation component of _mat | |
Vector3 | _trVec |
abbrev. for translation component of _mat | |
Vector3 | _scVec |
abbrev. for scale component of _mat | |
bool | _haveAbbrev |
NOTE: This attribute should not be shared by more objects directly but rather used inside a Group object that transforms all its children.
Definition at line 21 of file Transform.h.
|
Contructor Definition at line 35 of file Transform.h. |
|
Contructor - copy from existing matrix Definition at line 40 of file Transform.h. |
|
Destructor Definition at line 45 of file Transform.h. |
|
Definition at line 5 of file Transform.cc. References Transform::_haveAbbrev, Transform::_mat, Transform::_rotMat, Transform::_scVec, and Transform::_trVec. Referenced by Transform::clone(). |
|
Makes a duplicate (clone)
Definition at line 16 of file Transform.cc. References Transform::_duplicate_attributes(). |
|
Definition at line 135 of file Transform.h. |
|
Definition at line 130 of file Transform.h. Referenced by ShadowExplorer::_explore(), RayIntExplorer::_explore(), ObjsAheadExplorer::_explore(), and Explorer::_explore(). |
|
Definition at line 140 of file Transform.h. Referenced by ShadowExplorer::_explore(), RayIntExplorer::_explore(), and ObjsAheadExplorer::_explore(). |
|
Definition at line 162 of file Transform.h. Referenced by ShadowExplorer::_explore(), RayIntExplorer::_explore(), and ObjsAheadExplorer::_explore(). |
|
Definition at line 151 of file Transform.h. Referenced by ShadowExplorer::_explore(), RayIntExplorer::_explore(), and ObjsAheadExplorer::_explore(). |
|
Adds rotation to existing transformation
Definition at line 47 of file Transform.cc. References Transform::_haveAbbrev, and Transform::_mat. |
|
Adds rotation around x axis to existing transformation
Definition at line 23 of file Transform.cc. References Transform::_haveAbbrev, and Transform::_mat. |
|
Adds rotation around y axis to existing transformation
Definition at line 31 of file Transform.cc. References Transform::_haveAbbrev, and Transform::_mat. |
|
Adds rotation around z axis to existing transformation
Definition at line 39 of file Transform.cc. References Transform::_haveAbbrev, and Transform::_mat. |
|
Adds non-uniform scale transformation to existing transformation
Definition at line 82 of file Transform.cc. References Transform::_haveAbbrev, and Transform::_mat. |
|
Adds non-uniform scale transformation to existing transformation
Definition at line 71 of file Transform.cc. References Transform::_haveAbbrev, and Transform::_mat. |
|
Adds scale transformation to existing transformation
Definition at line 63 of file Transform.cc. References Transform::_haveAbbrev, and Transform::_mat. |
|
Clears transformation matrix |
|
Adds transformation to existing transformation
Definition at line 93 of file Transform.cc. References Transform::_haveAbbrev, and Transform::_mat. |
|
Adds translation to existing transformation
Definition at line 55 of file Transform.cc. References Transform::_haveAbbrev, and Transform::_mat. |
|
Definition at line 27 of file Transform.h. Referenced by Transform::_duplicate_attributes(), Transform::rotate(), Transform::rotateX(), Transform::rotateY(), Transform::rotateZ(), Transform::scale(), Transform::transform(), and Transform::translate(). |
|
homogenous transformation matrix
Definition at line 23 of file Transform.h. Referenced by Transform::_duplicate_attributes(), Transform::rotate(), Transform::rotateX(), Transform::rotateY(), Transform::rotateZ(), Transform::scale(), Transform::transform(), and Transform::translate(). |
|
abbrev. for rotation component of _mat
Definition at line 24 of file Transform.h. Referenced by Transform::_duplicate_attributes(). |
|
abbrev. for scale component of _mat
Definition at line 26 of file Transform.h. Referenced by Transform::_duplicate_attributes(). |
|
abbrev. for translation component of _mat
Definition at line 25 of file Transform.h. Referenced by Transform::_duplicate_attributes(). |