Qt3DAnimation::QClipAnimator Class
class Qt3DAnimation::QClipAnimatorQClipAnimator ist eine Komponente, die einfache Funktionen zur Wiedergabe von Animationen bietet. Mehr...
| Überschrift: | #include <qclipanimator.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3danimation) target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
| qmake: | QT += 3danimation |
| In QML: | ClipAnimator |
| Erbt von: | Qt3DAnimation::QAbstractClipAnimator |
| Status: | Technologievorschau |
Diese Klasse befindet sich in der Technologievorschau und kann sich noch ändern.
Eigenschaften
- clip : Qt3DAnimation::QAbstractAnimationClip*
Öffentliche Funktionen
| Qt3DAnimation::QAbstractAnimationClip * | clip() const |
Öffentliche Slots
| void | setClip(Qt3DAnimation::QAbstractAnimationClip *clip) |
Signale
| void | clipChanged(Qt3DAnimation::QAbstractAnimationClip *clip) |
Ausführliche Beschreibung
Eine Instanz von QClipAnimator kann von einer QEntity aggregiert werden, um die Wiedergabe von Animationsclips zu ermöglichen und die berechneten Animationswerte auf Eigenschaften von QObjects anzuwenden.
Die Animations-Keyframe-Daten werden über die Eigenschaft `clip` bereitgestellt. Diese kann programmgesteuert mit ` QAnimationClip ` erstellt oder per ` QAnimationClipLoader` aus einer Datei geladen werden.
Um die Werte anzuwenden, die aus den Datenkanälen des Animationsclips wiedergegeben werden, muss dem Clip-Animator ein ` QChannelMapper `-Objekt zugewiesen sein, das der Eigenschaft `channelMapper` zugeordnet ist.
Die Eigenschaften zur Steuerung des Animators werden von der Basisklasse ` QAbstractClipAnimator ` bereitgestellt.
Siehe auch „ Qt3DAnimation::QAbstractClipAnimator“ , „ Qt3DAnimation::QAbstractAnimationClip “, „ Qt3DAnimation::QChannelMapper “ und „ Qt3DAnimation::QBlendedClipAnimator “.
Dokumentation zu den Eigenschaften
clip : Qt3DAnimation::QAbstractAnimationClip*
Diese Eigenschaft enthält den Animationsclip, der die abzuspielenden Keyframe-Daten enthält. Die Keyframe-Daten können entweder in einem „ QAnimationClip “ oder einem „ QAnimationClipLoader “ angegeben werden.
Zugriffsfunktionen:
| Qt3DAnimation::QAbstractAnimationClip * | clip() const |
| void | setClip(Qt3DAnimation::QAbstractAnimationClip *clip) |
Notifier-Signal:
| void | clipChanged(Qt3DAnimation::QAbstractAnimationClip *clip) |
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.