53 #if defined(Q_OS_VXWORKS) && defined(m_type)
79 QTransform(qreal h11, qreal h12, qreal h13,
80 qreal h21, qreal h22, qreal h23,
81 qreal h31, qreal h32, qreal h33 = 1.0);
82 QTransform(qreal h11, qreal h12, qreal h21,
83 qreal h22, qreal
dx, qreal
dy);
84 explicit QTransform(
const QMatrix &mtx);
86 bool isAffine()
const;
87 bool isIdentity()
const;
88 bool isInvertible()
const;
89 bool isScaling()
const;
90 bool isRotating()
const;
91 bool isTranslating()
const;
93 TransformationType
type()
const;
95 inline qreal determinant()
const;
110 void setMatrix(qreal m11, qreal m12, qreal m13,
111 qreal m21, qreal m22, qreal m23,
112 qreal m31, qreal m32, qreal m33);
114 QTransform inverted(
bool *invertible = 0)
const;
115 QTransform adjoint()
const;
116 QTransform transposed()
const;
118 QTransform &translate(qreal
dx, qreal
dy);
119 QTransform &
scale(qreal sx, qreal sy);
120 QTransform &shear(qreal sh, qreal sv);
124 static bool squareToQuad(
const QPolygonF &square, QTransform &result);
125 static bool quadToSquare(
const QPolygonF &quad, QTransform &result);
126 static bool quadToQuad(
const QPolygonF &one,
133 QTransform &operator*=(
const QTransform &);
134 QTransform
operator*(
const QTransform &o)
const;
136 QTransform &operator=(
const QTransform &);
138 operator QVariant()
const;
152 void map(
int x,
int y,
int *tx,
int *
ty)
const;
153 void map(qreal
x, qreal
y, qreal *tx, qreal *
ty)
const;
155 const QMatrix &toAffine()
const;
157 QTransform &operator*=(qreal div);
158 QTransform &operator/=(qreal div);
160 QTransform &operator-=(qreal div);
162 static QTransform fromTranslate(qreal
dx, qreal
dy);
163 static QTransform fromScale(qreal
dx, qreal
dy);
166 inline QTransform(qreal h11, qreal h12, qreal h13,
167 qreal h21, qreal h22, qreal h23,
168 qreal h31, qreal h32, qreal h33,
bool)
169 : affine(h11, h12, h21, h22, h31, h32, true)
170 , m_13(h13), m_23(h23), m_33(h33)
172 , m_dirty(TxProject) {}
173 inline QTransform(
bool)
175 , m_13(0), m_23(0), m_33(1)
178 inline TransformationType inline_type()
const;
184 mutable uint m_type : 5;
185 mutable uint m_dirty : 5;
206 return inline_type() ==
TxNone;
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);
354 #ifndef QT_NO_DATASTREAM
359 #ifndef QT_NO_DEBUG_STREAM
GLuint GLuint GLsizei GLenum type
GLdouble GLdouble GLdouble r
QByteArray & operator+=(QByteArray &a, const QStringBuilder< A, B > &b)
QFuture< void > map(Sequence &sequence, MapFunctor map)
bool operator==(const Attribute &cA, const AttributeInstance< type > &cB)
This operator compares the two attributes and NOT their values.
#define QT_BEGIN_NAMESPACE
bool operator!=(const QByteArray &a1, const QByteArray &a2)
GLubyte GLubyte GLubyte a
GLenum GLenum GLenum GLenum GLenum scale