iPlug2 - C++ Audio Plug-in Framework
|
Used to store transformation matrices. More...
#include <IGraphicsStructs.h>
Public Member Functions | |
IMatrix (double xx, double yx, double xy, double yy, double tx, double ty) | |
Create an IMatrix, specifying the values. More... | |
IMatrix () | |
Create an identity matrix. | |
IMatrix & | Translate (float x, float y) |
Set the matrix for a translation transform. More... | |
IMatrix & | Scale (float x, float y) |
Set the matrix for a scale transform. More... | |
IMatrix & | Rotate (float a) |
Set the matrix for a rotation transform. More... | |
IMatrix & | Skew (float xa, float ya) |
Set the matrix for a skew transform. More... | |
void | TransformPoint (double &x, double &y, double x0, double y0) const |
Transforms the point x, y. More... | |
void | TransformPoint (double &x, double &y) const |
Transforms the point x, y with the matrix. More... | |
IMatrix & | Transform (const IRECT &before, const IRECT &after) |
IMatrix & | Transform (const IMatrix &m) |
Transform this matrix with another. More... | |
IMatrix & | Invert () |
Changes the matrix to be the inverse of its original value. More... | |
Public Attributes | |
double | mXX |
double | mYX |
double | mXY |
double | mYY |
double | mTX |
double | mTY |
Used to store transformation matrices.
Definition at line 1996 of file IGraphicsStructs.h.
|
inline |
Create an IMatrix, specifying the values.
xx | xx component of the affine transformation |
yx | yx component of the affine transformation |
xy | xy component of the affine transformation |
yy | yy component of the affine transformation |
tx | X translation component of the affine transformation |
ty | Y translation component of the affine transformation |
Definition at line 2005 of file IGraphicsStructs.h.
|
inline |
Changes the matrix to be the inverse of its original value.
Definition at line 2104 of file IGraphicsStructs.h.
Referenced by IGraphicsCanvas::PathFill().
|
inline |
Set the matrix for a rotation transform.
a | The angle of rotation in degrees |
Definition at line 2034 of file IGraphicsStructs.h.
Referenced by IGraphics::CalculateTextRotation().
|
inline |
Set the matrix for a scale transform.
x | The scale for x |
y | The scale for y |
Definition at line 2026 of file IGraphicsStructs.h.
Referenced by IGraphicsCanvas::DoDrawText().
|
inline |
Set the matrix for a skew transform.
xa | The angle to skew x coordinates in degrees |
ya | The angle to skew y coordinates in degrees |
Definition at line 2047 of file IGraphicsStructs.h.
before |
Definition at line 2075 of file IGraphicsStructs.h.
References IRECT::H(), IRECT::L, IRECT::T, and IRECT::W().
Referenced by IGraphicsCanvas::DoDrawText().
Transform this matrix with another.
m | The matrix with which to transform this one |
Definition at line 2088 of file IGraphicsStructs.h.
|
inline |
Transforms the point x, y.
x | The x coordinate to transform |
y | The y coordinate to transform |
x0 |
Definition at line 2057 of file IGraphicsStructs.h.
Referenced by IGraphics::CalculateTextRotation(), and IGraphicsCanvas::PathFill().
|
inline |
Transforms the point x, y with the matrix.
x | The x coordinate to transform |
y | The y coordinate to transform |
Definition at line 2066 of file IGraphicsStructs.h.
|
inline |
Set the matrix for a translation transform.
x | The translation for x values |
y | The translation for y values |
Definition at line 2017 of file IGraphicsStructs.h.
Referenced by IGraphicsCanvas::DoDrawText().