- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Represents a 4x4 transformation matrix in 3D space
Java wrapper for Qt class QMatrix4x4
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQMatrix4x4::Flag
static final class
QFlags
type for enumQMatrix4x4.Flag
-
Constructor Summary
ConstructorDescriptionQMatrix4x4
(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
(QMatrix4x4 other) SeeQMatrix4x4::
QMatrix4x4(QMatrix4x4) QMatrix4x4
(QTransform transform) QMatrix4x4
(FloatBuffer values) QMatrix4x4
(FloatBuffer values, int cols, int rows) SeeQMatrix4x4::
QMatrix4x4(const float*, int, int) -
Method Summary
Modifier and TypeMethodDescriptionfinal QMatrix4x4
add
(QMatrix4x4 other) final QMatrix4x4
add
(QTransform other) Overloaded function foradd(io.qt.gui.QMatrix4x4)
.final float []
array()
clone()
Creates and returns a copy of this object.final QVector4D
column
(int index) final void
copyDataTo
(float[] values) final void
copyDataTo
(FloatBuffer values) final double
final QMatrix4x4
div
(float divisor) Seeoperator/(QMatrix4x4,
float) final QMatrix4x4
divide
(float divisor) final boolean
equals
(QMatrix4x4 other) final boolean
equals
(QTransform other) Overloaded function forequals(io.qt.gui.QMatrix4x4)
.boolean
final void
fill
(float value) final QMatrix4x4.Flags
flags()
SeeQMatrix4x4::
flags()const final void
SeeQMatrix4x4::
flipCoordinates() final void
frustum
(float left, float right, float bottom, float top, float nearPlane, float farPlane) int
hashCode()
Returns the objects's hash code computed byqHash(QMatrix4x4)
.final QMatrix4x4
inverted()
final boolean
isAffine()
final boolean
final void
final QPoint
final QPointF
final QVector3D
final QVector4D
final QRect
final QRectF
final QVector3D
final QMatrix4x4
minus
(QMatrix4x4 m2) final QMatrix4x4
minus
(QTransform m2) Overloaded function forminus(io.qt.gui.QMatrix4x4)
.final QMatrix4x4
multiply
(float factor) final QMatrix4x4
multiply
(QMatrix4x4 other) final QMatrix4x4
multiply
(QTransform other) Overloaded function formultiply(io.qt.gui.QMatrix4x4)
.final QMatrix3x3
final void
optimize()
final void
ortho
(float left, float right, float bottom, float top, float nearPlane, float farPlane) final void
final void
final void
perspective
(float verticalAngle, float aspectRatio, float nearPlane, float farPlane) final QMatrix4x4
plus
(QMatrix4x4 m2) Seeoperator+(QMatrix4x4,
QMatrix4x4) final QMatrix4x4
plus
(QTransform m2) Overloaded function forplus(io.qt.gui.QMatrix4x4)
.final void
projectedRotate
(float angle, float x, float y, float z) SeeQMatrix4x4::
projectedRotate(float, float, float, float) final void
projectedRotate
(float angle, float x, float y, float z, float distanceToPlane) SeeQMatrix4x4::
projectedRotate(float, float, float, float, float) static boolean
qFuzzyCompare
(QMatrix4x4 m1, QMatrix4x4 m2) SeeqFuzzyCompare(QMatrix4x4,
QMatrix4x4) static boolean
qFuzzyCompare
(QMatrix4x4 m1, QTransform m2) Overloaded function forqFuzzyCompare(io.qt.gui.QMatrix4x4, io.qt.gui.QMatrix4x4)
.static boolean
qFuzzyCompare
(QTransform m1, QMatrix4x4 m2) Overloaded function forqFuzzyCompare(io.qt.gui.QMatrix4x4, io.qt.gui.QMatrix4x4)
.static boolean
qFuzzyCompare
(QTransform m1, QTransform m2) Overloaded function forqFuzzyCompare(io.qt.gui.QMatrix4x4, io.qt.gui.QMatrix4x4)
.void
readFrom
(QDataStream arg__1) Seeoperator>>(QDataStream&,
QMatrix4x4&) final void
rotate
(float angle, float x, float y) Overloaded function forrotate(float, float, float, float)
withz = 0.0f
.final void
rotate
(float angle, float x, float y, float z) final void
final void
rotate
(QQuaternion quaternion) final QVector4D
row
(int index) final void
scale
(float factor) final void
scale
(float x, float y) final void
scale
(float x, float y, float z) final void
final void
final void
final void
final void
setValue
(int row, int column, float value) final QMatrix4x4
subtract
(QMatrix4x4 other) final QMatrix4x4
subtract
(QTransform other) Overloaded function forsubtract(io.qt.gui.QMatrix4x4)
.final QMatrix4x4
times
(float factor) Seeoperator*(QMatrix4x4,
float) final QPoint
Deprecated.Use matrix.map(point) instead@param pointfinal QPointF
Deprecated.Use matrix.map(point) instead@param pointfinal QMatrix4x4
times
(QMatrix4x4 m2) Seeoperator*(QMatrix4x4,
QMatrix4x4) final QMatrix4x4
times
(QTransform m2) Overloaded function fortimes(io.qt.gui.QMatrix4x4)
.final QVector3D
Deprecated.Use matrix.map(vector) instead@param vectorfinal QVector4D
Seeoperator*(QMatrix4x4,
QVector4D) toString()
Seeoperator<<(QDebug,
QMatrix4x4) final QTransform
final QTransform
toTransform
(float distanceToPlane) final void
translate
(float x, float y) final void
translate
(float x, float y, float z) final void
final QMatrix4x4
final QMatrix4x4
Seeoperator-(QMatrix4x4)
final float
value
(int row, int column) final void
viewport
(float left, float bottom, float width, float height) Overloaded function forviewport(float, float, float, float, float, float)
final void
viewport
(float left, float bottom, float width, float height, float nearPlane) Overloaded function forviewport(float, float, float, float, float, float)
withfarPlane = 1.0f
.final void
viewport
(float left, float bottom, float width, float height, float nearPlane, float farPlane) final void
Overloaded function forviewport(io.qt.core.QRectF)
.final void
void
writeTo
(QDataStream arg__1) Seeoperator<<(QDataStream&,
QMatrix4x4) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QMatrix4x4
public QMatrix4x4() -
QMatrix4x4
See
QMatrix4x4::
QMatrix4x4(QMatrix4x4) - Parameters:
other
-
-
QMatrix4x4
- Parameters:
transform
-
-
QMatrix4x4
- Parameters:
values
-
-
QMatrix4x4
See
QMatrix4x4::
QMatrix4x4(const float*, int, int) - Parameters:
values
-cols
-rows
-
-
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) - Parameters:
m11
-m12
-m13
-m14
-m21
-m22
-m23
-m24
-m31
-m32
-m33
-m34
-m41
-m42
-m43
-m44
-
-
QMatrix4x4
public QMatrix4x4(float[] values)
-
-
Method Details
-
column
- Parameters:
index
-- Returns:
-
copyDataTo
- Parameters:
values
-
-
array
- Returns:
-
determinant
- Returns:
-
fill
- Parameters:
value
-
-
flags
See
QMatrix4x4::
flags()const - Returns:
-
flipCoordinates
See
QMatrix4x4::
flipCoordinates() -
frustum
@QtUninvokable public final void frustum(float left, float right, float bottom, float top, float nearPlane, float farPlane) - Parameters:
left
-right
-bottom
-top
-nearPlane
-farPlane
-
-
inverted
- Returns:
-
isAffine
- Returns:
-
isIdentity
- Returns:
-
lookAt
- Parameters:
eye
-center
-up
-
-
map
- Parameters:
point
-- Returns:
-
map
- Parameters:
point
-- Returns:
-
map
- Parameters:
point
-- Returns:
-
map
- Parameters:
point
-- Returns:
-
mapRect
- Parameters:
rect
-- Returns:
-
mapRect
- Parameters:
rect
-- Returns:
-
mapVector
- Parameters:
vector
-- Returns:
-
normalMatrix
- Returns:
-
setValue
- Parameters:
row
-column
-value
-
-
value
- Parameters:
row
-column
-- Returns:
-
times
See
operator*(QMatrix4x4,
QMatrix4x4) - Parameters:
m2
-- Returns:
-
times
Deprecated.Use matrix.map(point) instead@param pointSee
operator*(QMatrix4x4,
QPoint) - Returns:
-
times
Deprecated.Use matrix.map(point) instead@param pointSee
operator*(QMatrix4x4,
QPointF) - Returns:
-
times
Deprecated.Use matrix.map(vector) instead@param vectorSee
operator*(QMatrix4x4,
QVector3D) - Returns:
-
times
See
operator*(QMatrix4x4,
QVector4D) - Parameters:
vector
-- Returns:
-
times
See
operator*(QMatrix4x4,
float) - Parameters:
factor
-- Returns:
-
multiply
- Parameters:
other
-- Returns:
-
multiply
- Parameters:
factor
-- Returns:
-
plus
See
operator+(QMatrix4x4,
QMatrix4x4) - Parameters:
m2
-- Returns:
-
add
- Parameters:
other
-- Returns:
-
unaryMinus
See
operator-(QMatrix4x4)
- Returns:
-
minus
- Parameters:
m2
-- Returns:
-
subtract
- Parameters:
other
-- Returns:
-
div
See
operator/(QMatrix4x4,
float) - Parameters:
divisor
-- Returns:
-
divide
- Parameters:
divisor
-- Returns:
-
writeTo
See
operator<<(QDataStream&,
QMatrix4x4) - Parameters:
arg__1
-
-
equals
- Parameters:
other
-- Returns:
-
readFrom
See
operator>>(QDataStream&,
QMatrix4x4&) - Parameters:
arg__1
-
-
optimize
-
ortho
- Parameters:
rect
-
-
ortho
- Parameters:
rect
-
-
ortho
@QtUninvokable public final void ortho(float left, float right, float bottom, float top, float nearPlane, float farPlane) - Parameters:
left
-right
-bottom
-top
-nearPlane
-farPlane
-
-
perspective
@QtUninvokable public final void perspective(float verticalAngle, float aspectRatio, float nearPlane, float farPlane) - Parameters:
verticalAngle
-aspectRatio
-nearPlane
-farPlane
-
-
projectedRotate
See
QMatrix4x4::
projectedRotate(float, float, float, float) - Parameters:
angle
-x
-y
-z
-
-
projectedRotate
@QtUninvokable public final void projectedRotate(float angle, float x, float y, float z, float distanceToPlane) See
QMatrix4x4::
projectedRotate(float, float, float, float, float) - Parameters:
angle
-x
-y
-z
-distanceToPlane
-
-
rotate
- Parameters:
quaternion
-
-
rotate
- Parameters:
angle
-vector
-
-
rotate
- Parameters:
angle
-x
-y
-z
-
-
row
- Parameters:
index
-- Returns:
-
scale
- Parameters:
vector
-
-
scale
- Parameters:
factor
-
-
scale
- Parameters:
x
-y
-
-
scale
- Parameters:
x
-y
-z
-
-
setColumn
- Parameters:
index
-value
-
-
setRow
- Parameters:
index
-value
-
-
setToIdentity
-
toTransform
- Returns:
-
toTransform
- Parameters:
distanceToPlane
-- Returns:
-
translate
- Parameters:
vector
-
-
translate
- Parameters:
x
-y
-
-
translate
- Parameters:
x
-y
-z
-
-
transposed
- Returns:
-
viewport
- Parameters:
rect
-
-
viewport
@QtUninvokable public final void viewport(float left, float bottom, float width, float height, float nearPlane, float farPlane) - Parameters:
left
-bottom
-width
-height
-nearPlane
-farPlane
-
-
qFuzzyCompare
See
qFuzzyCompare(QMatrix4x4,
QMatrix4x4) - Parameters:
m1
-m2
-- Returns:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QMatrix4x4)
. -
copyDataTo
-
toString
See
operator<<(QDebug,
QMatrix4x4) -
clone
Creates and returns a copy of this object.
See
QMatrix4x4::
QMatrix4x4(QMatrix4x4) -
times
Overloaded function for
times(io.qt.gui.QMatrix4x4)
. -
multiply
Overloaded function for
multiply(io.qt.gui.QMatrix4x4)
. -
plus
Overloaded function for
plus(io.qt.gui.QMatrix4x4)
. -
add
Overloaded function for
add(io.qt.gui.QMatrix4x4)
. -
minus
Overloaded function for
minus(io.qt.gui.QMatrix4x4)
. -
subtract
Overloaded function for
subtract(io.qt.gui.QMatrix4x4)
. -
equals
Overloaded function for
equals(io.qt.gui.QMatrix4x4)
. -
rotate
Overloaded function for
rotate(float, float, float, float)
withz = 0.0f
. -
viewport
Overloaded function for
viewport(io.qt.core.QRectF)
. -
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
-
qFuzzyCompare
Overloaded function for
qFuzzyCompare(io.qt.gui.QMatrix4x4, io.qt.gui.QMatrix4x4)
. -
qFuzzyCompare
Overloaded function for
qFuzzyCompare(io.qt.gui.QMatrix4x4, io.qt.gui.QMatrix4x4)
. -
qFuzzyCompare
Overloaded function for
qFuzzyCompare(io.qt.gui.QMatrix4x4, io.qt.gui.QMatrix4x4)
.
-