|
Q_INVOKABLE | QQuickMatrix4x4ValueType ()=default |
qreal | m11 () const |
qreal | m12 () const |
qreal | m13 () const |
qreal | m14 () const |
qreal | m21 () const |
qreal | m22 () const |
qreal | m23 () const |
qreal | m24 () const |
qreal | m31 () const |
qreal | m32 () const |
qreal | m33 () const |
qreal | m34 () const |
qreal | m41 () const |
qreal | m42 () const |
qreal | m43 () const |
qreal | m44 () const |
void | setM11 (qreal value) |
void | setM12 (qreal value) |
void | setM13 (qreal value) |
void | setM14 (qreal value) |
void | setM21 (qreal value) |
void | setM22 (qreal value) |
void | setM23 (qreal value) |
void | setM24 (qreal value) |
void | setM31 (qreal value) |
void | setM32 (qreal value) |
void | setM33 (qreal value) |
void | setM34 (qreal value) |
void | setM41 (qreal value) |
void | setM42 (qreal value) |
void | setM43 (qreal value) |
void | setM44 (qreal value) |
Q_INVOKABLE void | translate (const QVector3D &t) |
Q_INVOKABLE void | rotate (float angle, const QVector3D &axis) |
Q_INVOKABLE void | rotate (const QQuaternion &q) |
Q_INVOKABLE void | scale (float s) |
Q_INVOKABLE void | scale (float sx, float sy, float sz) |
Q_INVOKABLE void | scale (const QVector3D &s) |
Q_INVOKABLE void | lookAt (const QVector3D &eye, const QVector3D ¢er, const QVector3D &up) |
Q_INVOKABLE QMatrix4x4 | times (const QMatrix4x4 &m) const |
Q_INVOKABLE QVector4D | times (const QVector4D &vec) const |
Q_INVOKABLE QVector3D | times (const QVector3D &vec) const |
Q_INVOKABLE QMatrix4x4 | times (qreal factor) const |
Q_INVOKABLE QMatrix4x4 | plus (const QMatrix4x4 &m) const |
Q_INVOKABLE QMatrix4x4 | minus (const QMatrix4x4 &m) const |
Q_INVOKABLE QVector4D | row (int n) const |
Q_INVOKABLE QVector4D | column (int m) const |
Q_INVOKABLE qreal | determinant () const |
Q_INVOKABLE QMatrix4x4 | inverted () const |
Q_INVOKABLE QMatrix4x4 | transposed () const |
Q_INVOKABLE QPointF | map (const QPointF p) const |
Q_INVOKABLE QRectF | mapRect (const QRectF r) const |
Q_INVOKABLE bool | fuzzyEquals (const QMatrix4x4 &m, qreal epsilon) const |
Q_INVOKABLE bool | fuzzyEquals (const QMatrix4x4 &m) const |
| QMatrix4x4 () |
| Constructs an identity matrix.
|
| QMatrix4x4 (Qt::Initialization) |
| QMatrix4x4 (const float *values) |
| Constructs a matrix from the given 16 floating-point values.
|
| QMatrix4x4 (float m11, float m12, float m13, float m14, float m21, float m22, float m23, float m24, float m31, float m32, float m33, float m34, float m41, float m42, float m43, float m44) |
| Constructs a matrix from the 16 elements m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, m41, m42, m43, and m44.
|
template<int N, int M> |
| QMatrix4x4 (const QGenericMatrix< N, M, float > &matrix) |
| Constructs a 4x4 matrix from the left-most 4 columns and top-most 4 rows of matrix.
|
| QMatrix4x4 (const float *values, int cols, int rows) |
| QMatrix4x4 (const QTransform &transform) |
| Constructs a 4x4 matrix from the conventional Qt 2D transformation matrix transform.
|
const float & | operator() (int row, int column) const |
| Returns a constant reference to the element at position (row, column) in this matrix.
|
float & | operator() (int row, int column) |
| Returns a reference to the element at position (row, column) in this matrix so that the element can be assigned to.
|
QVector4D | column (int index) const |
| Returns the elements of column index as a 4D vector.
|
void | setColumn (int index, const QVector4D &value) |
| Sets the elements of column index to the components of value.
|
QVector4D | row (int index) const |
| Returns the elements of row index as a 4D vector.
|
void | setRow (int index, const QVector4D &value) |
| Sets the elements of row index to the components of value.
|
bool | isAffine () const |
bool | isIdentity () const |
| Returns true if this matrix is the identity; false otherwise.
|
void | setToIdentity () |
| Sets this matrix to the identity.
|
void | fill (float value) |
| Fills all elements of this matrx with value.
|
double | determinant () const |
| Returns the determinant of this matrix.
|
QMatrix4x4 | inverted (bool *invertible=nullptr) const |
| Returns the inverse of this matrix.
|
QMatrix4x4 | transposed () const |
| Returns this matrix, transposed about its diagonal.
|
QMatrix3x3 | normalMatrix () const |
| Returns the normal matrix corresponding to this 4x4 transformation.
|
QMatrix4x4 & | operator+= (const QMatrix4x4 &other) |
| Adds the contents of other to this matrix.
|
QMatrix4x4 & | operator-= (const QMatrix4x4 &other) |
| Subtracts the contents of other from this matrix.
|
QMatrix4x4 & | operator*= (const QMatrix4x4 &other) |
| Multiplies the contents of other by this matrix.
|
QMatrix4x4 & | operator*= (float factor) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Multiplies all elements of this matrix by factor.
|
QMatrix4x4 & | operator/= (float divisor) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Divides all elements of this matrix by divisor.
|
bool | operator== (const QMatrix4x4 &other) const |
| Returns true if this matrix is identical to other; false otherwise.
|
bool | operator!= (const QMatrix4x4 &other) const |
| Returns true if this matrix is not identical to other; false otherwise.
|
void | scale (const QVector3D &vector) |
| Multiplies this matrix by another that scales coordinates by the components of vector.
|
void | translate (const QVector3D &vector) |
| Multiplies this matrix by another that translates coordinates by the components of vector.
|
void | rotate (float angle, const QVector3D &vector) |
| Multiples this matrix by another that rotates coordinates through angle degrees about vector.
|
void | scale (float x, float y) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Multiplies this matrix by another that scales coordinates by the components x, and y.
|
void | scale (float x, float y, float z) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Multiplies this matrix by another that scales coordinates by the components x, y, and z.
|
void | scale (float factor) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Multiplies this matrix by another that scales coordinates by the given factor.
|
void | translate (float x, float y) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Multiplies this matrix by another that translates coordinates by the components x, and y.
|
void | translate (float x, float y, float z) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Multiplies this matrix by another that translates coordinates by the components x, y, and z.
|
void | rotate (float angle, float x, float y, float z=0.0f) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Multiplies this matrix by another that rotates coordinates through angle degrees about the vector (x, y, z).
|
void | rotate (const QQuaternion &quaternion) |
| Multiples this matrix by another that rotates coordinates according to a specified quaternion.
|
void | ortho (const QRect &rect) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Multiplies this matrix by another that applies an orthographic projection for a window with boundaries specified by rect.
|
void | ortho (const QRectF &rect) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Multiplies this matrix by another that applies an orthographic projection for a window with boundaries specified by rect.
|
void | ortho (float left, float right, float bottom, float top, float nearPlane, float farPlane) |
| Multiplies this matrix by another that applies an orthographic projection for a window with lower-left corner (left, bottom), upper-right corner (right, top), and the specified nearPlane and farPlane clipping planes.
|
void | frustum (float left, float right, float bottom, float top, float nearPlane, float farPlane) |
| Multiplies this matrix by another that applies a perspective frustum projection for a window with lower-left corner (left, bottom), upper-right corner (right, top), and the specified nearPlane and farPlane clipping planes.
|
void | perspective (float verticalAngle, float aspectRatio, float nearPlane, float farPlane) |
| Multiplies this matrix by another that applies a perspective projection.
|
void | lookAt (const QVector3D &eye, const QVector3D ¢er, const QVector3D &up) |
| Multiplies this matrix by a viewing matrix derived from an eye point.
|
void | viewport (const QRectF &rect) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Sets up viewport transform for viewport bounded by rect and with near and far set to 0 and 1 respectively.
|
void | viewport (float left, float bottom, float width, float height, float nearPlane=0.0f, float farPlane=1.0f) |
| Multiplies this matrix by another that performs the scale and bias transformation used by OpenGL to transform from normalized device coordinates (NDC) to viewport (window) coordinates.
|
void | flipCoordinates () |
void | copyDataTo (float *values) const |
| Retrieves the 16 items in this matrix and copies them to values in row-major order.
|
QTransform | toTransform () const |
| Returns the conventional Qt 2D transformation matrix that corresponds to this matrix.
|
QTransform | toTransform (float distanceToPlane) const |
| Returns the conventional Qt 2D transformation matrix that corresponds to this matrix.
|
QPoint | map (const QPoint &point) const |
| Maps point by multiplying this matrix by point.
|
QPointF | map (const QPointF &point) const |
| Maps point by post-multiplying this matrix by point.
|
QVector3D | map (const QVector3D &point) const |
| Maps point by multiplying this matrix by point extended to a 4D vector by assuming 1.0 for the w coordinate.
|
QVector3D | mapVector (const QVector3D &vector) const |
| Maps vector by multiplying the top 3x3 portion of this matrix by vector.
|
QVector4D | map (const QVector4D &point) const |
| Maps point by multiplying this matrix by point.
|
QRect | mapRect (const QRect &rect) const |
| Maps rect by multiplying this matrix by the corners of rect and then forming a new rectangle from the results.
|
QRectF | mapRect (const QRectF &rect) const |
| Maps rect by multiplying this matrix by the corners of rect and then forming a new rectangle from the results.
|
template<int N, int M> |
QGenericMatrix< N, M, float > | toGenericMatrix () const |
| Constructs a NxM generic matrix from the left-most N columns and top-most M rows of this 4x4 matrix.
|
float * | data () |
| Returns a pointer to the raw data of this matrix.
|
const float * | data () const |
| Returns a constant pointer to the raw data of this matrix.
|
const float * | constData () const |
| Returns a constant pointer to the raw data of this matrix.
|
void | optimize () |
| Optimize the usage of this matrix from its current elements.
|
| operator QVariant () const |
| Returns the matrix as a QVariant.
|
void | projectedRotate (float angle, float x, float y, float z, float distanceToPlane=1024.0) |
Flags | flags () const |
template<int N, int M> |
Q_INLINE_TEMPLATE | QMatrix4x4 (const QGenericMatrix< N, M, float > &matrix) |