Defines the transformation to be applied at one point in time of an Animation. More...
#include <STransformation.h>
Public Member Functions | |
STransformation () | |
Creates a new transformation with alpha = 1 and the identity matrix. | |
IMatrix * | GetMatrix () OVERRIDE |
Gets the matrix representing the transformation. | |
BYTE | GetAlpha () SCONST OVERRIDE |
Gets the degree of transparency. | |
void | SetAlpha (BYTE alpha) OVERRIDE |
Sets the degree of transparency. | |
void | Compose (const ITransformation *t) OVERRIDE |
Composes this transformation with another transformation. | |
void | Clear () OVERRIDE |
Clears the transformation to the identity matrix and alpha to 1. | |
void | SetTransformationType (int type) OVERRIDE |
Sets the type of transformation. | |
int | getTransformationType () const |
Indicates the nature of this transformation. | |
void | set (STransformation t) |
Clones the specified transformation. | |
void | compose (const STransformation &t) |
Applies this STransformation to an existing STransformation. | |
void | postCompose (STransformation t) |
Composes this transformation with another transformation using postConcat. | |
const SMatrix & | getMatrix () const |
Gets the 3x3 matrix representing the transformation. | |
SMatrix & | getMatrix () |
Gets the 3x3 matrix representing the transformation. | |
void | setMatrix (const SMatrix &mtx) |
Sets the matrix representing the transformation. | |
void | updateMatrixType () |
Updates the transformation type based on the current matrix and alpha. | |
bool | hasAlpha () const |
Checks if the transformation affects the alpha property. | |
bool | hasMatrix () const |
Checks if the transformation affects the matrix property. | |
bool | isIdentity () const |
Checks if the transformation is the identity transformation. | |
Protected Attributes | |
SMatrix | mMatrix |
The 3x3 matrix representing the transformation. | |
BYTE | mAlpha |
The degree of transparency (255 means fully opaque, 0 means fully transparent). | |
int | mTransformationType |
Indicates the nature of this transformation. | |
Defines the transformation to be applied at one point in time of an Animation.
Definition at line 14 of file STransformation.h.
STransformation::STransformation | ( | ) |
Creates a new transformation with alpha = 1 and the identity matrix.
Definition at line 116 of file STransformation.cpp.
void STransformation::Clear | ( | ) |
Clears the transformation to the identity matrix and alpha to 1.
Definition at line 109 of file STransformation.cpp.
void STransformation::Compose | ( | const ITransformation * | t | ) |
Composes this transformation with another transformation.
t | Pointer to the transformation to compose with. |
Definition at line 71 of file STransformation.cpp.
void STransformation::compose | ( | const STransformation & | t | ) |
Applies this STransformation to an existing STransformation.
t | The transformation to compose with. |
Definition at line 77 of file STransformation.cpp.
BYTE STransformation::GetAlpha | ( | ) |
Gets the degree of transparency.
Definition at line 22 of file STransformation.cpp.
IMatrix * STransformation::GetMatrix | ( | ) |
Gets the matrix representing the transformation.
Definition at line 121 of file STransformation.cpp.
SMatrix & STransformation::getMatrix | ( | ) |
Gets the 3x3 matrix representing the transformation.
Definition at line 47 of file STransformation.cpp.
const SMatrix & STransformation::getMatrix | ( | ) | const |
Gets the 3x3 matrix representing the transformation.
Definition at line 52 of file STransformation.cpp.
int STransformation::getTransformationType | ( | ) | const |
Indicates the nature of this transformation.
TYPE_ALPHA
, TYPE_MATRIX
, TYPE_BOTH
, or TYPE_IDENTITY
. Definition at line 104 of file STransformation.cpp.
bool STransformation::hasAlpha | ( | ) | const |
Checks if the transformation affects the alpha property.
Definition at line 17 of file STransformation.cpp.
bool STransformation::hasMatrix | ( | ) | const |
Checks if the transformation affects the matrix property.
Definition at line 12 of file STransformation.cpp.
SNSBEGIN bool STransformation::isIdentity | ( | ) | const |
Checks if the transformation is the identity transformation.
Definition at line 7 of file STransformation.cpp.
void STransformation::postCompose | ( | STransformation | t | ) |
Composes this transformation with another transformation using postConcat.
t | The transformation to compose with. @hide |
Definition at line 57 of file STransformation.cpp.
void STransformation::set | ( | STransformation | t | ) |
Clones the specified transformation.
t | The transformation to clone. |
Definition at line 91 of file STransformation.cpp.
void STransformation::SetAlpha | ( | BYTE | alpha | ) |
Sets the degree of transparency.
alpha | The alpha value (255 means fully opaque, 0 means fully transparent). |
Definition at line 35 of file STransformation.cpp.
void STransformation::setMatrix | ( | const SMatrix & | mtx | ) |
Sets the matrix representing the transformation.
mtx | The matrix to set. |
Definition at line 41 of file STransformation.cpp.
void STransformation::SetTransformationType | ( | int | type | ) |
Sets the type of transformation.
type | The type of transformation. |
Definition at line 99 of file STransformation.cpp.
void STransformation::updateMatrixType | ( | ) |
Updates the transformation type based on the current matrix and alpha.
Definition at line 27 of file STransformation.cpp.
|
protected |
The degree of transparency (255 means fully opaque, 0 means fully transparent).
Definition at line 23 of file STransformation.h.
|
protected |
The 3x3 matrix representing the transformation.
Definition at line 22 of file STransformation.h.
|
protected |
Indicates the nature of this transformation.
Definition at line 24 of file STransformation.h.