Qt3DAnimation::QAbstractAnimation Class
class Qt3DAnimation::QAbstractAnimationUne classe de base abstraite pour les animations Qt3D. Plus d'informations...
| En-tête : | #include <QAbstractAnimation> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS 3danimation)target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
| qmake : | QT += 3danimation |
| En QML : | AbstractAnimation |
| Hérite : | QObject |
| Héritée par : | Qt3DAnimation::QKeyframeAnimation, Qt3DAnimation::QMorphingAnimation, et Qt3DAnimation::QVertexBlendAnimation |
| Statut : | Déclassé |
Types publics
| enum | AnimationType { KeyframeAnimation, MorphingAnimation, VertexBlendAnimation } |
Propriétés
- animationName : QString
- animationType : const AnimationType
- duration : float
- position : float
Fonctions publiques
| QString | animationName() const |
| Qt3DAnimation::QAbstractAnimation::AnimationType | animationType() const |
| float | duration() const |
| float | position() const |
Emplacements publics
| void | setAnimationName(const QString &name) |
| void | setPosition(float position) |
Signaux
| void | animationNameChanged(const QString &name) |
| void | durationChanged(float duration) |
| void | positionChanged(float position) |
Fonctions protégées
| void | setDuration(float duration) |
Description détaillée
Qt3DAnimation::QAbstractAnimation QAbstractAnimation est une classe de base abstraite pour toutes les animations. Qt3DAnimation::QAbstractAnimation ne peut pas être instanciée directement, mais plutôt par l'intermédiaire de ses sous-classes. QAbstractAnimation spécifie les propriétés communes à toutes les animations Qt3D, telles que le nom et le type de l'animation, la position actuelle et la durée de l'animation, tout en laissant l'animation proprement dite aux sous-classes.
Documentation sur les types de membres
enum QAbstractAnimation::AnimationType
Cette énumération spécifie le type d'animation
| Constante | Valeur | Description de l'animation |
|---|---|---|
Qt3DAnimation::QAbstractAnimation::KeyframeAnimation | 1 | Mise en œuvre d'une animation par image clé simple pour QTransform |
Qt3DAnimation::QAbstractAnimation::MorphingAnimation | 2 | Animation de morphing de forme de mélange |
Qt3DAnimation::QAbstractAnimation::VertexBlendAnimation | 3 | Animation de mélange de sommets |
Documentation sur les propriétés
animationName : QString
Contient le nom de l'animation.
Fonctions d'accès :
| QString | animationName() const |
| void | setAnimationName(const QString &name) |
Signal de notification :
| void | animationNameChanged(const QString &name) |
[read-only] animationType : const AnimationType
Contient le type d'animation.
Fonctions d'accès :
| Qt3DAnimation::QAbstractAnimation::AnimationType | animationType() const |
[read-only] duration : float
Détient la durée de l'animation.
Fonctions d'accès :
| float | duration() const |
Signal de notification :
| void | durationChanged(float duration) |
position : float
Maintient la position actuelle de l'animation.
Fonctions d'accès :
| float | position() const |
| void | setPosition(float position) |
Signal du notificateur :
| void | positionChanged(float position) |
Member Function Documentation
[protected] void QAbstractAnimation::setDuration(float duration)
Définit l'adresse duration de l'animation.
Voir aussi duration().
© 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.