En esta página

Qt3DAnimation::QMorphTarget Class

class Qt3DAnimation::QMorphTarget

Una clase que proporciona objetivos morph para la animación de formas mezcladas. Más...

Cabecera: #include <QMorphTarget>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake: QT += 3danimation
En QML: MorphTarget
Hereda: QObject
Status: Obsoleto

Propiedades

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 basado en un Qt3DCore::QGeometry existente.

Documentación de Propiedades

[read-only] attributeNames : QStringList

Contiene una lista de nombres de atributos contenidos en el objetivo morph.

Funciones de acceso:

QStringList attributeNames() const

Señal del notificador:

void attributeNamesChanged(const QStringList &attributeNames)

Documentación de la función miembro

[explicit] QMorphTarget::QMorphTarget(QObject *parent = nullptr)

Construye un QMorphTarget con la dirección parent.

void QMorphTarget::addAttribute(Qt3DCore::QAttribute *attribute)

Añade un attribute al objetivo morph. Un atributo con el mismo nombre no debe haber sido añadido previamente al objetivo morph.

QList<Qt3DCore::QAttribute *> QMorphTarget::attributeList() const

Devuelve una lista de atributos contenidos en el objetivo morph.

[static invokable] Qt3DAnimation::QMorphTarget *QMorphTarget::fromGeometry(Qt3DCore::QGeometry *geometry, const QStringList &attributes)

Devuelve un objetivo morph basado en el attributes en el geometry dado .

Nota: Esta función puede invocarse 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 morph.

void QMorphTarget::setAttributes(const QList<Qt3DCore::QAttribute *> &attributes)

Establece attributes en el objetivo morph. Los atributos antiguos se borran.

© 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.