Qyoto
4.0.5
Qyoto is a C# language binding for Qt
|
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space. More...
Public Member Functions | |
override bool | Equals (object o) |
override int | GetHashCode () |
QMatrix4x4 () | |
| |
QMatrix4x4 (QTransform transform) | |
| |
QMatrix4x4 (QMatrix matrix) | |
| |
QMatrix4x4 (QMatrix4x4 copy) | |
| |
QMatrix4x4 (ref double values) | |
| |
QMatrix4x4 (ref double values, int cols, int rows) | |
| |
QMatrix4x4 (double m11, double m12, double m13, double m14, double m21, double m22, double m23, double m24, double m31, double m32, double m33, double m34, double m41, double m42, double m43, double m44) | |
| |
virtual void | CreateProxy () |
new QVector4D | Column (int index) |
| |
new double | ConstData () |
| |
new void | CopyDataTo (ref double values) |
| |
new double | Data () |
| |
new double | Determinant () |
| |
new void | Fill (double value) |
| |
new void | FlipCoordinates () |
| |
new void | Frustum (double left, double right, double bottom, double top, double nearPlane, double farPlane) |
| |
new QMatrix4x4 | Inverted () |
| |
new QMatrix4x4 | Inverted (ref bool invertible) |
| |
new bool | IsIdentity () |
| |
new void | LookAt (QVector3D eye, QVector3D center, QVector3D up) |
| |
new QPoint | Map (QPoint point) |
| |
new QPointF | Map (QPointF point) |
| |
new QVector3D | Map (QVector3D point) |
| |
new QVector4D | Map (QVector4D point) |
| |
new QRect | MapRect (QRect rect) |
| |
new QRectF | MapRect (QRectF rect) |
| |
new QVector3D | MapVector (QVector3D vector) |
| |
new void | Optimize () |
| |
new void | Ortho (QRect rect) |
| |
new void | Ortho (QRectF rect) |
| |
new void | Ortho (double left, double right, double bottom, double top, double nearPlane, double farPlane) |
| |
new void | Perspective (double angle, double aspect, double nearPlane, double farPlane) |
| |
new void | Rotate (QQuaternion quaternion) |
| |
new void | Rotate (double angle, QVector3D vector) |
| |
new void | Rotate (double angle, double x, double y, double z=0.0f) |
| |
new QVector4D | Row (int index) |
| |
new void | Scale (QVector3D vector) |
| |
new void | Scale (double factor) |
| |
new void | Scale (double x, double y) |
| |
new void | Scale (double x, double y, double z) |
| |
new void | SetColumn (int index, QVector4D value) |
| |
new void | SetRow (int index, QVector4D value) |
| |
new void | SetToIdentity () |
| |
new QMatrix | ToAffine () |
| |
new QTransform | ToTransform () |
| |
new QTransform | ToTransform (double distanceToPlane) |
| |
new void | Translate (QVector3D vector) |
| |
new void | Translate (double x, double y) |
| |
new void | Translate (double x, double y, double z) |
| |
new QMatrix4x4 | Transposed () |
| |
new void | Dispose () |
Static Public Member Functions | |
static QMatrix4x4 | operator* (QMatrix4x4 arg1, QMatrix4x4 arg2) |
| |
static QVector4D | operator* (QMatrix4x4 arg1, QVector4D arg2) |
| |
static QPoint | operator* (QMatrix4x4 arg1, QPoint arg2) |
| |
static QPointF | operator* (QMatrix4x4 arg1, QPointF arg2) |
| |
static QVector3D | operator* (QMatrix4x4 arg1, QVector3D arg2) |
| |
static QMatrix4x4 | operator* (QMatrix4x4 arg1, double arg2) |
| |
static QMatrix4x4 | operator+ (QMatrix4x4 arg1, QMatrix4x4 arg2) |
| |
static QMatrix4x4 | operator- (QMatrix4x4 arg1) |
| |
static QMatrix4x4 | operator- (QMatrix4x4 arg1, QMatrix4x4 arg2) |
| |
static QMatrix4x4 | operator/ (QMatrix4x4 arg1, double arg2) |
| |
static bool | operator!= (QMatrix4x4 arg1, QMatrix4x4 arg2) |
| |
static bool | operator== (QMatrix4x4 arg1, QMatrix4x4 arg2) |
| |
Protected Member Functions | |
QMatrix4x4 (System.Type dummy) | |
Protected Attributes | |
SmokeInvocation | interceptor |
Properties | |
virtual System.IntPtr | SmokeObject [get, set] |
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space.
See also QVector3D and QGenericMatrix.
|
protected |
QtGui.QMatrix4x4.QMatrix4x4 | ( | ) |
Constructs an identity matrix.
QtGui.QMatrix4x4.QMatrix4x4 | ( | QTransform | transform | ) |
Constructs a 4x4 matrix from the conventional Qt 2D transformation matrix transform.
If transform has a special type (identity, translate, scale, etc), the programmer should follow this constructor with a call to optimize() if they wish QMatrix4x4 to optimize further calls to translate(), scale(), etc.
See also toTransform() and optimize().
QtGui.QMatrix4x4.QMatrix4x4 | ( | QMatrix | matrix | ) |
Constructs a 4x4 matrix from a conventional Qt 2D affine transformation matrix.
If matrix has a special type (identity, translate, scale, etc), the programmer should follow this constructor with a call to optimize() if they wish QMatrix4x4 to optimize further calls to translate(), scale(), etc.
See also toAffine() and optimize().
QtGui.QMatrix4x4.QMatrix4x4 | ( | QMatrix4x4 | copy | ) |
Constructs an identity matrix.
QtGui.QMatrix4x4.QMatrix4x4 | ( | ref double | values | ) |
Constructs an identity matrix.
QtGui.QMatrix4x4.QMatrix4x4 | ( | ref double | values, |
int | cols, | ||
int | rows | ||
) |
Constructs an identity matrix.
QtGui.QMatrix4x4.QMatrix4x4 | ( | double | m11, |
double | m12, | ||
double | m13, | ||
double | m14, | ||
double | m21, | ||
double | m22, | ||
double | m23, | ||
double | m24, | ||
double | m31, | ||
double | m32, | ||
double | m33, | ||
double | m34, | ||
double | m41, | ||
double | m42, | ||
double | m43, | ||
double | m44 | ||
) |
Constructs an identity matrix.
new QVector4D QtGui.QMatrix4x4.Column | ( | int | index | ) |
Returns the elements of column index as a 4D vector.
See also setColumn() and row().
new double QtGui.QMatrix4x4.ConstData | ( | ) |
Returns a constant pointer to the raw data of this matrix.
See also data().
new void QtGui.QMatrix4x4.CopyDataTo | ( | ref double | values | ) |
Retrieves the 16 items in this matrix and copies them to values in row-major order.
|
virtual |
new double QtGui.QMatrix4x4.Data | ( | ) |
Returns a pointer to the raw data of this matrix.
See also constData() and optimize().
new double QtGui.QMatrix4x4.Determinant | ( | ) |
Returns the determinant of this matrix.
new void QtGui.QMatrix4x4.Dispose | ( | ) |
override bool QtGui.QMatrix4x4.Equals | ( | object | o | ) |
new void QtGui.QMatrix4x4.Fill | ( | double | value | ) |
Fills all elements of this matrx with value.
new void QtGui.QMatrix4x4.FlipCoordinates | ( | ) |
Flips between right-handed and left-handed coordinate systems by multiplying the y and z co-ordinates by -1. This is normally used to create a left-handed orthographic view without scaling the viewport as ortho() does.
See also ortho().
new void QtGui.QMatrix4x4.Frustum | ( | double | left, |
double | right, | ||
double | bottom, | ||
double | top, | ||
double | nearPlane, | ||
double | 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.
See also ortho() and perspective().
override int QtGui.QMatrix4x4.GetHashCode | ( | ) |
new QMatrix4x4 QtGui.QMatrix4x4.Inverted | ( | ) |
Returns the inverse of this matrix. Returns the identity if this matrix cannot be inverted; i.e. determinant() is zero. If invertible is not null, then true will be written to that location if the matrix can be inverted; false otherwise.
If the matrix is recognized as the identity or an orthonormal matrix, then this function will quickly invert the matrix using optimized routines.
See also determinant() and normalMatrix().
new QMatrix4x4 QtGui.QMatrix4x4.Inverted | ( | ref bool | invertible | ) |
Returns the inverse of this matrix. Returns the identity if this matrix cannot be inverted; i.e. determinant() is zero. If invertible is not null, then true will be written to that location if the matrix can be inverted; false otherwise.
If the matrix is recognized as the identity or an orthonormal matrix, then this function will quickly invert the matrix using optimized routines.
See also determinant() and normalMatrix().
new bool QtGui.QMatrix4x4.IsIdentity | ( | ) |
Returns true if this matrix is the identity; false otherwise.
See also setToIdentity().
Multiplies this matrix by another that applies an eye position transformation. The center value indicates the center of the view that the eye is looking at. The up value indicates which direction should be considered up with respect to the eye.
Maps point by multiplying this matrix by point.
See also mapRect().
Maps point by multiplying this matrix by point.
See also mapRect().
Maps point by multiplying this matrix by point.
See also mapRect() and mapVector().
Maps point by multiplying this matrix by point.
See also mapRect().
Maps rect by multiplying this matrix by the corners of rect and then forming a new rectangle from the results. The returned rectangle will be an ordinary 2D rectangle with sides parallel to the horizontal and vertical axes.
See also map().
Maps rect by multiplying this matrix by the corners of rect and then forming a new rectangle from the results. The returned rectangle will be an ordinary 2D rectangle with sides parallel to the horizontal and vertical axes.
See also map().
Maps vector by multiplying the top 3x3 portion of this matrix by vector. The translation and projection components of this matrix are ignored.
See also map().
|
static |
Returns true if this matrix is not identical to other; false otherwise. This operator uses an exact floating-point comparison.
|
static |
Returns the product of m1 and m2.
|
static |
Returns the product of m1 and m2.
|
static |
Returns the product of m1 and m2.
|
static |
Returns the product of m1 and m2.
|
static |
Returns the product of m1 and m2.
|
static |
Returns the product of m1 and m2.
|
static |
Returns the sum of m1 and m2.
|
static |
This is an overloaded function.
Returns the negation of matrix.
|
static |
Returns the difference of m1 and m2.
|
static |
Returns the result of dividing all elements of matrix by divisor.
|
static |
Returns true if this matrix is identical to other; false otherwise. This operator uses an exact floating-point comparison.
new void QtGui.QMatrix4x4.Optimize | ( | ) |
Optimize the usage of this matrix from its current elements.
Some operations such as translate(), scale(), and rotate() can be performed more efficiently if the matrix being modified is already known to be the identity, a previous translate(), a previous scale(), etc.
Normally the QMatrix4x4 class keeps track of this special type internally as operations are performed. However, if the matrix is modified directly with operator()() or data(), then QMatrix4x4 will lose track of the special type and will revert to the safest but least efficient operations thereafter.
By calling optimize() after directly modifying the matrix, the programmer can force QMatrix4x4 to recover the special type if the elements appear to conform to one of the known optimized types.
See also operator()(), data(), and translate().
new void QtGui.QMatrix4x4.Ortho | ( | QRect | rect | ) |
This is an overloaded function.
Multiplies this matrix by another that applies an orthographic projection for a window with boundaries specified by rect. The near and far clipping planes will be -1 and 1 respectively.
See also frustum() and perspective().
new void QtGui.QMatrix4x4.Ortho | ( | QRectF | rect | ) |
This is an overloaded function.
Multiplies this matrix by another that applies an orthographic projection for a window with boundaries specified by rect. The near and far clipping planes will be -1 and 1 respectively.
See also frustum() and perspective().
new void QtGui.QMatrix4x4.Ortho | ( | double | left, |
double | right, | ||
double | bottom, | ||
double | top, | ||
double | nearPlane, | ||
double | 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.
See also frustum() and perspective().
new void QtGui.QMatrix4x4.Perspective | ( | double | angle, |
double | aspect, | ||
double | nearPlane, | ||
double | farPlane | ||
) |
Multiplies this matrix by another that applies a perspective projection. The field of view will be angle degrees within a window with a given aspect ratio. The projection will have the specified nearPlane and farPlane clipping planes.
See also ortho() and frustum().
new void QtGui.QMatrix4x4.Rotate | ( | QQuaternion | quaternion | ) |
Multiples this matrix by another that rotates coordinates according to a specified quaternion. The quaternion is assumed to have been normalized.
See also scale(), translate(), and QQuaternion.
new void QtGui.QMatrix4x4.Rotate | ( | double | angle, |
QVector3D | vector | ||
) |
Multiples this matrix by another that rotates coordinates through angle degrees about vector.
See also scale() and translate().
new void QtGui.QMatrix4x4.Rotate | ( | double | angle, |
double | x, | ||
double | y, | ||
double | z = 0.0f |
||
) |
Multiples this matrix by another that rotates coordinates through angle degrees about vector.
See also scale() and translate().
new QVector4D QtGui.QMatrix4x4.Row | ( | int | index | ) |
Returns the elements of row index as a 4D vector.
See also setRow() and column().
new void QtGui.QMatrix4x4.Scale | ( | QVector3D | vector | ) |
Multiplies this matrix by another that scales coordinates by the components of vector.
See also translate() and rotate().
new void QtGui.QMatrix4x4.Scale | ( | double | factor | ) |
Multiplies this matrix by another that scales coordinates by the components of vector.
See also translate() and rotate().
new void QtGui.QMatrix4x4.Scale | ( | double | x, |
double | y | ||
) |
Multiplies this matrix by another that scales coordinates by the components of vector.
See also translate() and rotate().
new void QtGui.QMatrix4x4.Scale | ( | double | x, |
double | y, | ||
double | z | ||
) |
Multiplies this matrix by another that scales coordinates by the components of vector.
See also translate() and rotate().
new void QtGui.QMatrix4x4.SetColumn | ( | int | index, |
QVector4D | value | ||
) |
Sets the elements of column index to the components of value.
See also column() and setRow().
new void QtGui.QMatrix4x4.SetRow | ( | int | index, |
QVector4D | value | ||
) |
Sets the elements of row index to the components of value.
See also row() and setColumn().
new void QtGui.QMatrix4x4.SetToIdentity | ( | ) |
Sets this matrix to the identity.
See also isIdentity().
new QMatrix QtGui.QMatrix4x4.ToAffine | ( | ) |
Returns the conventional Qt 2D affine transformation matrix that corresponds to this matrix. It is assumed that this matrix only contains 2D affine transformation elements.
See also toTransform().
new QTransform QtGui.QMatrix4x4.ToTransform | ( | ) |
Returns the conventional Qt 2D transformation matrix that corresponds to this matrix.
The returned QTransform is formed by simply dropping the third row and third column of the QMatrix4x4. This is suitable for implementing orthographic projections where the z co-ordinate should be dropped rather than projected.
See also toAffine().
new QTransform QtGui.QMatrix4x4.ToTransform | ( | double | distanceToPlane | ) |
Returns the conventional Qt 2D transformation matrix that corresponds to this matrix.
The returned QTransform is formed by simply dropping the third row and third column of the QMatrix4x4. This is suitable for implementing orthographic projections where the z co-ordinate should be dropped rather than projected.
See also toAffine().
new void QtGui.QMatrix4x4.Translate | ( | QVector3D | vector | ) |
Multiplies this matrix by another that translates coordinates by the components of vector.
See also scale() and rotate().
new void QtGui.QMatrix4x4.Translate | ( | double | x, |
double | y | ||
) |
Multiplies this matrix by another that translates coordinates by the components of vector.
See also scale() and rotate().
new void QtGui.QMatrix4x4.Translate | ( | double | x, |
double | y, | ||
double | z | ||
) |
Multiplies this matrix by another that translates coordinates by the components of vector.
See also scale() and rotate().
new QMatrix4x4 QtGui.QMatrix4x4.Transposed | ( | ) |
Returns this matrix, transposed about its diagonal.
|
protected |
|
getset |