Qt3DAnimation::QAbstractAnimation Class
class Qt3DAnimation::QAbstractAnimationUna clase base abstracta para animaciones Qt3D. Más...
| Cabecera: | #include <QAbstractAnimation> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3danimation)target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
| qmake: | QT += 3danimation |
| En QML: | AbstractAnimation |
| Hereda de: | QObject |
| Heredado de: | Qt3DAnimation::QKeyframeAnimation, Qt3DAnimation::QMorphingAnimation, y Qt3DAnimation::QVertexBlendAnimation |
| Estado: | Deprecated |
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 puede ser instanciada directamente, sino a través de sus subclases. QAbstractAnimation especifica propiedades comunes para todas las animaciones Qt3D, tales como nombre y tipo de animación, posición actual y duración de la animación, mientras que deja la animación real para las subclases.
Documentación de 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 de animación de fotogramas clave simple para QTransform |
Qt3DAnimation::QAbstractAnimation::MorphingAnimation | 2 | Animación de mezcla de formas |
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 del notificador:
| void | animationNameChanged(const QString &name) |
[read-only] animationType : const AnimationType
Contiene el tipo de animación.
Funciones de acceso:
| Qt3DAnimation::QAbstractAnimation::AnimationType | animationType() const |
[read-only] duration : float
Mantiene la duración de la animación.
Funciones de acceso:
| float | duration() const |
Señal de aviso:
| void | durationChanged(float duration) |
position : float
Mantiene la posición actual de la animación.
Funciones de acceso:
| float | position() const |
| void | setPosition(float position) |
Señal del notificador:
| void | positionChanged(float position) |
Documentación de la función miembro
[protected] void QAbstractAnimation::setDuration(float duration)
Establece el 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.