QAbstractAnimation Class
class Qt3DAnimation::QAbstractAnimationEine abstrakte Basisklasse für Qt3D-Animationen. Mehr...
Kopfzeile: | #include <QAbstractAnimation> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3danimation) target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
qmake: | QT += 3danimation |
In QML: | AbstractAnimation |
Vererbt: | QObject |
Vererbt von: | Qt3DAnimation::QKeyframeAnimation, Qt3DAnimation::QMorphingAnimation, und Qt3DAnimation::QVertexBlendAnimation |
Status: | Veraltet |
Öffentliche Typen
enum | AnimationType { KeyframeAnimation, MorphingAnimation, VertexBlendAnimation } |
Eigenschaften
- animationName : QString
- animationType : const AnimationType
- duration : const float
- position : float
Öffentliche Funktionen
QString | animationName() const |
Qt3DAnimation::QAbstractAnimation::AnimationType | animationType() const |
float | duration() const |
float | position() const |
Öffentliche Slots
void | setAnimationName(const QString &name) |
void | setPosition(float position) |
Signale
void | animationNameChanged(const QString &name) |
void | durationChanged(float duration) |
void | positionChanged(float position) |
Geschützte Funktionen
void | setDuration(float duration) |
Detaillierte Beschreibung
Qt3DAnimation::QAbstractAnimation ist eine abstrakte Basisklasse für alle Animationen. Qt3DAnimation::QAbstractAnimation kann nicht direkt instanziiert werden, sondern nur über seine Unterklassen. QAbstractAnimation spezifiziert gemeinsame Eigenschaften für alle Qt3D-Animationen, wie Animationsname und -typ, aktuelle Position und Animationsdauer, während die eigentliche Animation den Unterklassen überlassen wird.
Dokumentation der Mitgliedstypen
enum QAbstractAnimation::AnimationType
Diese Aufzählung gibt den Typ der Animation an
Konstante | Wert | Beschreibung |
---|---|---|
Qt3DAnimation::QAbstractAnimation::KeyframeAnimation | 1 | Einfache Keyframe-Animationsimplementierung für QTransform |
Qt3DAnimation::QAbstractAnimation::MorphingAnimation | 2 | Blend-Shape-Morphing-Animation |
Qt3DAnimation::QAbstractAnimation::VertexBlendAnimation | 3 | Vertex-blend-Animation |
Dokumentation der Eigenschaft
animationName : QString
Enthält den Namen der Animation.
Zugriffsfunktionen:
QString | animationName() const |
void | setAnimationName(const QString &name) |
Benachrichtigungssignal:
void | animationNameChanged(const QString &name) |
[read-only]
animationType : const AnimationType
Enthält den Typ der Animation.
Zugriffsfunktionen:
Qt3DAnimation::QAbstractAnimation::AnimationType | animationType() const |
[read-only]
duration : const float
Enthält die Dauer der Animation.
Zugriffsfunktionen:
float | duration() const |
Benachrichtigungssignal:
void | durationChanged(float duration) |
position : float
Hält die aktuelle Position der Animation fest.
Zugriffsfunktionen:
float | position() const |
void | setPosition(float position) |
Benachrichtigungssignal:
void | positionChanged(float position) |
Member Function Dokumentation
[protected]
void QAbstractAnimation::setDuration(float duration)
Legt die duration der Animation fest.
Siehe auch duration().
© 2025 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.