io.qt.gui.QMatrix4x4 Maven / Gradle / Ivy
package io.qt.gui;
/**
* Represents a 4x4 transformation matrix in 3D space
* Java wrapper for Qt class QMatrix4x4
*/
public class QMatrix4x4 extends io.qt.QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QMatrix4x4::Flag
*
* @see Flags
*/
public enum Flag implements io.qt.QtFlagEnumerator {
Identity(0),
Translation(1),
Scale(2),
Rotation2D(4),
Rotation(8),
Perspective(16),
General(31);
private Flag(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
public int value() {
return value;
}
/**
* Create a QFlags of the enum entry.
* @return QFlags
*/
public Flags asFlags() {
return new Flags(value);
}
/**
* Combines this entry with other enum entry.
* @param e enum entry
* @return new flag
*/
public Flags combined(Flag e) {
return new Flags(this, e);
}
/**
* Creates a new {@link Flags} from the entries.
* @param values entries
* @return new flag
*/
public static Flags flags(Flag ... values) {
return new Flags(values);
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static 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 io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* QFlags type for enum {@link Flag}
*/
public static final class Flags extends io.qt.QFlags implements Comparable {
private static final long serialVersionUID = 0x92d9bce6c929c1c6L;
/**
* Creates a new Flags where the flags in args
are set.
* @param args enum entries
*/
public Flags(Flag ... 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 Flags combined(Flag e){
return new Flags(value() | e.value());
}
/**
* Sets the flag e
* @param e enum entry
* @return this
*/
public final Flags setFlag(Flag e){
super.setFlag(e);
return this;
}
/**
* Sets or clears the flag flag
* @param e enum entry
* @param on set (true) or clear (false)
* @return this
*/
public final Flags setFlag(Flag e, boolean on){
super.setFlag(e, on);
return this;
}
/**
* Returns an array of flag objects represented by this Flags.
* @return array of enum entries
*/
@Override
public final Flag[] flags(){
return super.flags(Flag.values());
}
/**
* {@inheritDoc}
*/
@Override
public final Flags clone(){
return new Flags(value());
}
/**
* {@inheritDoc}
*/
@Override
public final int compareTo(Flags other){
return Integer.compare(value(), other.value());
}
}
/**
*
*/
public QMatrix4x4(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QMatrix4x4 instance);
/**
* See QMatrix4x4::QMatrix4x4(QTransform)
*/
public QMatrix4x4(io.qt.gui.QTransform transform){
super((QPrivateConstructor)null);
initialize_native(this, transform);
}
private native static void initialize_native(QMatrix4x4 instance, io.qt.gui.QTransform transform);
public QMatrix4x4(java.nio.FloatBuffer values){
super((QPrivateConstructor)null);
initialize_native(this, values);
}
private native static void initialize_native(QMatrix4x4 instance, java.nio.FloatBuffer values);
public QMatrix4x4(java.nio.FloatBuffer values, int cols, int rows){
super((QPrivateConstructor)null);
initialize_native(this, values, cols, rows);
}
private native static void initialize_native(QMatrix4x4 instance, java.nio.FloatBuffer values, int cols, int rows);
/**
*
*/
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
*/
@io.qt.QtUninvokable
public final io.qt.gui.QVector4D column(int index){
return column_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@io.qt.QtUninvokable
private native io.qt.gui.QVector4D column_native_int_constfct(long __this__nativeId, int index);
/**
* See QMatrix4x4::copyDataTo(float*)const
*/
@io.qt.QtUninvokable
public final void copyDataTo(java.nio.FloatBuffer values){
copyDataTo_native_float_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), values);
}
@io.qt.QtUninvokable
private native void copyDataTo_native_float_ptr_constfct(long __this__nativeId, java.nio.FloatBuffer values);
/**
*
*/
@io.qt.QtUninvokable
public final float[] array(){
return array_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native float[] array_native_constfct(long __this__nativeId);
/**
* See QMatrix4x4::determinant()const
*/
@io.qt.QtUninvokable
public final double determinant(){
return determinant_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native double determinant_native_constfct(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final void fill(float value){
fill_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), value);
}
@io.qt.QtUninvokable
private native void fill_native_float(long __this__nativeId, float value);
@io.qt.QtUninvokable
public final io.qt.gui.QMatrix4x4.Flags flags(){
return new io.qt.gui.QMatrix4x4.Flags(flags_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@io.qt.QtUninvokable
private native int flags_native_constfct(long __this__nativeId);
@io.qt.QtUninvokable
public final void flipCoordinates(){
flipCoordinates_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void flipCoordinates_native(long __this__nativeId);
/**
* See QMatrix4x4::frustum(float,float,float,float,float,float)
*/
@io.qt.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);
}
@io.qt.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
*/
@io.qt.QtUninvokable
public final io.qt.gui.QMatrix4x4 inverted(){
return inverted_native_bool_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QMatrix4x4 inverted_native_bool_ptr_constfct(long __this__nativeId);
/**
* See QMatrix4x4::isAffine()const
*/
@io.qt.QtUninvokable
public final boolean isAffine(){
return isAffine_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isAffine_native_constfct(long __this__nativeId);
/**
* See QMatrix4x4::isIdentity()const
*/
@io.qt.QtUninvokable
public final boolean isIdentity(){
return isIdentity_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native boolean isIdentity_native_constfct(long __this__nativeId);
/**
* See QMatrix4x4::lookAt(QVector3D,QVector3D,QVector3D)
*/
@io.qt.QtUninvokable
public final void lookAt(io.qt.gui.QVector3D eye, io.qt.gui.QVector3D center, io.qt.gui.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));
}
@io.qt.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
*/
@io.qt.QtUninvokable
public final io.qt.core.QPoint map(io.qt.core.QPoint point){
return map_native_cref_QPoint_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(point));
}
@io.qt.QtUninvokable
private native io.qt.core.QPoint map_native_cref_QPoint_constfct(long __this__nativeId, long point);
/**
* See QMatrix4x4::map(QPointF)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QPointF map(io.qt.core.QPointF point){
return map_native_cref_QPointF_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(point));
}
@io.qt.QtUninvokable
private native io.qt.core.QPointF map_native_cref_QPointF_constfct(long __this__nativeId, long point);
/**
* See QMatrix4x4::map(QVector3D)const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QVector3D map(io.qt.gui.QVector3D point){
return map_native_cref_QVector3D_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(point));
}
@io.qt.QtUninvokable
private native io.qt.gui.QVector3D map_native_cref_QVector3D_constfct(long __this__nativeId, long point);
/**
* See QMatrix4x4::map(QVector4D)const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QVector4D map(io.qt.gui.QVector4D point){
return map_native_cref_QVector4D_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(point));
}
@io.qt.QtUninvokable
private native io.qt.gui.QVector4D map_native_cref_QVector4D_constfct(long __this__nativeId, long point);
/**
* See QMatrix4x4::mapRect(QRect)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QRect mapRect(io.qt.core.QRect rect){
return mapRect_native_cref_QRect_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect));
}
@io.qt.QtUninvokable
private native io.qt.core.QRect mapRect_native_cref_QRect_constfct(long __this__nativeId, long rect);
/**
* See QMatrix4x4::mapRect(QRectF)const
*/
@io.qt.QtUninvokable
public final io.qt.core.QRectF mapRect(io.qt.core.QRectF rect){
return mapRect_native_cref_QRectF_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect));
}
@io.qt.QtUninvokable
private native io.qt.core.QRectF mapRect_native_cref_QRectF_constfct(long __this__nativeId, long rect);
/**
* See QMatrix4x4::mapVector(QVector3D)const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QVector3D mapVector(io.qt.gui.QVector3D vector){
return mapVector_native_cref_QVector3D_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(vector));
}
@io.qt.QtUninvokable
private native io.qt.gui.QVector3D mapVector_native_cref_QVector3D_constfct(long __this__nativeId, long vector);
/**
* See QMatrix4x4::normalMatrix()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QMatrix3x3 normalMatrix(){
return normalMatrix_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QMatrix3x3 normalMatrix_native_constfct(long __this__nativeId);
/**
* See QMatrix4x4::operator()(int,int)
*/
@io.qt.QtUninvokable
public final void setValue(int row, int column, float value){
setValue_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), row, column, value);
}
@io.qt.QtUninvokable
private native void setValue_native_int_int(long __this__nativeId, int row, int column, float value);
/**
* See QMatrix4x4::operator()(int,int)const
*/
@io.qt.QtUninvokable
public final float value(int row, int column){
return value_native_int_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), row, column);
}
@io.qt.QtUninvokable
private native float value_native_int_int_constfct(long __this__nativeId, int row, int column);
/**
* See QMatrix4x4::operator*=(QMatrix4x4)
*/
@io.qt.QtUninvokable
public final QMatrix4x4 multiply(io.qt.gui.QMatrix4x4 other){
multiply_native_cref_QMatrix4x4(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
return this;
}
@io.qt.QtUninvokable
private native QMatrix4x4 multiply_native_cref_QMatrix4x4(long __this__nativeId, long other);
/**
* See QMatrix4x4::operator*=(float)
*/
@io.qt.QtUninvokable
public final QMatrix4x4 multiply(float factor){
multiply_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), factor);
return this;
}
@io.qt.QtUninvokable
private native QMatrix4x4 multiply_native_float(long __this__nativeId, float factor);
/**
* See QMatrix4x4::operator+=(QMatrix4x4)
*/
@io.qt.QtUninvokable
public final QMatrix4x4 add(io.qt.gui.QMatrix4x4 other){
add_native_cref_QMatrix4x4(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
return this;
}
@io.qt.QtUninvokable
private native QMatrix4x4 add_native_cref_QMatrix4x4(long __this__nativeId, long other);
/**
* See QMatrix4x4::operator-=(QMatrix4x4)
*/
@io.qt.QtUninvokable
public final QMatrix4x4 subtract(io.qt.gui.QMatrix4x4 other){
subtract_native_cref_QMatrix4x4(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
return this;
}
@io.qt.QtUninvokable
private native QMatrix4x4 subtract_native_cref_QMatrix4x4(long __this__nativeId, long other);
/**
* See QMatrix4x4::operator/=(float)
*/
@io.qt.QtUninvokable
public final QMatrix4x4 divide(float divisor){
divide_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), divisor);
return this;
}
@io.qt.QtUninvokable
private native QMatrix4x4 divide_native_float(long __this__nativeId, float divisor);
@io.qt.QtUninvokable
public void writeTo(io.qt.core.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));
}
@io.qt.QtUninvokable
private native void writeTo_native_ref_QDataStream(long __this__nativeId, long arg__1);
/**
* See QMatrix4x4::operator==(QMatrix4x4)const
*/
@io.qt.QtUninvokable
private final boolean operator_equal(io.qt.gui.QMatrix4x4 other){
return operator_equal_native_cref_QMatrix4x4_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@io.qt.QtUninvokable
private native boolean operator_equal_native_cref_QMatrix4x4_constfct(long __this__nativeId, long other);
@io.qt.QtUninvokable
public void readFrom(io.qt.core.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));
}
@io.qt.QtUninvokable
private native void readFrom_native_ref_QDataStream(long __this__nativeId, long arg__1);
/**
*
*/
@io.qt.QtUninvokable
public final void optimize(){
optimize_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void optimize_native(long __this__nativeId);
/**
*
*/
@io.qt.QtUninvokable
public final void ortho(io.qt.core.QRect rect){
ortho_native_cref_QRect(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect));
}
@io.qt.QtUninvokable
private native void ortho_native_cref_QRect(long __this__nativeId, long rect);
/**
*
*/
@io.qt.QtUninvokable
public final void ortho(io.qt.core.QRectF rect){
ortho_native_cref_QRectF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect));
}
@io.qt.QtUninvokable
private native void ortho_native_cref_QRectF(long __this__nativeId, long rect);
/**
* See QMatrix4x4::ortho(float,float,float,float,float,float)
*/
@io.qt.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);
}
@io.qt.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)
*/
@io.qt.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);
}
@io.qt.QtUninvokable
private native void perspective_native_float_float_float_float(long __this__nativeId, float verticalAngle, float aspectRatio, float nearPlane, float farPlane);
@io.qt.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);
}
@io.qt.QtUninvokable
private native void projectedRotate_native_float_float_float_float(long __this__nativeId, float angle, float x, float y, float z);
/**
* See QMatrix4x4::rotate(QQuaternion)
*/
@io.qt.QtUninvokable
public final void rotate(io.qt.gui.QQuaternion quaternion){
rotate_native_cref_QQuaternion(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(quaternion));
}
@io.qt.QtUninvokable
private native void rotate_native_cref_QQuaternion(long __this__nativeId, long quaternion);
/**
* See QMatrix4x4::rotate(float,QVector3D)
*/
@io.qt.QtUninvokable
public final void rotate(float angle, io.qt.gui.QVector3D vector){
rotate_native_float_cref_QVector3D(QtJambi_LibraryUtilities.internal.nativeId(this), angle, QtJambi_LibraryUtilities.internal.checkedNativeId(vector));
}
@io.qt.QtUninvokable
private native void rotate_native_float_cref_QVector3D(long __this__nativeId, float angle, long vector);
/**
* Overloaded function for {@link #rotate(float, float, float, float)}
* with z = 0.0f
.
*/
@io.qt.QtUninvokable
public final void rotate(float angle, float x, float y) {
rotate(angle, x, y, (float)0.0f);
}
/**
* See QMatrix4x4::rotate(float,float,float,float)
*/
@io.qt.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);
}
@io.qt.QtUninvokable
private native void rotate_native_float_float_float_float(long __this__nativeId, float angle, float x, float y, float z);
/**
*
*/
@io.qt.QtUninvokable
public final io.qt.gui.QVector4D row(int index){
return row_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@io.qt.QtUninvokable
private native io.qt.gui.QVector4D row_native_int_constfct(long __this__nativeId, int index);
/**
* See QMatrix4x4::scale(QVector3D)
*/
@io.qt.QtUninvokable
public final void scale(io.qt.gui.QVector3D vector){
scale_native_cref_QVector3D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(vector));
}
@io.qt.QtUninvokable
private native void scale_native_cref_QVector3D(long __this__nativeId, long vector);
/**
*
*/
@io.qt.QtUninvokable
public final void scale(float factor){
scale_native_float(QtJambi_LibraryUtilities.internal.nativeId(this), factor);
}
@io.qt.QtUninvokable
private native void scale_native_float(long __this__nativeId, float factor);
/**
* See QMatrix4x4::scale(float,float)
*/
@io.qt.QtUninvokable
public final void scale(float x, float y){
scale_native_float_float(QtJambi_LibraryUtilities.internal.nativeId(this), x, y);
}
@io.qt.QtUninvokable
private native void scale_native_float_float(long __this__nativeId, float x, float y);
/**
* See QMatrix4x4::scale(float,float,float)
*/
@io.qt.QtUninvokable
public final void scale(float x, float y, float z){
scale_native_float_float_float(QtJambi_LibraryUtilities.internal.nativeId(this), x, y, z);
}
@io.qt.QtUninvokable
private native void scale_native_float_float_float(long __this__nativeId, float x, float y, float z);
/**
* See QMatrix4x4::setColumn(int,QVector4D)
*/
@io.qt.QtUninvokable
public final void setColumn(int index, io.qt.gui.QVector4D value){
setColumn_native_int_cref_QVector4D(QtJambi_LibraryUtilities.internal.nativeId(this), index, QtJambi_LibraryUtilities.internal.checkedNativeId(value));
}
@io.qt.QtUninvokable
private native void setColumn_native_int_cref_QVector4D(long __this__nativeId, int index, long value);
/**
* See QMatrix4x4::setRow(int,QVector4D)
*/
@io.qt.QtUninvokable
public final void setRow(int index, io.qt.gui.QVector4D value){
setRow_native_int_cref_QVector4D(QtJambi_LibraryUtilities.internal.nativeId(this), index, QtJambi_LibraryUtilities.internal.checkedNativeId(value));
}
@io.qt.QtUninvokable
private native void setRow_native_int_cref_QVector4D(long __this__nativeId, int index, long value);
/**
* See QMatrix4x4::setToIdentity()
*/
@io.qt.QtUninvokable
public final void setToIdentity(){
setToIdentity_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native void setToIdentity_native(long __this__nativeId);
/**
* See QMatrix4x4::toTransform()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QTransform toTransform(){
return toTransform_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QTransform toTransform_native_constfct(long __this__nativeId);
/**
* See QMatrix4x4::toTransform(float)const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QTransform toTransform(float distanceToPlane){
return toTransform_native_float_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), distanceToPlane);
}
@io.qt.QtUninvokable
private native io.qt.gui.QTransform toTransform_native_float_constfct(long __this__nativeId, float distanceToPlane);
/**
* See QMatrix4x4::translate(QVector3D)
*/
@io.qt.QtUninvokable
public final void translate(io.qt.gui.QVector3D vector){
translate_native_cref_QVector3D(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(vector));
}
@io.qt.QtUninvokable
private native void translate_native_cref_QVector3D(long __this__nativeId, long vector);
/**
* See QMatrix4x4::translate(float,float)
*/
@io.qt.QtUninvokable
public final void translate(float x, float y){
translate_native_float_float(QtJambi_LibraryUtilities.internal.nativeId(this), x, y);
}
@io.qt.QtUninvokable
private native void translate_native_float_float(long __this__nativeId, float x, float y);
/**
* See QMatrix4x4::translate(float,float,float)
*/
@io.qt.QtUninvokable
public final void translate(float x, float y, float z){
translate_native_float_float_float(QtJambi_LibraryUtilities.internal.nativeId(this), x, y, z);
}
@io.qt.QtUninvokable
private native void translate_native_float_float_float(long __this__nativeId, float x, float y, float z);
/**
* See QMatrix4x4::transposed()const
*/
@io.qt.QtUninvokable
public final io.qt.gui.QMatrix4x4 transposed(){
return transposed_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private native io.qt.gui.QMatrix4x4 transposed_native_constfct(long __this__nativeId);
/**
* See QMatrix4x4::viewport(QRectF)
*/
@io.qt.QtUninvokable
public final void viewport(io.qt.core.QRectF rect){
viewport_native_cref_QRectF(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rect));
}
@io.qt.QtUninvokable
private native void viewport_native_cref_QRectF(long __this__nativeId, long rect);
/**
* Overloaded function for {@link #viewport(float, float, float, float, float, float)}
* with farPlane = 1.0f
.
*/
@io.qt.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
*
*/
@io.qt.QtUninvokable
public final void viewport(float left, float bottom, float width, float height) {
viewport(left, bottom, width, height, (float)0.0f, (float)1.0f);
}
/**
* See QMatrix4x4::viewport(float,float,float,float,float,float)
*/
@io.qt.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);
}
@io.qt.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);
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QMatrix4x4(QPrivateConstructor p) { super(p); }
@Override
@io.qt.QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.gui.QMatrix4x4) {
return operator_equal((io.qt.gui.QMatrix4x4) other);
}
return false;
}
@io.qt.QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.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));
}
@io.qt.QtUninvokable
public final void copyDataTo(float[] values) {
copyDataTo(wrap(values));
}
// TEMPLATE - gui.matrix_constructor - END
@Override
@io.qt.QtUninvokable
public String toString() {
return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@io.qt.QtUninvokable
private static native String toString_native(long __this_nativeId);
@Override
public QMatrix4x4 clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native QMatrix4x4 clone_native(long __this_nativeId);
}