Qt3DAnimation::QAbstractAnimation Class
class Qt3DAnimation::QAbstractAnimationUna clase base abstracta para animaciones Qt3D. Más información...
| Encabezado: | #include <QAbstractAnimation> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3danimation) target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
| qmake: | QT += 3danimation |
| En QML: | AbstractAnimation |
| Heredado de: | QObject |
| Heredado por: | Qt3DAnimation::QKeyframeAnimation, Qt3DAnimation::QMorphingAnimation y Qt3DAnimation::QVertexBlendAnimation |
| Estado: | Versión preliminar |
Esta clase se encuentra en fase de vista previa tecnológica y está sujeta a cambios.
Tipos públicos
| enum | AnimationType { KeyframeAnimation, MorphingAnimation, VertexBlendAnimation } |
Propiedades
- animationName : QString
- animationType : const AnimationType
- duration : float
- position : float
Funciones públicas
| QString | animationName() const |
| Qt3DAnimation::QAbstractAnimation::AnimationType | animationType() const |
| float | duration() const |
| float | position() const |
Ranuras públicas
| void | setAnimationName(const QString &name) |
| void | setPosition(float position) |
Señales
| void | animationNameChanged(const QString &name) |
| void | durationChanged(float duration) |
| void | positionChanged(float position) |
Funciones protegidas
| void | setDuration(float duration) |
Descripción detallada
Qt3DAnimation::QAbstractAnimation es una clase base abstracta para todas las animaciones. Qt3DAnimation::QAbstractAnimation no se puede instanciar directamente, sino a través de sus subclases. QAbstractAnimation especifica propiedades comunes para todas las animaciones de Qt3D, como el nombre y el tipo de animación, la posición actual y la duración de la animación, mientras que deja la animación propiamente dicha en manos de las subclases.
Documentación sobre los tipos de miembros
enum QAbstractAnimation::AnimationType
Esta enumeración especifica el tipo de animación
| Constante | Valor | Descripción |
|---|---|---|
Qt3DAnimation::QAbstractAnimation::KeyframeAnimation | 1 | Implementación sencilla de animación por fotogramas clave para QTransform |
Qt3DAnimation::QAbstractAnimation::MorphingAnimation | 2 | animación de morphing con formas de mezcla |
Qt3DAnimation::QAbstractAnimation::VertexBlendAnimation | 3 | Animación de mezcla de vértices |
Documentación de propiedades
animationName : QString
Contiene el nombre de la animación.
Funciones de acceso:
| QString | animationName() const |
| void | setAnimationName(const QString &name) |
Señal de notificación:
| void | animationNameChanged(const QString &name) |
[read-only] animationType : const AnimationType
Almacena el tipo de la animación.
Funciones de acceso:
| Qt3DAnimation::QAbstractAnimation::AnimationType | animationType() const |
[read-only] duration : float
Almacena la duración de la animación.
Funciones de acceso:
| float | duration() const |
Señal de notificador:
| void | durationChanged(float duration) |
position : float
Almacena la posición actual de la animación.
Funciones de acceso:
| float | position() const |
| void | setPosition(float position) |
Señal de notificación:
| void | positionChanged(float position) |
Documentación de funciones de miembro
[protected] void QAbstractAnimation::setDuration(float duration)
Establece la « duration » de la animación.
Véase también 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.