Qt3DAnimation::QAbstractAnimation Class
class Qt3DAnimation::QAbstractAnimationUna classe base astratta per le animazioni Qt3D. Maggiori informazioni...
| Intestazione: | #include <QAbstractAnimation> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3danimation) target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
| qmake: | QT += 3danimation |
| In QML: | AbstractAnimation |
| Eredita da: | QObject |
| Ereditato da: | Qt3DAnimation::QKeyframeAnimation, Qt3DAnimation::QMorphingAnimation, e Qt3DAnimation::QVertexBlendAnimation |
| Stato: | Anteprima tecnologica |
Questa classe è in anteprima tecnologica ed è soggetta a modifiche.
Tipi pubblici
| enum | AnimationType { KeyframeAnimation, MorphingAnimation, VertexBlendAnimation } |
Proprietà
- animationName : QString
- animationType : const AnimationType
- duration : float
- position : float
Funzioni pubbliche
| QString | animationName() const |
| Qt3DAnimation::QAbstractAnimation::AnimationType | animationType() const |
| float | duration() const |
| float | position() const |
Slot pubblici
| void | setAnimationName(const QString &name) |
| void | setPosition(float position) |
Segnali
| void | animationNameChanged(const QString &name) |
| void | durationChanged(float duration) |
| void | positionChanged(float position) |
Funzioni protette
| void | setDuration(float duration) |
Descrizione dettagliata
Qt3DAnimation::QAbstractAnimation è una classe base astratta per tutte le animazioni. Qt3DAnimation::QAbstractAnimation non può essere istanziata direttamente, ma solo tramite le sue sottoclassi. QAbstractAnimation specifica le proprietà comuni a tutte le animazioni Qt3D, quali il nome e il tipo dell’animazione, la posizione corrente e la durata dell’animazione, lasciando invece alle sottoclassi il compito dell’animazione vera e propria.
Documentazione sui tipi dei membri
enum QAbstractAnimation::AnimationType
Questa enumerazione specifica il tipo di animazione
| Costante | Valore | Descrizione |
|---|---|---|
Qt3DAnimation::QAbstractAnimation::KeyframeAnimation | 1 | Implementazione semplice dell'animazione con fotogrammi chiave per QTransform |
Qt3DAnimation::QAbstractAnimation::MorphingAnimation | 2 | animazione di morphing con blend-shape |
Qt3DAnimation::QAbstractAnimation::VertexBlendAnimation | 3 | Animazione con fusione dei vertici |
Documentazione delle proprietà
animationName : QString
Contiene il nome dell'animazione.
Funzioni di accesso:
| QString | animationName() const |
| void | setAnimationName(const QString &name) |
Segnale di notifica:
| void | animationNameChanged(const QString &name) |
[read-only] animationType : const AnimationType
Contiene il tipo dell'animazione.
Funzioni di accesso:
| Qt3DAnimation::QAbstractAnimation::AnimationType | animationType() const |
[read-only] duration : float
Contiene la durata dell'animazione.
Funzioni di accesso:
| float | duration() const |
Segnale di notifica:
| void | durationChanged(float duration) |
position : float
Contiene la posizione corrente dell'animazione.
Funzioni di accesso:
| float | position() const |
| void | setPosition(float position) |
Segnale di notifica:
| void | positionChanged(float position) |
Documentazione delle funzioni membro
[protected] void QAbstractAnimation::setDuration(float duration)
Imposta l'duration e dell'animazione.
Vedi anche 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.