Qt3DAnimation::QClipAnimator Class
class Qt3DAnimation::QClipAnimatorQClipAnimator est un composant offrant des capacités simples de lecture d'animations. Plus d'informations...
| En-tête : | #include <QClipAnimator> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS 3danimation)target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
| qmake : | QT += 3danimation |
| En QML : | ClipAnimator |
| Hérite : | Qt3DAnimation::QAbstractClipAnimator |
| Statut : | Déclassé |
Propriétés
- clip : Qt3DAnimation::QAbstractAnimationClip*
Fonctions publiques
| Qt3DAnimation::QAbstractAnimationClip * | clip() const |
Emplacements publics
| void | setClip(Qt3DAnimation::QAbstractAnimationClip *clip) |
Signaux
| void | clipChanged(Qt3DAnimation::QAbstractAnimationClip *clip) |
Description détaillée
Une instance de QClipAnimator peut être agrégée par une QEntity pour ajouter la possibilité de lire des clips d'animation et d'appliquer les valeurs d'animation calculées aux propriétés des QObjects.
Les données de l'image clé de l'animation sont fournies par la propriété clip. Celle-ci peut être créée par programme à l'aide de QAnimationClip ou chargée à partir d'un fichier à l'aide de QAnimationClipLoader.
Pour appliquer les valeurs lues à partir des canaux de données du clip d'animation, l'animateur du clip doit disposer d'un objet QChannelMapper affecté à la propriété channelMapper.
Les propriétés permettant de contrôler l'animateur sont fournies par la classe de base QAbstractClipAnimator.
Voir également Qt3DAnimation::QAbstractClipAnimator, Qt3DAnimation::QAbstractAnimationClip, Qt3DAnimation::QChannelMapper, et Qt3DAnimation::QBlendedClipAnimator.
Documentation sur les propriétés
clip : Qt3DAnimation::QAbstractAnimationClip*
Cette propriété contient le clip d'animation qui contient les données d'images clés à lire. Les données de l'image clé peuvent être spécifiées sur QAnimationClip ou QAnimationClipLoader.
Fonctions d'accès :
| Qt3DAnimation::QAbstractAnimationClip * | clip() const |
| void | setClip(Qt3DAnimation::QAbstractAnimationClip *clip) |
Signal de notification :
| 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.