|
Public Methods |
double | GetValue (int col, int row) const |
void | SetValue (int col, int row, double value) |
wxTransformMatrix & | operator *= (const double &t) |
| multiply every element by t
|
wxTransformMatrix & | operator/= (const double &t) |
| divide every element by t
|
wxTransformMatrix & | operator+= (const wxTransformMatrix &m) |
| add matrix m to this t
|
wxTransformMatrix & | operator-= (const wxTransformMatrix &m) |
| subtract matrix m from this
|
wxTransformMatrix & | operator *= (const wxTransformMatrix &m) |
| multiply matrix m with this
|
wxTransformMatrix | operator * (const double &t) const |
| constant operatorsmultiply every element by t and return result
|
wxTransformMatrix | operator/ (const double &t) const |
| divide this matrix by t and return result
|
wxTransformMatrix | operator+ (const wxTransformMatrix &m) const |
| add matrix m to this and return result
|
wxTransformMatrix | operator- (const wxTransformMatrix &m) const |
| subtract matrix m from this and return result
|
wxTransformMatrix | operator * (const wxTransformMatrix &m) const |
| multiply this by matrix m and return result
|
double & | operator() (int col, int row) |
double | operator() (int col, int row) const |
bool | Invert (void) |
| Invert matrix.
|
bool | Identity (void) |
| Make into identity matrix.
|
bool | IsIdentity (void) const |
bool | IsIdentity1 (void) const |
| This does an actual check.
|
bool | Scale (double scale) |
| Scale by scale (isotropic scaling i.e. the same in x and y):.
|
wxTransformMatrix & | Scale (const double &xs, const double &ys, const double &xc, const double &yc) |
wxTransformMatrix & | Mirror (bool x=true, bool y=false) |
| mirror a matrix in x, y
|
bool | Translate (double x, double y) |
| Translate by dx, dy:.
|
bool | Rotate (double angle) |
| Rotate clockwise by the given number of degrees:.
|
wxTransformMatrix & | Rotate (const double &r, const double &x, const double &y) |
double | TransformX (double x) const |
| Transform X value from logical to device.
|
double | TransformY (double y) const |
| Transform Y value from logical to device.
|
bool | TransformPoint (double x, double y, double &tx, double &ty) const |
| Transform a point from logical to device coordinates.
|
bool | InverseTransformPoint (double x, double y, double &tx, double &ty) const |
| Transform a point from device to logical coordinates.
|
class some day.
A 3x3 matrix to do 2D transformations. It can be used to map data to window coordinates. But also for manipulating your own data. For example drawing a picture (composed of several primitives) at a certain coordinate and angle within another parent picture. At all times m_isIdentity is set if the matrix itself is an Identity matrix. It is used where possible to optimize calculations.