Skip to content

PythonQt.QtGui.QMatrix4x4

QMatrix4x4

PythonQtInstanceWrapper object

Native bases: PythonQtInstanceWrapper

Supplemental documentation: Qt 5 reference:

Detailed Description

The QMatrix4x4 class in general is treated as a row-major matrix, in that the constructors and operator() functions take data in row-major format, as is familiar in C-style usage.

Internally the data is stored as column-major format, so as to be optimal for passing to OpenGL functions, which expect column-major data.

When using these functions be aware that they return data in column-major format:

Source: https://doc.qt.io/archives/qt-5.15/qmatrix4x4.html

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
__init__ function (self, *args: Any, **kwargs: Any) -> None Native constructor; consult class documentation for supported overloads. (shared captured text)
className function (self, *args: Any, **kwargs: Any) -> Any Return the classname of the object (shared captured text)
column function (self, index: int) -> Any X.column(index) -> PythonQt.QtGui.QVector4D
constData function (self) -> float X.constData() -> float
copyDataTo function (self, values: Any) -> float Retrieves the 16 items in this matrix and copies them to values in row-major order.
data function (self) -> float X.data() -> float
delete function (self, *args: Any, **kwargs: Any) -> Any Deletes the C++ object (at your own risk, my friend!) (shared captured text)
determinant function (self) -> float X.determinant() -> float
fill function (self, value: float) -> None Fills all elements of this matrx with value.
flipCoordinates function (self) -> None
frustum function (self, left: float, right: float, bottom: float, top: float, nearPlane: float, farPlane: float) -> None X.frustum(left, right, bottom, top, nearPlane, farPlane)
help function (self, *args: Any, **kwargs: Any) -> Any Shows the help of available methods for this class (shared captured text)
inherits function (self, *args: Any, **kwargs: Any) -> Any Returns if the class inherits or is of given type name (shared captured text)
inverted function (self, invertible: Any) -> Any X.inverted(invertible) -> PythonQt.QtGui.QMatrix4x4
isAffine function (self) -> bool X.isAffine() -> bool
isIdentity function (self) -> bool X.isIdentity() -> bool
lookAt function (self, eye: Any, center: Any, up: Any) -> None X.lookAt(eye, center, up)
map function (self, point: Any) -> Any X.map(point) -> PythonQt.QtCore.QPoint
mapRect function (self, rect: Any) -> Any X.mapRect(rect) -> PythonQt.QtCore.QRect
mapVector function (self, vector: Any) -> Any X.mapVector(vector) -> PythonQt.QtGui.QVector3D
operator_cast_ function (self, row: Any, column: Any) -> float X.operator_cast_(row, column) -> float
optimize function (self) -> None Optimize the usage of this matrix from its current elements.
ortho function (self, left: Any, right: Any, bottom: Any, top: Any, nearPlane: Any, farPlane: Any) -> None X.ortho(left, right, bottom, top, nearPlane, farPlane)
perspective function (self, verticalAngle: float, aspectRatio: float, nearPlane: float, farPlane: float) -> None X.perspective(verticalAngle, aspectRatio, nearPlane, farPlane)
readFrom function (self, arg__1: Any) -> Any (shared captured text)
rotate function (self, angle: Any, x: Any, y: Any, z: Any) -> None X.rotate(angle, x, y, z)
row function (self, index: int) -> Any X.row(index) -> PythonQt.QtGui.QVector4D
scale function (self, x: Any, y: Any, z: Any) -> None X.scale(x, y, z)
setColumn function (self, index: int, value: Any) -> None X.setColumn(index, value)
setRow function (self, index: int, value: Any) -> None X.setRow(index, value)
setToIdentity function (self) -> None Sets this matrix to the identity.
toAffine function (self) -> Any X.toAffine() -> PythonQt.QtGui.QMatrix
toTransform function (self, distanceToPlane: Any) -> Any X.toTransform(distanceToPlane) -> PythonQt.QtGui.QTransform
translate function (self, x: Any, y: Any, z: Any) -> None X.translate(x, y, z)
transposed function (self) -> Any X.transposed() -> PythonQt.QtGui.QMatrix4x4
viewport function (self, left: Any, bottom: Any, width: Any, height: Any, nearPlane: Any, farPlane: Any) -> None X.viewport(left, bottom, width, height, nearPlane, farPlane)
writeTo function (self, arg__1: Any) -> Any (shared captured text)