QTransform Class Reference
#include <qtransform.h>
Definition at line 65 of file qtransform.h.
|
| | QTransform (Qt::Initialization) |
| |
| | QTransform () |
| |
| | QTransform (qreal h11, qreal h12, qreal h13, qreal h21, qreal h22, qreal h23, qreal h31, qreal h32, qreal h33=1.0) |
| |
| | QTransform (qreal h11, qreal h12, qreal h21, qreal h22, qreal dx, qreal dy) |
| |
| | QTransform (const QMatrix &mtx) |
| |
| bool | isAffine () const |
| |
| bool | isIdentity () const |
| |
| bool | isInvertible () const |
| |
| bool | isScaling () const |
| |
| bool | isRotating () const |
| |
| bool | isTranslating () const |
| |
| TransformationType | type () const |
| |
| qreal | determinant () const |
| |
| qreal | det () const |
| |
| qreal | m11 () const |
| |
| qreal | m12 () const |
| |
| qreal | m13 () const |
| |
| qreal | m21 () const |
| |
| qreal | m22 () const |
| |
| qreal | m23 () const |
| |
| qreal | m31 () const |
| |
| qreal | m32 () const |
| |
| qreal | m33 () const |
| |
| qreal | dx () const |
| |
| qreal | dy () const |
| |
| void | setMatrix (qreal m11, qreal m12, qreal m13, qreal m21, qreal m22, qreal m23, qreal m31, qreal m32, qreal m33) |
| |
| QTransform | inverted (bool *invertible=0) const |
| |
| QTransform | adjoint () const |
| |
| QTransform | transposed () const |
| |
| QTransform & | translate (qreal dx, qreal dy) |
| |
| QTransform & | scale (qreal sx, qreal sy) |
| |
| QTransform & | shear (qreal sh, qreal sv) |
| |
| QTransform & | rotate (qreal a, Qt::Axis axis=Qt::ZAxis) |
| |
| QTransform & | rotateRadians (qreal a, Qt::Axis axis=Qt::ZAxis) |
| |
| bool | operator== (const QTransform &) const |
| |
| bool | operator!= (const QTransform &) const |
| |
| QTransform & | operator*= (const QTransform &) |
| |
| QTransform | operator* (const QTransform &o) const |
| |
| QTransform & | operator= (const QTransform &) |
| |
| | operator QVariant () const |
| |
| void | reset () |
| |
| QPoint | map (const QPoint &p) const |
| |
| QPointF | map (const QPointF &p) const |
| |
| QLine | map (const QLine &l) const |
| |
| QLineF | map (const QLineF &l) const |
| |
| QPolygonF | map (const QPolygonF &a) const |
| |
| QPolygon | map (const QPolygon &a) const |
| |
| QRegion | map (const QRegion &r) const |
| |
| QPainterPath | map (const QPainterPath &p) const |
| |
| QPolygon | mapToPolygon (const QRect &r) const |
| |
| QRect | mapRect (const QRect &) const |
| |
| QRectF | mapRect (const QRectF &) const |
| |
| void | map (int x, int y, int *tx, int *ty) const |
| |
| void | map (qreal x, qreal y, qreal *tx, qreal *ty) const |
| |
| const QMatrix & | toAffine () const |
| |
| QTransform & | operator*= (qreal div) |
| |
| QTransform & | operator/= (qreal div) |
| |
| QTransform & | operator+= (qreal div) |
| |
| QTransform & | operator-= (qreal div) |
| |
| Enumerator |
|---|
| TxNone |
|
| TxTranslate |
|
| TxScale |
|
| TxRotate |
|
| TxShear |
|
| TxProject |
|
Definition at line 68 of file qtransform.h.
| QTransform |
( |
qreal |
h11, |
|
|
qreal |
h12, |
|
|
qreal |
h13, |
|
|
qreal |
h21, |
|
|
qreal |
h22, |
|
|
qreal |
h23, |
|
|
qreal |
h31, |
|
|
qreal |
h32, |
|
|
qreal |
h33 = 1.0 |
|
) |
| |
| QTransform |
( |
qreal |
h11, |
|
|
qreal |
h12, |
|
|
qreal |
h21, |
|
|
qreal |
h22, |
|
|
qreal |
dx, |
|
|
qreal |
dy |
|
) |
| |
| bool isIdentity |
( |
| ) |
const |
|
inline |
| bool isInvertible |
( |
| ) |
const |
|
inline |
| bool isRotating |
( |
| ) |
const |
|
inline |
| bool isTranslating |
( |
| ) |
const |
|
inline |
| qreal determinant |
( |
| ) |
const |
|
inline |
Definition at line 228 of file qtransform.h.
230 return affine._m11*(m_33*affine._m22-affine._dy*m_23) -
231 affine._m21*(m_33*affine._m12-affine._dy*m_13)+affine._dx*(m_23*affine._m12-affine._m22*m_13);
| void setMatrix |
( |
qreal |
m11, |
|
|
qreal |
m12, |
|
|
qreal |
m13, |
|
|
qreal |
m21, |
|
|
qreal |
m22, |
|
|
qreal |
m23, |
|
|
qreal |
m31, |
|
|
qreal |
m32, |
|
|
qreal |
m33 |
|
) |
| |
| QTransform inverted |
( |
bool * |
invertible = 0 | ) |
const |
| void map |
( |
qreal |
x, |
|
|
qreal |
y, |
|
|
qreal * |
tx, |
|
|
qreal * |
ty |
|
) |
| const |
| static QTransform fromTranslate |
( |
qreal |
dx, |
|
|
qreal |
dy |
|
) |
| |
|
static |
| static QTransform fromScale |
( |
qreal |
dx, |
|
|
qreal |
dy |
|
) |
| |
|
static |
The documentation for this class was generated from the following file: