All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.gui.QMatrix4x4 Maven / Gradle / Ivy

There is a newer version: 6.8.0
Show newest version
package io.qt.gui;

import io.qt.*;


/**
 * 

Represents a 4x4 transformation matrix in 3D space

*

Java wrapper for Qt class QMatrix4x4

*/ public class QMatrix4x4 extends QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

Java wrapper for Qt enum QMatrix4x4::Flag

* * @see Flags */ public enum Flag implements QtFlagEnumerator { /** *

Representing QMatrix4x4::Identity

*/ Identity(0), /** *

Representing QMatrix4x4::Translation

*/ Translation(1), /** *

Representing QMatrix4x4::Scale

*/ Scale(2), /** *

Representing QMatrix4x4::Rotation2D

*/ Rotation2D(4), /** *

Representing QMatrix4x4::Rotation

*/ Rotation(8), /** *

Representing QMatrix4x4::Perspective

*/ Perspective(16), /** *

Representing QMatrix4x4::General

*/ General(31); static { QtJambi_LibraryUtilities.initialize(); } private Flag(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Create a QFlags of the enum entry. * @return QFlags */ public @NonNull Flags asFlags() { return new Flags(value); } /** * Combines this entry with other enum entry. * @param e enum entry * @return new flag */ public @NonNull Flags combined(@NonNull Flag e) { return asFlags().setFlag(e, true); } /** * Excludes other enum entry from a flag of this entry. * @param e enum entry * @return new flag */ public @NonNull Flags cleared(@NonNull Flag e) { return asFlags().setFlag(e, false); } /** * Creates a new {@link Flags} from the entries. * @param values entries * @return new flag */ public static @NonNull Flags flags(@Nullable Flag @NonNull... values) { return new Flags(values); } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull Flag resolve(int value) { switch (value) { case 0: return Identity; case 1: return Translation; case 2: return Scale; case 4: return Rotation2D; case 8: return Rotation; case 16: return Perspective; case 31: return General; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** * {@link QFlags} type for enum {@link Flag} */ public static final class Flags extends QFlags implements Comparable { private static final long serialVersionUID = 0x92d9bce6c929c1c6L; static { QtJambi_LibraryUtilities.initialize(); } /** * Creates a new Flags where the flags in args are set. * @param args enum entries */ public Flags(@Nullable Flag @NonNull... args){ super(args); } /** * Creates a new Flags with given value. * @param value */ public Flags(int value) { super(value); } /** * Combines this flags with enum entry. * @param e enum entry * @return new Flags */ @Override public final @NonNull Flags combined(@StrictNonNull Flag e){ return new Flags(value() | e.value()); } /** * Sets the flag e * @param e enum entry * @return this */ public final @NonNull Flags setFlag(@Nullable Flag e){ return setFlag(e, true); } /** * Sets or clears the flag flag * @param e enum entry * @param on set (true) or clear (false) * @return this */ public final @NonNull Flags setFlag(@Nullable Flag e, boolean on){ if (on) { setValue(value() | e.value()); }else { setValue(value() & ~e.value()); } return this; } /** * Returns an array of flag objects represented by this Flags. * @return array of enum entries */ @Override public final @NonNull Flag @NonNull[] flags(){ return super.flags(Flag.values()); } /** * {@inheritDoc} */ @Override public final @NonNull Flags clone(){ return new Flags(value()); } /** * {@inheritDoc} */ @Override public final int compareTo(@StrictNonNull Flags other){ return Integer.compare(value(), other.value()); } } /** *

See QMatrix4x4::QMatrix4x4()

*/ public QMatrix4x4(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QMatrix4x4 instance); /** *

See QMatrix4x4::QMatrix4x4(QMatrix4x4)

*/ public QMatrix4x4(io.qt.gui.@NonNull QMatrix4x4 other){ super((QPrivateConstructor)null); initialize_native(this, other); } private native static void initialize_native(QMatrix4x4 instance, io.qt.gui.QMatrix4x4 other); /** *

See QMatrix4x4::QMatrix4x4(QTransform)

*/ public QMatrix4x4(io.qt.gui.@NonNull QTransform transform){ super((QPrivateConstructor)null); initialize_native(this, transform); } private native static void initialize_native(QMatrix4x4 instance, io.qt.gui.QTransform transform); /** *

See QMatrix4x4::QMatrix4x4(const float*)

*/ public QMatrix4x4(java.nio.@StrictNonNull FloatBuffer values){ super((QPrivateConstructor)null); java.util.Objects.requireNonNull(values, "Argument 'values': null not expected."); if(values.capacity() < 16) throw new IllegalArgumentException("Argument 'values': buffer minimum of capacity 16 expected."); initialize_native(this, values); } private native static void initialize_native(QMatrix4x4 instance, java.nio.FloatBuffer values); /** *

See QMatrix4x4::QMatrix4x4(const float*,int,int)

*/ public QMatrix4x4(java.nio.@StrictNonNull FloatBuffer values, int cols, int rows){ super((QPrivateConstructor)null); java.util.Objects.requireNonNull(values, "Argument 'values': null not expected."); initialize_native(this, values, cols, rows); } private native static void initialize_native(QMatrix4x4 instance, java.nio.FloatBuffer values, int cols, int rows); /** *

See QMatrix4x4::QMatrix4x4(float,float,float,float,float,float,float,float,float,float,float,float,float,float,float,float)

*/ 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){ super((QPrivateConstructor)null); initialize_native(this, m11, m12, m13, m14, m21, m22, m23, m24, m31, m32, m33, m34, m41, m42, m43, m44); } private native static void initialize_native(QMatrix4x4 instance, 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); /** *

See QMatrix4x4::column(int)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QVector4D column(int index){ return column_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index); } @QtUninvokable private native io.qt.gui.QVector4D column_native_int_constfct(long __this__nativeId, int index); /** *

See QMatrix4x4::copyDataTo(float*)const

*/ @QtUninvokable public final void copyDataTo(java.nio.@StrictNonNull FloatBuffer values){ java.util.Objects.requireNonNull(values, "Argument 'values': null not expected."); if(values.capacity() < 16) throw new IllegalArgumentException("Argument 'values': buffer minimum of capacity 16 expected."); copyDataTo_native_float_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), values); } @QtUninvokable private native void copyDataTo_native_float_ptr_constfct(long __this__nativeId, java.nio.FloatBuffer values); /** *

See QMatrix4x4::data()const

*/ @QtUninvokable public final float @StrictNonNull[] array(){ return array_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float[] array_native_constfct(long __this__nativeId); /** *

See QMatrix4x4::determinant()const

*/ @QtUninvokable public final double determinant(){ return determinant_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native double determinant_native_constfct(long __this__nativeId); /** *

See QMatrix4x4::fill(float)

*/ @QtUninvokable public final void fill(float value){ fill_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), value); } @QtUninvokable private native void fill_native_float(long __this__nativeId, float value); /** *

See QMatrix4x4::flags()const

*/ @QtUninvokable public final io.qt.gui.QMatrix4x4.@NonNull Flags flags(){ return new io.qt.gui.QMatrix4x4.Flags(flags_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int flags_native_constfct(long __this__nativeId); /** *

See QMatrix4x4::flipCoordinates()

*/ @QtUninvokable public final void flipCoordinates(){ flipCoordinates_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void flipCoordinates_native(long __this__nativeId); /** *

See QMatrix4x4::frustum(float,float,float,float,float,float)

*/ @QtUninvokable public final void frustum(float left, float right, float bottom, float top, float nearPlane, float farPlane){ frustum_native_float_float_float_float_float_float(QtJambi_LibraryUtilities.internal.nativeId(this), left, right, bottom, top, nearPlane, farPlane); } @QtUninvokable private native void frustum_native_float_float_float_float_float_float(long __this__nativeId, float left, float right, float bottom, float top, float nearPlane, float farPlane); /** *

See QMatrix4x4::inverted(bool*)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QMatrix4x4 inverted(){ return inverted_native_bool_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QMatrix4x4 inverted_native_bool_ptr_constfct(long __this__nativeId); /** *

See QMatrix4x4::isAffine()const

*/ @QtUninvokable public final boolean isAffine(){ return isAffine_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isAffine_native_constfct(long __this__nativeId); /** *

See QMatrix4x4::isIdentity()const

*/ @QtUninvokable public final boolean isIdentity(){ return isIdentity_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native boolean isIdentity_native_constfct(long __this__nativeId); /** *

See QMatrix4x4::lookAt(QVector3D,QVector3D,QVector3D)

*/ @QtUninvokable public final void lookAt(io.qt.gui.@NonNull QVector3D eye, io.qt.gui.@NonNull QVector3D center, io.qt.gui.@NonNull QVector3D up){ lookAt_native_cref_QVector3D_cref_QVector3D_cref_QVector3D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(eye), QtJambi_LibraryUtilities.internal.checkedNativeId(center), QtJambi_LibraryUtilities.internal.checkedNativeId(up)); } @QtUninvokable private native void lookAt_native_cref_QVector3D_cref_QVector3D_cref_QVector3D(long __this__nativeId, long eye, long center, long up); /** *

See QMatrix4x4::map(QPoint)const

*/ @QtUninvokable public final io.qt.core.@NonNull QPoint map(io.qt.core.@NonNull QPoint point){ return map_native_cref_QPoint_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(point)); } @QtUninvokable private native io.qt.core.QPoint map_native_cref_QPoint_constfct(long __this__nativeId, long point); /** *

See QMatrix4x4::map(QPointF)const

*/ @QtUninvokable public final io.qt.core.@NonNull QPointF map(io.qt.core.@NonNull QPointF point){ return map_native_cref_QPointF_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(point)); } @QtUninvokable private native io.qt.core.QPointF map_native_cref_QPointF_constfct(long __this__nativeId, long point); /** *

See QMatrix4x4::map(QVector3D)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QVector3D map(io.qt.gui.@NonNull QVector3D point){ return map_native_cref_QVector3D_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(point)); } @QtUninvokable private native io.qt.gui.QVector3D map_native_cref_QVector3D_constfct(long __this__nativeId, long point); /** *

See QMatrix4x4::map(QVector4D)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QVector4D map(io.qt.gui.@NonNull QVector4D point){ return map_native_cref_QVector4D_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(point)); } @QtUninvokable private native io.qt.gui.QVector4D map_native_cref_QVector4D_constfct(long __this__nativeId, long point); /** *

See QMatrix4x4::mapRect(QRect)const

*/ @QtUninvokable public final io.qt.core.@NonNull QRect mapRect(io.qt.core.@NonNull QRect rect){ return mapRect_native_cref_QRect_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect)); } @QtUninvokable private native io.qt.core.QRect mapRect_native_cref_QRect_constfct(long __this__nativeId, long rect); /** *

See QMatrix4x4::mapRect(QRectF)const

*/ @QtUninvokable public final io.qt.core.@NonNull QRectF mapRect(io.qt.core.@NonNull QRectF rect){ return mapRect_native_cref_QRectF_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect)); } @QtUninvokable private native io.qt.core.QRectF mapRect_native_cref_QRectF_constfct(long __this__nativeId, long rect); /** *

See QMatrix4x4::mapVector(QVector3D)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QVector3D mapVector(io.qt.gui.@NonNull QVector3D vector){ return mapVector_native_cref_QVector3D_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(vector)); } @QtUninvokable private native io.qt.gui.QVector3D mapVector_native_cref_QVector3D_constfct(long __this__nativeId, long vector); /** *

See QMatrix4x4::normalMatrix()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QMatrix3x3 normalMatrix(){ return normalMatrix_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QMatrix3x3 normalMatrix_native_constfct(long __this__nativeId); /** *

See QMatrix4x4::operator()(int,int)

*/ @QtUninvokable public final void setValue(int row, int column, float value){ setValue_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), row, column, value); } @QtUninvokable private native void setValue_native_int_int(long __this__nativeId, int row, int column, float value); /** *

See QMatrix4x4::operator()(int,int)const

*/ @QtUninvokable public final float value(int row, int column){ return value_native_int_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), row, column); } @QtUninvokable private native float value_native_int_int_constfct(long __this__nativeId, int row, int column); /** *

See operator*(QMatrix4x4,QMatrix4x4)

*/ @QtUninvokable public final io.qt.gui.@NonNull QMatrix4x4 times(io.qt.gui.@NonNull QMatrix4x4 m2){ return times_native_cref_QMatrix4x4(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(m2)); } @QtUninvokable private native io.qt.gui.QMatrix4x4 times_native_cref_QMatrix4x4(long __this__nativeId, long m2); /** *

See operator*(QMatrix4x4,QPoint)

* * @deprecated Use matrix.map(point) instead */ @Deprecated @QtUninvokable public final io.qt.core.@NonNull QPoint times(io.qt.core.@NonNull QPoint point){ return times_native_cref_QPoint(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(point)); } @Deprecated @QtUninvokable private native io.qt.core.QPoint times_native_cref_QPoint(long __this__nativeId, long point); /** *

See operator*(QMatrix4x4,QPointF)

* * @deprecated Use matrix.map(point) instead */ @Deprecated @QtUninvokable public final io.qt.core.@NonNull QPointF times(io.qt.core.@NonNull QPointF point){ return times_native_cref_QPointF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(point)); } @Deprecated @QtUninvokable private native io.qt.core.QPointF times_native_cref_QPointF(long __this__nativeId, long point); /** *

See operator*(QMatrix4x4,QVector3D)

* * @deprecated Use matrix.map(vector) instead */ @Deprecated @QtUninvokable public final io.qt.gui.@NonNull QVector3D times(io.qt.gui.@NonNull QVector3D vector){ return times_native_cref_QVector3D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(vector)); } @Deprecated @QtUninvokable private native io.qt.gui.QVector3D times_native_cref_QVector3D(long __this__nativeId, long vector); /** *

See operator*(QMatrix4x4,QVector4D)

*/ @QtUninvokable public final io.qt.gui.@NonNull QVector4D times(io.qt.gui.@NonNull QVector4D vector){ return times_native_cref_QVector4D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(vector)); } @QtUninvokable private native io.qt.gui.QVector4D times_native_cref_QVector4D(long __this__nativeId, long vector); /** *

See operator*(QMatrix4x4,float)

*/ @QtUninvokable public final io.qt.gui.@NonNull QMatrix4x4 times(float factor){ return times_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), factor); } @QtUninvokable private native io.qt.gui.QMatrix4x4 times_native_float(long __this__nativeId, float factor); /** *

See QMatrix4x4::operator*=(QMatrix4x4)

*/ @QtUninvokable public final @NonNull QMatrix4x4 multiply(io.qt.gui.@NonNull QMatrix4x4 other){ return multiply_native_cref_QMatrix4x4(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native QMatrix4x4 multiply_native_cref_QMatrix4x4(long __this__nativeId, long other); /** *

See QMatrix4x4::operator*=(float)

*/ @QtUninvokable public final @NonNull QMatrix4x4 multiply(float factor){ return multiply_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), factor); } @QtUninvokable private native QMatrix4x4 multiply_native_float(long __this__nativeId, float factor); /** *

See operator+(QMatrix4x4,QMatrix4x4)

*/ @QtUninvokable public final io.qt.gui.@NonNull QMatrix4x4 plus(io.qt.gui.@NonNull QMatrix4x4 m2){ return plus_native_cref_QMatrix4x4(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(m2)); } @QtUninvokable private native io.qt.gui.QMatrix4x4 plus_native_cref_QMatrix4x4(long __this__nativeId, long m2); /** *

See QMatrix4x4::operator+=(QMatrix4x4)

*/ @QtUninvokable public final @NonNull QMatrix4x4 add(io.qt.gui.@NonNull QMatrix4x4 other){ return add_native_cref_QMatrix4x4(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native QMatrix4x4 add_native_cref_QMatrix4x4(long __this__nativeId, long other); /** *

See operator-(QMatrix4x4)

*/ @QtUninvokable public final io.qt.gui.@NonNull QMatrix4x4 unaryMinus(){ return unaryMinus_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QMatrix4x4 unaryMinus_native(long __this__nativeId); /** *

See operator-(QMatrix4x4,QMatrix4x4)

*/ @QtUninvokable public final io.qt.gui.@NonNull QMatrix4x4 minus(io.qt.gui.@NonNull QMatrix4x4 m2){ return minus_native_cref_QMatrix4x4(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(m2)); } @QtUninvokable private native io.qt.gui.QMatrix4x4 minus_native_cref_QMatrix4x4(long __this__nativeId, long m2); /** *

See QMatrix4x4::operator-=(QMatrix4x4)

*/ @QtUninvokable public final @NonNull QMatrix4x4 subtract(io.qt.gui.@NonNull QMatrix4x4 other){ return subtract_native_cref_QMatrix4x4(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native QMatrix4x4 subtract_native_cref_QMatrix4x4(long __this__nativeId, long other); /** *

See operator/(QMatrix4x4,float)

*/ @QtUninvokable public final io.qt.gui.@NonNull QMatrix4x4 div(float divisor){ return div_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), divisor); } @QtUninvokable private native io.qt.gui.QMatrix4x4 div_native_float(long __this__nativeId, float divisor); /** *

See QMatrix4x4::operator/=(float)

*/ @QtUninvokable public final @NonNull QMatrix4x4 divide(float divisor){ return divide_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), divisor); } @QtUninvokable private native QMatrix4x4 divide_native_float(long __this__nativeId, float divisor); /** *

See operator<<(QDataStream&,QMatrix4x4)

*/ @QtUninvokable public void writeTo(io.qt.core.@StrictNonNull QDataStream arg__1){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); writeTo_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void writeTo_native_ref_QDataStream(long __this__nativeId, long arg__1); /** *

See QMatrix4x4::operator==(QMatrix4x4)const

*/ @QtUninvokable public final boolean equals(io.qt.gui.@NonNull QMatrix4x4 other){ return equals_native_cref_QMatrix4x4_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native boolean equals_native_cref_QMatrix4x4_constfct(long __this__nativeId, long other); /** *

See operator>>(QDataStream&,QMatrix4x4&)

*/ @QtUninvokable public void readFrom(io.qt.core.@StrictNonNull QDataStream arg__1){ java.util.Objects.requireNonNull(arg__1, "Argument 'arg__1': null not expected."); readFrom_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1)); } @QtUninvokable private native void readFrom_native_ref_QDataStream(long __this__nativeId, long arg__1); /** *

See QMatrix4x4::optimize()

*/ @QtUninvokable public final void optimize(){ optimize_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void optimize_native(long __this__nativeId); /** *

See QMatrix4x4::ortho(QRect)

*/ @QtUninvokable public final void ortho(io.qt.core.@NonNull QRect rect){ ortho_native_cref_QRect(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect)); } @QtUninvokable private native void ortho_native_cref_QRect(long __this__nativeId, long rect); /** *

See QMatrix4x4::ortho(QRectF)

*/ @QtUninvokable public final void ortho(io.qt.core.@NonNull QRectF rect){ ortho_native_cref_QRectF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect)); } @QtUninvokable private native void ortho_native_cref_QRectF(long __this__nativeId, long rect); /** *

See QMatrix4x4::ortho(float,float,float,float,float,float)

*/ @QtUninvokable public final void ortho(float left, float right, float bottom, float top, float nearPlane, float farPlane){ ortho_native_float_float_float_float_float_float(QtJambi_LibraryUtilities.internal.nativeId(this), left, right, bottom, top, nearPlane, farPlane); } @QtUninvokable private native void ortho_native_float_float_float_float_float_float(long __this__nativeId, float left, float right, float bottom, float top, float nearPlane, float farPlane); /** *

See QMatrix4x4::perspective(float,float,float,float)

*/ @QtUninvokable public final void perspective(float verticalAngle, float aspectRatio, float nearPlane, float farPlane){ perspective_native_float_float_float_float(QtJambi_LibraryUtilities.internal.nativeId(this), verticalAngle, aspectRatio, nearPlane, farPlane); } @QtUninvokable private native void perspective_native_float_float_float_float(long __this__nativeId, float verticalAngle, float aspectRatio, float nearPlane, float farPlane); /** *

See QMatrix4x4::projectedRotate(float,float,float,float)

*/ @QtUninvokable public final void projectedRotate(float angle, float x, float y, float z){ projectedRotate_native_float_float_float_float(QtJambi_LibraryUtilities.internal.nativeId(this), angle, x, y, z); } @QtUninvokable private native void projectedRotate_native_float_float_float_float(long __this__nativeId, float angle, float x, float y, float z); /** *

See QMatrix4x4::projectedRotate(float,float,float,float,float)

*/ @QtUninvokable public final void projectedRotate(float angle, float x, float y, float z, float distanceToPlane){ projectedRotate_native_float_float_float_float_float(QtJambi_LibraryUtilities.internal.nativeId(this), angle, x, y, z, distanceToPlane); } @QtUninvokable private native void projectedRotate_native_float_float_float_float_float(long __this__nativeId, float angle, float x, float y, float z, float distanceToPlane); /** *

See QMatrix4x4::rotate(QQuaternion)

*/ @QtUninvokable public final void rotate(io.qt.gui.@NonNull QQuaternion quaternion){ rotate_native_cref_QQuaternion(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(quaternion)); } @QtUninvokable private native void rotate_native_cref_QQuaternion(long __this__nativeId, long quaternion); /** *

See QMatrix4x4::rotate(float,QVector3D)

*/ @QtUninvokable public final void rotate(float angle, io.qt.gui.@NonNull QVector3D vector){ rotate_native_float_cref_QVector3D(QtJambi_LibraryUtilities.internal.nativeId(this), angle, QtJambi_LibraryUtilities.internal.checkedNativeId(vector)); } @QtUninvokable private native void rotate_native_float_cref_QVector3D(long __this__nativeId, float angle, long vector); /** *

See QMatrix4x4::rotate(float,float,float,float)

*/ @QtUninvokable public final void rotate(float angle, float x, float y, float z){ rotate_native_float_float_float_float(QtJambi_LibraryUtilities.internal.nativeId(this), angle, x, y, z); } @QtUninvokable private native void rotate_native_float_float_float_float(long __this__nativeId, float angle, float x, float y, float z); /** *

See QMatrix4x4::row(int)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QVector4D row(int index){ return row_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index); } @QtUninvokable private native io.qt.gui.QVector4D row_native_int_constfct(long __this__nativeId, int index); /** *

See QMatrix4x4::scale(QVector3D)

*/ @QtUninvokable public final void scale(io.qt.gui.@NonNull QVector3D vector){ scale_native_cref_QVector3D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(vector)); } @QtUninvokable private native void scale_native_cref_QVector3D(long __this__nativeId, long vector); /** *

See QMatrix4x4::scale(float)

*/ @QtUninvokable public final void scale(float factor){ scale_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), factor); } @QtUninvokable private native void scale_native_float(long __this__nativeId, float factor); /** *

See QMatrix4x4::scale(float,float)

*/ @QtUninvokable public final void scale(float x, float y){ scale_native_float_float(QtJambi_LibraryUtilities.internal.nativeId(this), x, y); } @QtUninvokable private native void scale_native_float_float(long __this__nativeId, float x, float y); /** *

See QMatrix4x4::scale(float,float,float)

*/ @QtUninvokable public final void scale(float x, float y, float z){ scale_native_float_float_float(QtJambi_LibraryUtilities.internal.nativeId(this), x, y, z); } @QtUninvokable private native void scale_native_float_float_float(long __this__nativeId, float x, float y, float z); /** *

See QMatrix4x4::setColumn(int,QVector4D)

*/ @QtUninvokable public final void setColumn(int index, io.qt.gui.@NonNull QVector4D value){ setColumn_native_int_cref_QVector4D(QtJambi_LibraryUtilities.internal.nativeId(this), index, QtJambi_LibraryUtilities.internal.checkedNativeId(value)); } @QtUninvokable private native void setColumn_native_int_cref_QVector4D(long __this__nativeId, int index, long value); /** *

See QMatrix4x4::setRow(int,QVector4D)

*/ @QtUninvokable public final void setRow(int index, io.qt.gui.@NonNull QVector4D value){ setRow_native_int_cref_QVector4D(QtJambi_LibraryUtilities.internal.nativeId(this), index, QtJambi_LibraryUtilities.internal.checkedNativeId(value)); } @QtUninvokable private native void setRow_native_int_cref_QVector4D(long __this__nativeId, int index, long value); /** *

See QMatrix4x4::setToIdentity()

*/ @QtUninvokable public final void setToIdentity(){ setToIdentity_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void setToIdentity_native(long __this__nativeId); /** *

See QMatrix4x4::toTransform()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QTransform toTransform(){ return toTransform_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QTransform toTransform_native_constfct(long __this__nativeId); /** *

See QMatrix4x4::toTransform(float)const

*/ @QtUninvokable public final io.qt.gui.@NonNull QTransform toTransform(float distanceToPlane){ return toTransform_native_float_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), distanceToPlane); } @QtUninvokable private native io.qt.gui.QTransform toTransform_native_float_constfct(long __this__nativeId, float distanceToPlane); /** *

See QMatrix4x4::translate(QVector3D)

*/ @QtUninvokable public final void translate(io.qt.gui.@NonNull QVector3D vector){ translate_native_cref_QVector3D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(vector)); } @QtUninvokable private native void translate_native_cref_QVector3D(long __this__nativeId, long vector); /** *

See QMatrix4x4::translate(float,float)

*/ @QtUninvokable public final void translate(float x, float y){ translate_native_float_float(QtJambi_LibraryUtilities.internal.nativeId(this), x, y); } @QtUninvokable private native void translate_native_float_float(long __this__nativeId, float x, float y); /** *

See QMatrix4x4::translate(float,float,float)

*/ @QtUninvokable public final void translate(float x, float y, float z){ translate_native_float_float_float(QtJambi_LibraryUtilities.internal.nativeId(this), x, y, z); } @QtUninvokable private native void translate_native_float_float_float(long __this__nativeId, float x, float y, float z); /** *

See QMatrix4x4::transposed()const

*/ @QtUninvokable public final io.qt.gui.@NonNull QMatrix4x4 transposed(){ return transposed_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.gui.QMatrix4x4 transposed_native_constfct(long __this__nativeId); /** *

See QMatrix4x4::viewport(QRectF)

*/ @QtUninvokable public final void viewport(io.qt.core.@NonNull QRectF rect){ viewport_native_cref_QRectF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect)); } @QtUninvokable private native void viewport_native_cref_QRectF(long __this__nativeId, long rect); /** *

See QMatrix4x4::viewport(float,float,float,float,float,float)

*/ @QtUninvokable public final void viewport(float left, float bottom, float width, float height, float nearPlane, float farPlane){ viewport_native_float_float_float_float_float_float(QtJambi_LibraryUtilities.internal.nativeId(this), left, bottom, width, height, nearPlane, farPlane); } @QtUninvokable private native void viewport_native_float_float_float_float_float_float(long __this__nativeId, float left, float bottom, float width, float height, float nearPlane, float farPlane); /** *

See qFuzzyCompare(QMatrix4x4,QMatrix4x4)

*/ public static boolean qFuzzyCompare(io.qt.gui.@NonNull QMatrix4x4 m1, io.qt.gui.@NonNull QMatrix4x4 m2){ return qFuzzyCompare_native_cref_QMatrix4x4_cref_QMatrix4x4(QtJambi_LibraryUtilities.internal.checkedNativeId(m1), QtJambi_LibraryUtilities.internal.checkedNativeId(m2)); } private native static boolean qFuzzyCompare_native_cref_QMatrix4x4_cref_QMatrix4x4(long m1, long m2); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QMatrix4x4(QPrivateConstructor p) { super(p); } /** *

See QMatrix4x4::operator==(QMatrix4x4)const

*/ @Override @QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.gui.QMatrix4x4) { return equals((io.qt.gui.QMatrix4x4) other); } return false; } /** * Returns the objects's hash code computed by qHash(QMatrix4x4). */ @QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native static int hashCode_native(long __this_nativeId); // TEMPLATE - gui.matrix_constructor - START private static java.nio.FloatBuffer wrap(float[] values){ if(values.length < 16) throw new ArrayIndexOutOfBoundsException(16); return java.nio.FloatBuffer.wrap(values); } public QMatrix4x4(float[] values){ this(wrap(values)); } @QtUninvokable public final void copyDataTo(float[] values) { copyDataTo(wrap(values)); } // TEMPLATE - gui.matrix_constructor - END /** *

See operator<<(QDebug,QMatrix4x4)

*/ @QtUninvokable @Override public @NonNull String toString() { return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private static native String toString_native(long __this_nativeId); /** *

Creates and returns a copy of this object.

See QMatrix4x4::QMatrix4x4(QMatrix4x4)

*/ @QtUninvokable @Override public QMatrix4x4 clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native QMatrix4x4 clone_native(long __this_nativeId); /** *

Overloaded function for {@link #times(io.qt.gui.QMatrix4x4)}.

*/ @QtUninvokable public final io.qt.gui.@NonNull QMatrix4x4 times(io.qt.gui.@NonNull QTransform m2) { return times(new io.qt.gui.QMatrix4x4(m2)); } /** *

Overloaded function for {@link #multiply(io.qt.gui.QMatrix4x4)}.

*/ @QtUninvokable public final @NonNull QMatrix4x4 multiply(io.qt.gui.@NonNull QTransform other) { return multiply(new io.qt.gui.QMatrix4x4(other)); } /** *

Overloaded function for {@link #plus(io.qt.gui.QMatrix4x4)}.

*/ @QtUninvokable public final io.qt.gui.@NonNull QMatrix4x4 plus(io.qt.gui.@NonNull QTransform m2) { return plus(new io.qt.gui.QMatrix4x4(m2)); } /** *

Overloaded function for {@link #add(io.qt.gui.QMatrix4x4)}.

*/ @QtUninvokable public final @NonNull QMatrix4x4 add(io.qt.gui.@NonNull QTransform other) { return add(new io.qt.gui.QMatrix4x4(other)); } /** *

Overloaded function for {@link #minus(io.qt.gui.QMatrix4x4)}.

*/ @QtUninvokable public final io.qt.gui.@NonNull QMatrix4x4 minus(io.qt.gui.@NonNull QTransform m2) { return minus(new io.qt.gui.QMatrix4x4(m2)); } /** *

Overloaded function for {@link #subtract(io.qt.gui.QMatrix4x4)}.

*/ @QtUninvokable public final @NonNull QMatrix4x4 subtract(io.qt.gui.@NonNull QTransform other) { return subtract(new io.qt.gui.QMatrix4x4(other)); } /** *

Overloaded function for {@link #equals(io.qt.gui.QMatrix4x4)}.

*/ @QtUninvokable public final boolean equals(io.qt.gui.@NonNull QTransform other) { return equals(new io.qt.gui.QMatrix4x4(other)); } /** *

Overloaded function for {@link #rotate(float, float, float, float)} * with z = 0.0f.

*/ @QtUninvokable public final void rotate(float angle, float x, float y) { rotate(angle, x, y, (float)0.0f); } /** *

Overloaded function for {@link #viewport(io.qt.core.QRectF)}.

*/ @QtUninvokable public final void viewport(io.qt.core.@NonNull QRect rect) { viewport(new io.qt.core.QRectF(rect)); } /** *

Overloaded function for {@link #viewport(float, float, float, float, float, float)} * with farPlane = 1.0f.

*/ @QtUninvokable public final void viewport(float left, float bottom, float width, float height, float nearPlane) { viewport(left, bottom, width, height, nearPlane, (float)1.0f); } /** *

Overloaded function for {@link #viewport(float, float, float, float, float, float)}

*

with:

    *
  • nearPlane = 0.0f
  • *
  • farPlane = 1.0f
  • *
*/ @QtUninvokable public final void viewport(float left, float bottom, float width, float height) { viewport(left, bottom, width, height, (float)0.0f, (float)1.0f); } /** *

Overloaded function for {@link #qFuzzyCompare(io.qt.gui.QMatrix4x4, io.qt.gui.QMatrix4x4)}.

*/ public static boolean qFuzzyCompare(io.qt.gui.@NonNull QTransform m1, io.qt.gui.@NonNull QMatrix4x4 m2) { return qFuzzyCompare(new io.qt.gui.QMatrix4x4(m1), m2); } /** *

Overloaded function for {@link #qFuzzyCompare(io.qt.gui.QMatrix4x4, io.qt.gui.QMatrix4x4)}.

*/ public static boolean qFuzzyCompare(io.qt.gui.@NonNull QMatrix4x4 m1, io.qt.gui.@NonNull QTransform m2) { return qFuzzyCompare(m1, new io.qt.gui.QMatrix4x4(m2)); } /** *

Overloaded function for {@link #qFuzzyCompare(io.qt.gui.QMatrix4x4, io.qt.gui.QMatrix4x4)}.

*/ public static boolean qFuzzyCompare(io.qt.gui.@NonNull QTransform m1, io.qt.gui.@NonNull QTransform m2) { return qFuzzyCompare(new io.qt.gui.QMatrix4x4(m1), new io.qt.gui.QMatrix4x4(m2)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy