QGenericMatrix Class
The QGenericMatrix class is a template class that represents a NxM transformation matrix with N columns and M rows. More...
Header: | #include <QGenericMatrix> |
qmake: | QT += gui |
Since: | Qt 4.6 |
Public Functions
QGenericMatrix() | |
QGenericMatrix(int) | |
QGenericMatrix(const T *values) | |
const T * | constData() const |
void | copyDataTo(T *values) const |
T * | data() |
const T * | data() const |
void | fill(T value) |
bool | isIdentity() const |
void | setToIdentity() |
bool | operator!=(const QGenericMatrix<N, M, T> &other = N) const |
const T & | operator()(int row, int column) const |
T & | operator()(int row, int column) |
QGenericMatrix<N, M, T> & | operator*=(T factor) |
QGenericMatrix<N, M, T> & | operator+=(const QGenericMatrix<N, M, T> &other = N) |
QGenericMatrix<N, M, T> & | operator-=(const QGenericMatrix<N, M, T> &other = N) |
QGenericMatrix<N, M, T> & | operator/=(T divisor) |
bool | operator==(const QGenericMatrix<N, M, T> &other = N) const |
Public Variables
Related Non-Members
typedef | QMatrix2x2 |
typedef | QMatrix2x3 |
typedef | QMatrix2x4 |
typedef | QMatrix3x2 |
typedef | QMatrix3x3 |
typedef | QMatrix3x4 |
typedef | QMatrix4x2 |
typedef | QMatrix4x3 |
Detailed Description
The QGenericMatrix class is a template class that represents a NxM transformation matrix with N columns and M rows.
The QGenericMatrix template has three parameters:
N | Number of columns. |
M | Number of rows. |
T | Element type that is visible to users of the class. |
See also QMatrix4x4.
Member Function Documentation
QGenericMatrix::QGenericMatrix()
Default constructs an instance of QGenericMatrix.
QGenericMatrix::QGenericMatrix(int)
Default constructs an instance of QGenericMatrix.
QGenericMatrix::QGenericMatrix(const T *values)
Default constructs an instance of QGenericMatrix.
const T *QGenericMatrix::constData() const
void QGenericMatrix::copyDataTo(T *values) const
T *QGenericMatrix::data()
const T *QGenericMatrix::data() const
void QGenericMatrix::fill(T value)
bool QGenericMatrix::isIdentity() const
void QGenericMatrix::setToIdentity()
bool QGenericMatrix::operator!=(const QGenericMatrix<N, M, T> &other = N) const
const T &QGenericMatrix::operator()(int row, int column) const
T &QGenericMatrix::operator()(int row, int column)
QGenericMatrix<N, M, T> &QGenericMatrix::operator*=(T factor)
QGenericMatrix<N, M, T> &QGenericMatrix::operator+=(const QGenericMatrix<N, M, T> &other = N)
QGenericMatrix<N, M, T> &QGenericMatrix::operator-=(const QGenericMatrix<N, M, T> &other = N)
QGenericMatrix<N, M, T> &QGenericMatrix::operator/=(T divisor)
bool QGenericMatrix::operator==(const QGenericMatrix<N, M, T> &other = N) const
Related Non-Members
typedef QMatrix2x2
The QMatrix2x2 type defines a convenient instantiation of the QGenericMatrix template for 2 columns, 2 rows, and float as the element type.
typedef QMatrix2x3
The QMatrix2x3 type defines a convenient instantiation of the QGenericMatrix template for 2 columns, 3 rows, and float as the element type.
typedef QMatrix2x4
The QMatrix2x4 type defines a convenient instantiation of the QGenericMatrix template for 2 columns, 4 rows, and float as the element type.
typedef QMatrix3x2
The QMatrix3x2 type defines a convenient instantiation of the QGenericMatrix template for 3 columns, 2 rows, and float as the element type.
typedef QMatrix3x3
The QMatrix3x3 type defines a convenient instantiation of the QGenericMatrix template for 3 columns, 3 rows, and float as the element type.
typedef QMatrix3x4
The QMatrix3x4 type defines a convenient instantiation of the QGenericMatrix template for 3 columns, 4 rows, and float as the element type.
typedef QMatrix4x2
The QMatrix4x2 type defines a convenient instantiation of the QGenericMatrix template for 4 columns, 2 rows, and float as the element type.
typedef QMatrix4x3
The QMatrix4x3 type defines a convenient instantiation of the QGenericMatrix template for 4 columns, 3 rows, and float as the element type.