Qt3DAnimation::QAbstractClipAnimator Class
class Qt3DAnimation::QAbstractClipAnimatorQAbstractClipAnimator est la classe de base pour les types offrant des capacités de lecture d'animation. Plus d'informations...
| En-tête : | #include <QAbstractClipAnimator> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS 3danimation)target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
| qmake : | QT += 3danimation |
| En QML : | AbstractClipAnimator |
| Hérite : | Qt3DCore::QComponent |
| Héritée par : | Qt3DAnimation::QBlendedClipAnimator et Qt3DAnimation::QClipAnimator |
| Statut : | Déclassé |
Types publics
| enum | Loops { Infinite } |
Propriétés
|
|
Fonctions publiques
| Qt3DAnimation::QChannelMapper * | channelMapper() const |
| Qt3DAnimation::QClock * | clock() const |
| bool | isRunning() const |
| int | loopCount() const |
| float | normalizedTime() const |
Emplacements publics
| void | setChannelMapper(Qt3DAnimation::QChannelMapper *channelMapper) |
| void | setClock(Qt3DAnimation::QClock *clock) |
| void | setLoopCount(int loops) |
| void | setNormalizedTime(float timeFraction) |
| void | setRunning(bool running) |
| void | start() |
| void | stop() |
Signaux
| void | channelMapperChanged(Qt3DAnimation::QChannelMapper *channelMapper) |
| void | clockChanged(Qt3DAnimation::QClock *clock) |
| void | loopCountChanged(int loops) |
| void | normalizedTimeChanged(float index) |
| void | runningChanged(bool running) |
Description détaillée
Les sous-classes de QAbstractClipAnimator peuvent être agrégées par une entité Q pour fournir des capacités d'animation. Les composants de l'animateur fournissent une interface permettant de contrôler l'animation (par exemple, démarrage, arrêt). Chaque type d'animateur nécessite une certaine forme de données d'animation, telles que QAbstractAnimationClip, ainsi que QChannelMapper, qui décrit la manière dont les canaux du clip d'animation doivent être mis en correspondance avec les propriétés des objets que vous souhaitez animer.
Les sous-classes suivantes sont disponibles :
Membre Type Documentation
enum QAbstractClipAnimator::Loops
Indique le nombre de fois que l'animation doit être jouée.
| Constante | Valeur | Description |
|---|---|---|
Qt3DAnimation::QAbstractClipAnimator::Infinite | -1 | La boucle est répétée en continu jusqu'à ce qu'elle soit explicitement arrêtée. |
Propriété Documentation
channelMapper : Qt3DAnimation::QChannelMapper*
Cette propriété contient le ChannelMapper qui contrôle la façon dont les canaux du clip d'animation s'appliquent aux propriétés des objets cibles.
Fonctions d'accès :
| Qt3DAnimation::QChannelMapper * | channelMapper() const |
| void | setChannelMapper(Qt3DAnimation::QChannelMapper *channelMapper) |
Signal Notifier :
| void | channelMapperChanged(Qt3DAnimation::QChannelMapper *channelMapper) |
clock : Qt3DAnimation::QClock*
L'horloge contrôle la vitesse de lecture d'une animation.
Fonctions d'accès :
| Qt3DAnimation::QClock * | clock() const |
| void | setClock(Qt3DAnimation::QClock *clock) |
Signal de notification :
| void | clockChanged(Qt3DAnimation::QClock *clock) |
loops : int
Indique le nombre de fois que l'animation doit être jouée.
La valeur par défaut est 1 : l'animation est jouée une fois et s'arrête ensuite.
Si la valeur est QAbstractClipAnimator::Infinite, l'animation sera répétée en continu jusqu'à ce qu'elle soit explicitement arrêtée.
Fonctions d'accès :
| int | loopCount() const |
| void | setLoopCount(int loops) |
Signal de notification :
| void | loopCountChanged(int loops) |
normalizedTime : float
Cette propriété contient la durée normalisée des clips.
Fonctions d'accès :
| float | normalizedTime() const |
| void | setNormalizedTime(float timeFraction) |
Signal de notification :
| void | normalizedTimeChanged(float index) |
running : bool
Cette propriété contient un booléen indiquant si l'animation est en cours d'exécution.
Fonctions d'accès :
| bool | isRunning() const |
| void | setRunning(bool running) |
Signal du notificateur :
| void | runningChanged(bool running) |
Member Function Documentation
bool QAbstractClipAnimator::isRunning() const
Renvoie un booléen indiquant si l'animation est en cours d'exécution.
Remarque : fonction Getter pour la propriété running.
int QAbstractClipAnimator::loopCount() const
Renvoie le nombre de fois que l'animation doit être jouée.
La valeur par défaut est 1 : l'animation est jouée une fois et s'arrête ensuite.
Si la valeur est QAbstractClipAnimator::Infinite, l'animation se répète continuellement jusqu'à ce qu'elle soit explicitement arrêtée.
Remarque : fonction Getter pour la propriété loops.
Voir également setLoopCount().
[slot] void QAbstractClipAnimator::start()
Démarre l'animation.
[slot] void QAbstractClipAnimator::stop()
Arrête l'animation.
© 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.