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

io.qt.qt3d.animation.QKeyframeAnimation 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.7.2
Show newest version
package io.qt.qt3d.animation;

import io.qt.*;


/**
 * 

A class implementing simple keyframe animation to a QTransform

*

Java wrapper for Qt class Qt3DAnimation::QKeyframeAnimation

*/ public class QKeyframeAnimation extends io.qt.qt3d.animation.QAbstractAnimation { @QtPropertyMember(enabled=false) private java.util.Collection __rcKeyframe; @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(QKeyframeAnimation.class); /** *

Java wrapper for Qt enum Qt3DAnimation::QKeyframeAnimation::RepeatMode

*/ public enum RepeatMode implements QtEnumerator { /** *

Representing Qt3DAnimation::QKeyframeAnimation::None

*/ None(0), /** *

Representing Qt3DAnimation::QKeyframeAnimation::Constant

*/ Constant(1), /** *

Representing Qt3DAnimation::QKeyframeAnimation::Repeat

*/ Repeat(2); static { QtJambi_LibraryUtilities.initialize(); } private RepeatMode(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 RepeatMode resolve(int value) { switch (value) { case 0: return None; case 1: return Constant; case 2: return Repeat; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See Qt3DAnimation::QKeyframeAnimation::easingChanged(QEasingCurve)

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

See Qt3DAnimation::QKeyframeAnimation::endModeChanged(Qt3DAnimation::QKeyframeAnimation::RepeatMode)

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

See Qt3DAnimation::QKeyframeAnimation::framePositionsChanged(QList<float>)

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

See Qt3DAnimation::QKeyframeAnimation::startModeChanged(Qt3DAnimation::QKeyframeAnimation::RepeatMode)

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

See Qt3DAnimation::QKeyframeAnimation::targetChanged(Qt3DCore::QTransform*)

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

See Qt3DAnimation::QKeyframeAnimation::targetNameChanged(QString)

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

See Qt3DAnimation::QKeyframeAnimation::QKeyframeAnimation(QObject*)

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

See Qt3DAnimation::QKeyframeAnimation::addKeyframe(Qt3DCore::QTransform*)

*/ @SuppressWarnings({"exports"}) @QtUninvokable public final void addKeyframe(io.qt.qt3d.core.@Nullable QTransform keyframe){ addKeyframe_native_Qt3DCore_QTransform_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(keyframe)); if (keyframe != null) { if(__rcKeyframe==null) __rcKeyframe = QtJambi_LibraryUtilities.internal.newRCList(); __rcKeyframe.add(keyframe); } } @QtUninvokable private native void addKeyframe_native_Qt3DCore_QTransform_ptr(long __this__nativeId, long keyframe); /** *

See Qt3DAnimation::QKeyframeAnimation::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::QKeyframeAnimation::endMode()const

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

See Qt3DAnimation::QKeyframeAnimation::framePositions()const

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

See Qt3DAnimation::QKeyframeAnimation::keyframeList()const

*/ @SuppressWarnings({"exports"}) @QtUninvokable public final io.qt.core.@NonNull QList keyframeList(){ return keyframeList_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QList keyframeList_native_constfct(long __this__nativeId); /** *

See Qt3DAnimation::QKeyframeAnimation::removeKeyframe(Qt3DCore::QTransform*)

*/ @SuppressWarnings({"exports"}) @QtUninvokable public final void removeKeyframe(io.qt.qt3d.core.@Nullable QTransform keyframe){ removeKeyframe_native_Qt3DCore_QTransform_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(keyframe)); if (keyframe != null) { while (__rcKeyframe != null && __rcKeyframe.remove(keyframe)) ; } } @QtUninvokable private native void removeKeyframe_native_Qt3DCore_QTransform_ptr(long __this__nativeId, long keyframe); /** *

See Qt3DAnimation::QKeyframeAnimation::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::QKeyframeAnimation::setEndMode(Qt3DAnimation::QKeyframeAnimation::RepeatMode)

*/ @QtPropertyWriter(name="endMode") public final void setEndMode(io.qt.qt3d.animation.QKeyframeAnimation.@NonNull RepeatMode mode){ setEndMode_native_Qt3DAnimation_QKeyframeAnimation_RepeatMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value()); } private native void setEndMode_native_Qt3DAnimation_QKeyframeAnimation_RepeatMode(long __this__nativeId, int mode); /** *

See Qt3DAnimation::QKeyframeAnimation::setFramePositions(QList<float>)

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

See Qt3DAnimation::QKeyframeAnimation::setKeyframes(QList<Qt3DCore::QTransform*>)

*/ @SuppressWarnings({"exports"}) @QtUninvokable public final void setKeyframes(java.util.@NonNull Collection keyframes){ setKeyframes_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), keyframes); if(__rcKeyframe!=null){ __rcKeyframe.clear(); }else{ __rcKeyframe = new java.util.ArrayList<>(); } __rcKeyframe.addAll(keyframes); } @QtUninvokable private native void setKeyframes_native_cref_QList(long __this__nativeId, java.util.Collection keyframes); /** *

See Qt3DAnimation::QKeyframeAnimation::setStartMode(Qt3DAnimation::QKeyframeAnimation::RepeatMode)

*/ @QtPropertyWriter(name="startMode") public final void setStartMode(io.qt.qt3d.animation.QKeyframeAnimation.@NonNull RepeatMode mode){ setStartMode_native_Qt3DAnimation_QKeyframeAnimation_RepeatMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value()); } private native void setStartMode_native_Qt3DAnimation_QKeyframeAnimation_RepeatMode(long __this__nativeId, int mode); /** *

See Qt3DAnimation::QKeyframeAnimation::setTarget(Qt3DCore::QTransform*)

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

See Qt3DAnimation::QKeyframeAnimation::setTargetName(QString)

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

See Qt3DAnimation::QKeyframeAnimation::startMode()const

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

See Qt3DAnimation::QKeyframeAnimation::target()const

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

See Qt3DAnimation::QKeyframeAnimation::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); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QKeyframeAnimation(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QKeyframeAnimation(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QKeyframeAnimation instance, QDeclarativeConstructor constructor); /** *

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

*/ public QKeyframeAnimation() { 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 #endMode()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.qt3d.animation.QKeyframeAnimation.@NonNull RepeatMode getEndMode() { return endMode(); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.core.@NonNull QList getFramePositions() { return framePositions(); } /** *

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 #startMode()} instead.

*/ @QtPropertyReader(enabled=false) @QtUninvokable public final io.qt.qt3d.animation.QKeyframeAnimation.@NonNull RepeatMode getStartMode() { return startMode(); } /** * @hidden *

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

*/ @QtPropertyReader(enabled=false) @SuppressWarnings({"exports"}) @QtUninvokable public final io.qt.qt3d.core.@Nullable QTransform 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(); } }