Qt3DAnimation::QMorphTarget Class
class Qt3DAnimation::QMorphTargetUna clase que proporciona objetivos morfológicos para la animación con formas de mezcla. Más...
| Encabezado: | #include <qmorphtarget.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3danimation) target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
| qmake: | QT += 3danimation |
| En QML: | MorphTarget |
| Heredado de: | QObject |
| Estado: | Versión preliminar |
Esta clase se encuentra en fase de vista previa tecnológica y está sujeta a cambios.
Propiedades
- attributeNames : QStringList
Funciones públicas
| QMorphTarget(QObject *parent = nullptr) | |
| void | addAttribute(Qt3DCore::QAttribute *attribute) |
| QList<Qt3DCore::QAttribute *> | attributeList() const |
| QStringList | attributeNames() const |
| void | removeAttribute(Qt3DCore::QAttribute *attribute) |
| void | setAttributes(const QList<Qt3DCore::QAttribute *> &attributes) |
Señales
| void | attributeNamesChanged(const QStringList &attributeNames) |
Miembros públicos estáticos
| Qt3DAnimation::QMorphTarget * | fromGeometry(Qt3DCore::QGeometry *geometry, const QStringList &attributes) |
Descripción detallada
Una clase ` Qt3DAnimation::QMorphTarget ` es una clase de conveniencia que proporciona una lista de ` QAttributes`, que el ` QMorphingAnimation ` utiliza para animar la geometría. También se puede crear un `QMorphTarget` a partir de un ` Qt3DCore::QGeometry` ya existente.
Documentación de propiedades
[read-only] attributeNames : QStringList
Contiene una lista de los nombres de los atributos que figuran en el objetivo morfológico.
Funciones de acceso:
| QStringList | attributeNames() const |
Señal de notificación:
| void | attributeNamesChanged(const QStringList &attributeNames) |
Documentación de las funciones de miembro
[explicit] QMorphTarget::QMorphTarget(QObject *parent = nullptr)
Crea un objeto `QMorphTarget` con el ` parent` indicado.
void QMorphTarget::addAttribute(Qt3DCore::QAttribute *attribute)
Añade un atributo « attribute » al objetivo de transformación. No debe haberse añadido previamente ningún atributo con el mismo nombre al objetivo de transformación.
QList<Qt3DCore::QAttribute *> QMorphTarget::attributeList() const
Devuelve una lista de los atributos que contiene el objetivo de morfo.
[static invokable] Qt3DAnimation::QMorphTarget *QMorphTarget::fromGeometry(Qt3DCore::QGeometry *geometry, const QStringList &attributes)
Devuelve un objetivo de morfo basado en el ` attributes ` del ` geometry` proporcionado.
Nota: Esta función se puede invocar a través del sistema de metaobjetos y desde QML. Véase Q_INVOKABLE.
void QMorphTarget::removeAttribute(Qt3DCore::QAttribute *attribute)
Elimina un « attribute » del objetivo de transformación.
void QMorphTarget::setAttributes(const QList<Qt3DCore::QAttribute *> &attributes)
Establece « attributes » como objetivo de transformación. Se borran los atributos anteriores.
© 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.