QtGui/qmatrix.h Source File
Go to the documentation of this file.
66 QMatrix(qreal m11, qreal m12, qreal m21, qreal m22,
68 QMatrix(
const QMatrix &
matrix);
70 void setMatrix(qreal m11, qreal m12, qreal m21, qreal m22,
73 qreal
m11()
const {
return _m11; }
74 qreal
m12()
const {
return _m12; }
75 qreal
m21()
const {
return _m21; }
76 qreal
m22()
const {
return _m22; }
77 qreal
dx()
const {
return _dx; }
78 qreal
dy()
const {
return _dy; }
80 void map(
int x,
int y,
int *tx,
int *
ty)
const;
81 void map(qreal
x, qreal
y, qreal *tx, qreal *
ty)
const;
92 QPainterPath
map(
const QPainterPath &
p)
const;
96 inline bool isIdentity()
const;
98 QMatrix &translate(qreal
dx, qreal
dy);
99 QMatrix &
scale(qreal sx, qreal sy);
100 QMatrix &shear(qreal sh, qreal sv);
101 QMatrix &rotate(qreal
a);
103 bool isInvertible()
const {
return !qFuzzyIsNull(_m11*_m22 - _m12*_m21); }
106 QT_DEPRECATED qreal det()
const {
return _m11*_m22 - _m12*_m21; }
109 QMatrix inverted(
bool *invertible = 0)
const;
114 QMatrix &operator*=(
const QMatrix &);
115 QMatrix
operator*(
const QMatrix &o)
const;
117 QMatrix &operator=(
const QMatrix &);
119 operator QVariant()
const;
122 inline QT3_SUPPORT QMatrix
invert(
bool *invertible=0)
const {
return inverted(invertible); }
123 inline QT3_SUPPORT
QRect map(
const QRect &
r)
const {
return mapRect(r); }
135 inline QMatrix(qreal am11, qreal am12, qreal am21, qreal am22, qreal adx, qreal ady,
bool)
168 return qFuzzyIsNull(_m11 - 1) && qFuzzyIsNull(_m22 - 1) && qFuzzyIsNull(_m12)
169 && qFuzzyIsNull(_m21) && qFuzzyIsNull(_dx) && qFuzzyIsNull(_dy);
187 #ifndef QT_NO_DATASTREAM
192 #ifndef QT_NO_DEBUG_STREAM
GLdouble GLdouble GLdouble r
void map(int x, int y, int *tx, int *ty) const
QFuture< void > map(Sequence &sequence, MapFunctor map)
Q_GUI_EXPORT QDataStream & operator>>(QDataStream &, QMatrix &)
#define QT_END_INCLUDE_NAMESPACE
Q_DECLARE_TYPEINFO(QMatrix, Q_MOVABLE_TYPE)
bool operator==(const Attribute &cA, const AttributeInstance< type > &cB)
This operator compares the two attributes and NOT their values.
#define QT_BEGIN_NAMESPACE
Q_GUI_EXPORT_INLINE QPoint operator*(const QPoint &p, const QMatrix &m)
Q_GUI_EXPORT QDataStream & operator<<(QDataStream &, const QMatrix &)
bool isInvertible() const
qreal determinant() const
bool operator!=(const QByteArray &a1, const QByteArray &a2)
QMatrix(Qt::Initialization)
bool qFuzzyCompare(const QMatrix &m1, const QMatrix &m2)
GLubyte GLubyte GLubyte a
#define QT_BEGIN_INCLUDE_NAMESPACE
GLenum GLenum GLenum GLenum GLenum scale