java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.gui.QMatrix4x4
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QMatrix4x4 extends QtObject implements Cloneable
Represents a 4x4 transformation matrix in 3D space
Java wrapper for Qt class QMatrix4x4
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QMatrix4x4.Flag
Java wrapper for Qt enum QMatrix4x4::Flagstatic class
QMatrix4x4.Flags
QFlags type for enumQMatrix4x4.Flag
-
Constructor Summary
Constructors Modifier Constructor Description QMatrix4x4()
QMatrix4x4(float[] 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)
QMatrix4x4(QTransform transform)
protected
QMatrix4x4(QtObject.QPrivateConstructor p)
Constructor for internal use only.QMatrix4x4(FloatBuffer values)
QMatrix4x4(FloatBuffer values, int cols, int rows)
-
Method Summary
Modifier and Type Method Description QMatrix4x4
add(QMatrix4x4 other)
float[]
array()
QMatrix4x4
clone()
QVector4D
column(int index)
void
copyDataTo(float[] values)
void
copyDataTo(FloatBuffer values)
double
determinant()
QMatrix4x4
divide(float divisor)
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.void
fill(float value)
QMatrix4x4.Flags
flags()
void
flipCoordinates()
void
frustum(float left, float right, float bottom, float top, float nearPlane, float farPlane)
int
hashCode()
QMatrix4x4
inverted()
boolean
isAffine()
boolean
isIdentity()
void
lookAt(QVector3D eye, QVector3D center, QVector3D up)
QPoint
map(QPoint point)
QPointF
map(QPointF point)
QVector3D
map(QVector3D point)
QVector4D
map(QVector4D point)
QRect
mapRect(QRect rect)
QRectF
mapRect(QRectF rect)
QVector3D
mapVector(QVector3D vector)
QMatrix4x4
multiply(float factor)
QMatrix4x4
multiply(QMatrix4x4 other)
QMatrix3x3
normalMatrix()
void
optimize()
void
ortho(float left, float right, float bottom, float top, float nearPlane, float farPlane)
void
ortho(QRect rect)
void
ortho(QRectF rect)
void
perspective(float verticalAngle, float aspectRatio, float nearPlane, float farPlane)
void
projectedRotate(float angle, float x, float y, float z)
void
readFrom(QDataStream arg__1)
void
rotate(float angle, float x, float y)
Overloaded function forrotate(float, float, float, float)
withz = 0.0f
.void
rotate(float angle, float x, float y, float z)
void
rotate(float angle, QVector3D vector)
void
rotate(QQuaternion quaternion)
QVector4D
row(int index)
void
scale(float factor)
void
scale(float x, float y)
void
scale(float x, float y, float z)
void
scale(QVector3D vector)
void
setColumn(int index, QVector4D value)
void
setRow(int index, QVector4D value)
void
setToIdentity()
void
setValue(int row, int column, float value)
QMatrix4x4
subtract(QMatrix4x4 other)
String
toString()
QTransform
toTransform()
QTransform
toTransform(float distanceToPlane)
void
translate(float x, float y)
void
translate(float x, float y, float z)
void
translate(QVector3D vector)
QMatrix4x4
transposed()
float
value(int row, int column)
void
viewport(float left, float bottom, float width, float height)
Overloaded function forviewport(float, float, float, float, float, float)
void
viewport(float left, float bottom, float width, float height, float nearPlane)
Overloaded function forviewport(float, float, float, float, float, float)
withfarPlane = 1.0f
.void
viewport(float left, float bottom, float width, float height, float nearPlane, float farPlane)
void
viewport(QRectF rect)
void
writeTo(QDataStream arg__1)
-
Constructor Details
-
QMatrix4x4
public QMatrix4x4() -
QMatrix4x4
-
QMatrix4x4
-
QMatrix4x4
-
QMatrix4x4
public 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) -
QMatrix4x4
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
QMatrix4x4
public QMatrix4x4(float[] values)
-
-
Method Details
-
column
-
copyDataTo
-
array
-
determinant
-
fill
-
flags
-
flipCoordinates
-
frustum
@QtUninvokable public final void frustum(float left, float right, float bottom, float top, float nearPlane, float farPlane) -
inverted
-
isAffine
-
isIdentity
-
lookAt
-
map
-
map
-
map
-
map
-
mapRect
-
mapRect
-
mapVector
-
normalMatrix
-
setValue
-
value
-
multiply
-
multiply
-
add
-
subtract
-
divide
-
writeTo
-
readFrom
-
optimize
-
ortho
-
ortho
-
ortho
@QtUninvokable public final void ortho(float left, float right, float bottom, float top, float nearPlane, float farPlane) -
perspective
@QtUninvokable public final void perspective(float verticalAngle, float aspectRatio, float nearPlane, float farPlane) -
projectedRotate
-
rotate
-
rotate
-
rotate
Overloaded function for
rotate(float, float, float, float)
withz = 0.0f
. -
rotate
-
row
-
scale
-
scale
-
scale
-
scale
-
setColumn
-
setRow
-
setToIdentity
-
toTransform
-
toTransform
-
translate
-
translate
-
translate
-
transposed
-
viewport
-
viewport
@QtUninvokable public final void viewport(float left, float bottom, float width, float height, float nearPlane)Overloaded function for
viewport(float, float, float, float, float, float)
withfarPlane = 1.0f
. -
viewport
Overloaded function for
viewport(float, float, float, float, float, float)
with:
nearPlane = 0.0f
farPlane = 1.0f
-
viewport
@QtUninvokable public final void viewport(float left, float bottom, float width, float height, float nearPlane, float farPlane) -
equals
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
copyDataTo
-
toString
-
clone
-