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

io.qt.qt3d.animation.QMorphingAnimation Maven / Gradle / Ivy

Go to download

The Qt 3D Animation modules provides a set of prebuilt elements to help you get started with Qt 3D.

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

import io.qt.*;


/**
 * 

A class implementing blend-shape morphing animation

*

Java wrapper for Qt class Qt3DAnimation::QMorphingAnimation

*/ public class QMorphingAnimation extends io.qt.qt3d.animation.QAbstractAnimation { @QtPropertyMember(enabled=false) private java.util.Collection __rcMorphTarget; @QtPropertyMember(enabled=false) private Object __rcTarget = null; /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QMorphingAnimation.class); /** *

Java wrapper for Qt enum Qt3DAnimation::QMorphingAnimation::Method

*/ public enum Method implements QtEnumerator { /** *

Representing Qt3DAnimation::QMorphingAnimation::Normalized

*/ Normalized(0), /** *

Representing Qt3DAnimation::QMorphingAnimation::Relative

*/ Relative(1); static { QtJambi_LibraryUtilities.initialize(); } private Method(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static @NonNull Method resolve(int value) { switch (value) { case 0: return Normalized; case 1: return Relative; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See Qt3DAnimation::QMorphingAnimation::easingChanged(QEasingCurve)

*/ @QtPropertyNotify(name="easing") public final @NonNull Signal1 easingChanged = new Signal1<>(); /** *

See Qt3DAnimation::QMorphingAnimation::interpolatorChanged(float)

*/ @QtPropertyNotify(name="interpolator") public final @NonNull Signal1 interpolatorChanged = new Signal1<>(); /** *

See Qt3DAnimation::QMorphingAnimation::methodChanged(Qt3DAnimation::QMorphingAnimation::Method)

*/ @QtPropertyNotify(name="method") public final @NonNull Signal1 methodChanged = new Signal1<>(); /** *

See Qt3DAnimation::QMorphingAnimation::targetChanged(Qt3DRender::QGeometryRenderer*)

*/ @SuppressWarnings({"exports"}) @QtPropertyNotify(name="target") public final @NonNull Signal1 targetChanged = new Signal1<>(); /** *

See Qt3DAnimation::QMorphingAnimation::targetNameChanged(QString)

*/ @QtPropertyNotify(name="targetName") public final @NonNull Signal1 targetNameChanged = new Signal1<>(); /** *

See Qt3DAnimation::QMorphingAnimation::targetPositionsChanged(QVector<float>)

*/ @QtPropertyNotify(name="targetPositions") public final @NonNull Signal1> targetPositionsChanged = new Signal1<>(); /** *

See Qt3DAnimation::QMorphingAnimation::QMorphingAnimation(QObject*)

*/ public QMorphingAnimation(io.qt.core.@Nullable QObject parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QMorphingAnimation instance, io.qt.core.QObject parent); /** *

See Qt3DAnimation::QMorphingAnimation::addMorphTarget(Qt3DAnimation::QMorphTarget*)

*/ @QtUninvokable public final void addMorphTarget(io.qt.qt3d.animation.@Nullable QMorphTarget target){ addMorphTarget_native_Qt3DAnimation_QMorphTarget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(target)); if (target != null) { if(__rcMorphTarget==null) __rcMorphTarget = QtJambi_LibraryUtilities.internal.newRCList(); __rcMorphTarget.add(target); } } @QtUninvokable private native void addMorphTarget_native_Qt3DAnimation_QMorphTarget_ptr(long __this__nativeId, long target); /** *

See Qt3DAnimation::QMorphingAnimation::easing()const

*/ @QtPropertyReader(name="easing") @QtUninvokable public final io.qt.core.@NonNull QEasingCurve easing(){ return easing_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QEasingCurve easing_native_constfct(long __this__nativeId); /** *

See Qt3DAnimation::QMorphingAnimation::getWeights(int)

*/ @QtUninvokable public final io.qt.core.@NonNull QVector getWeights(int positionIndex){ return getWeights_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), positionIndex); } @QtUninvokable private native io.qt.core.QVector getWeights_native_int(long __this__nativeId, int positionIndex); /** *

See Qt3DAnimation::QMorphingAnimation::interpolator()const

*/ @QtPropertyReader(name="interpolator") @QtUninvokable public final float interpolator(){ return interpolator_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native float interpolator_native_constfct(long __this__nativeId); /** *

See Qt3DAnimation::QMorphingAnimation::method()const

*/ @QtPropertyReader(name="method") @QtUninvokable public final io.qt.qt3d.animation.QMorphingAnimation.@NonNull Method method(){ return io.qt.qt3d.animation.QMorphingAnimation.Method.resolve(method_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int method_native_constfct(long __this__nativeId); /** *

See Qt3DAnimation::QMorphingAnimation::morphTargetList()

*/ @QtUninvokable public final io.qt.core.@NonNull QVector morphTargetList(){ return morphTargetList_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QVector morphTargetList_native(long __this__nativeId); /** *

See Qt3DAnimation::QMorphingAnimation::removeMorphTarget(Qt3DAnimation::QMorphTarget*)

*/ @QtUninvokable public final void removeMorphTarget(io.qt.qt3d.animation.@Nullable QMorphTarget target){ removeMorphTarget_native_Qt3DAnimation_QMorphTarget_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(target)); if (target != null) { while (__rcMorphTarget != null && __rcMorphTarget.remove(target)) ; } } @QtUninvokable private native void removeMorphTarget_native_Qt3DAnimation_QMorphTarget_ptr(long __this__nativeId, long target); /** *

See Qt3DAnimation::QMorphingAnimation::setEasing(QEasingCurve)

*/ @QtPropertyWriter(name="easing") public final void setEasing(io.qt.core.@NonNull QEasingCurve easing){ setEasing_native_cref_QEasingCurve(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(easing)); } private native void setEasing_native_cref_QEasingCurve(long __this__nativeId, long easing); /** *

See Qt3DAnimation::QMorphingAnimation::setMethod(Qt3DAnimation::QMorphingAnimation::Method)

*/ @QtPropertyWriter(name="method") public final void setMethod(io.qt.qt3d.animation.QMorphingAnimation.@NonNull Method method){ setMethod_native_Qt3DAnimation_QMorphingAnimation_Method(QtJambi_LibraryUtilities.internal.nativeId(this), method.value()); } private native void setMethod_native_Qt3DAnimation_QMorphingAnimation_Method(long __this__nativeId, int method); /** *

See Qt3DAnimation::QMorphingAnimation::setMorphTargets(QVector<Qt3DAnimation::QMorphTarget*>)

*/ @QtUninvokable public final void setMorphTargets(java.util.@NonNull Collection targets){ setMorphTargets_native_cref_QVector(QtJambi_LibraryUtilities.internal.nativeId(this), targets); if(__rcMorphTarget!=null){ __rcMorphTarget.clear(); }else{ __rcMorphTarget = new java.util.ArrayList<>(); } __rcMorphTarget.addAll(targets); } @QtUninvokable private native void setMorphTargets_native_cref_QVector(long __this__nativeId, java.util.Collection targets); /** *

See Qt3DAnimation::QMorphingAnimation::setTarget(Qt3DRender::QGeometryRenderer*)

*/ @QtPropertyWriter(name="target") @SuppressWarnings({"exports"}) public final void setTarget(io.qt.qt3d.render.@Nullable QGeometryRenderer target){ setTarget_native_Qt3DRender_QGeometryRenderer_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(target)); __rcTarget = target; } private native void setTarget_native_Qt3DRender_QGeometryRenderer_ptr(long __this__nativeId, long target); /** *

See Qt3DAnimation::QMorphingAnimation::setTargetName(QString)

*/ @QtPropertyWriter(name="targetName") public final void setTargetName(java.lang.@NonNull String name){ setTargetName_native_const_QString(QtJambi_LibraryUtilities.internal.nativeId(this), name); } private native void setTargetName_native_const_QString(long __this__nativeId, java.lang.String name); /** *

See Qt3DAnimation::QMorphingAnimation::setTargetPositions(QVector<float>)

*/ @QtPropertyWriter(name="targetPositions") public final void setTargetPositions(java.util.@NonNull Collection targetPositions){ setTargetPositions_native_cref_QVector(QtJambi_LibraryUtilities.internal.nativeId(this), targetPositions); } private native void setTargetPositions_native_cref_QVector(long __this__nativeId, java.util.Collection targetPositions); /** *

See Qt3DAnimation::QMorphingAnimation::setWeights(int,QVector<float>)

*/ @QtUninvokable public final void setWeights(int positionIndex, java.util.@NonNull Collection weights){ setWeights_native_int_cref_QVector(QtJambi_LibraryUtilities.internal.nativeId(this), positionIndex, weights); } @QtUninvokable private native void setWeights_native_int_cref_QVector(long __this__nativeId, int positionIndex, java.util.Collection weights); /** *

See Qt3DAnimation::QMorphingAnimation::target()const

*/ @QtPropertyReader(name="target") @SuppressWarnings({"exports"}) @QtUninvokable public final io.qt.qt3d.render.@Nullable QGeometryRenderer target(){ return target_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.qt3d.render.QGeometryRenderer target_native_constfct(long __this__nativeId); /** *

See Qt3DAnimation::QMorphingAnimation::targetName()const

*/ @QtPropertyReader(name="targetName") @QtUninvokable public final java.lang.@NonNull String targetName(){ return targetName_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native java.lang.String targetName_native_constfct(long __this__nativeId); /** *

See Qt3DAnimation::QMorphingAnimation::targetPositions()const

*/ @QtPropertyReader(name="targetPositions") @QtUninvokable public final io.qt.core.@NonNull QVector targetPositions(){ return targetPositions_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QVector targetPositions_native_constfct(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QMorphingAnimation(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QMorphingAnimation(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QMorphingAnimation instance, QDeclarativeConstructor constructor); /** *

Overloaded constructor for {@link #QMorphingAnimation(io.qt.core.QObject)} * with parent = null.

*/ public QMorphingAnimation() { this((io.qt.core.QObject)null); } /** * @hidden *

Kotlin property getter. In Java use {@link #easing()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.@NonNull QEasingCurve getEasing() { return easing(); } /** * @hidden *

Kotlin property getter. In Java use {@link #interpolator()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final float getInterpolator() { return interpolator(); } /** * @hidden *

Kotlin property getter. In Java use {@link #method()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.qt3d.animation.QMorphingAnimation.@NonNull Method getMethod() { return method(); } /** *

Overloaded function for {@link #setEasing(io.qt.core.QEasingCurve)}.

*/ public final void setEasing(io.qt.core.QEasingCurve.@NonNull Type easing) { setEasing(new io.qt.core.QEasingCurve(easing)); } /** * @hidden *

Kotlin property getter. In Java use {@link #target()} instead.

*/ @QtPropertyReader(enabled=false) @SuppressWarnings({"exports"}) @QtUninvokable public final io.qt.qt3d.render.@Nullable QGeometryRenderer getTarget() { return target(); } /** * @hidden *

Kotlin property getter. In Java use {@link #targetName()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final java.lang.@NonNull String getTargetName() { return targetName(); } /** * @hidden *

Kotlin property getter. In Java use {@link #targetPositions()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.@NonNull QVector getTargetPositions() { return targetPositions(); } }