#include <qsprojection2d.h>
Inheritance diagram for QSProjection2D:
Public Types | |
typedef double | Matrix [3][3] |
Public Methods | |
QSProjection2D () | |
virtual | ~QSProjection2D () |
double | world2DToCanvasX (double x) const |
double | world2DToCanvasY (double y) const |
double | world2DToCanvasZ (double z) const |
double | canvasXToWorld2D (double x) const |
double | canvasYToWorld2D (double y) const |
double | canvasZToWorld2D (double z) const |
virtual QSPt2f | world2DToCanvas (const QSPt2f &p) const |
virtual QSPt3f | world2DToCanvas3 (const QSPt2f &p) const |
virtual QSPt2f | world3DToCanvas (const QSPt3f &p) const |
virtual QSPt3f | world3DToCanvas3 (const QSPt3f &p) const |
virtual QSPt3f | canvas3ToWorld3D (const QSPt3f &p) const |
virtual QSPt2f | worldTransformation (const Matrix m, const QSPt2f &p) const |
void | setClipRect (double x1, double y1, double x2, double y2) |
void | getClipRect (double *x1, double *y1, double *x2, double *y2) const |
Static Public Methods | |
void | matrixI (Matrix m) |
void | multiply (Matrix A, Matrix B) |
void | copy (Matrix dst, const Matrix src) |
void | applyT (Matrix m, double dx, double dy) |
void | applyS (Matrix m, double sx, double sy) |
void | inv (Matrix result, const Matrix m) |
void | applyViewport (Matrix m, double x, double y, double w, double h) |
Public Attributes | |
Matrix | T |
Matrix | IT |
|
constructor. |
|
destructor. |
|
Apply scaling. |
|
Apply shift ( translate ). |
|
Apply viewport transformation. |
|
Reimplemented. Implements QSProjection. |
|
Maps the X from screen coordinates |
|
Maps the Z from screen coordinates |
|
Maps the Z from screen coordinates |
|
Copies the given matrix : 'dst = src' . |
|
Calculates inversion of 'm'. |
|
Makes 'matrix' a unity matrix. |
|
Matrix multiplication : 'A = B*A' |
|
Reimplemented. Maps the point to the screen coordinates. Implements QSProjection. |
|
Reimplemented. Maps the point to the screen coordinates. Implements QSProjection. |
|
Maps the X to the screen coordinates. |
|
Maps the Y to the screen coordinates. |
|
Maps the Z to the screen coordinates. |
|
Reimplemented. Maps the point to the screen coordinates. Implements QSProjection. |
|
Reimplemented. Maps the point to the screen coordinates. Implements QSProjection. |
|
Reimplemented. Applies transformation 'm' to 'p'. |