Qt3DAnimation::QMorphTarget Class
class Qt3DAnimation::QMorphTargetUma classe que fornece alvos de morfologia para a animação com blend-shapes. Mais...
| Cabeçalho: | #include <qmorphtarget.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3danimation) target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
| qmake: | QT += 3danimation |
| No QML: | MorphTarget |
| Herdado de: | QObject |
| Status: | Pré-visualização tecnológica |
Esta classe está em pré-visualização tecnológica e está sujeita a alterações.
Propriedades
- attributeNames : QStringList
Funções 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) |
Sinais
| void | attributeNamesChanged(const QStringList &attributeNames) |
Membros públicos estáticos
| Qt3DAnimation::QMorphTarget * | fromGeometry(Qt3DCore::QGeometry *geometry, const QStringList &attributes) |
Descrição detalhada
A classe ` Qt3DAnimation::QMorphTarget ` é uma classe de conveniência que fornece uma lista de ` QAttributes`, que o ` QMorphingAnimation ` utiliza para animar geometrias. Um `QMorphTarget` também pode ser criado com base em ` Qt3DCore::QGeometry` existentes.
Documentação das propriedades
[read-only] attributeNames : QStringList
Contém uma lista dos nomes dos atributos presentes no alvo de morfologia.
Funções de acesso:
| QStringList | attributeNames() const |
Sinal do notificador:
| void | attributeNamesChanged(const QStringList &attributeNames) |
Documentação das funções de membro
[explicit] QMorphTarget::QMorphTarget(QObject *parent = nullptr)
Cria um objeto `QMorphTarget` com o ` parent` especificado.
void QMorphTarget::addAttribute(Qt3DCore::QAttribute *attribute)
Adiciona um atributo ` attribute ` ao alvo de transformação. Não deve ter sido adicionado anteriormente nenhum atributo com o mesmo nome ao alvo de transformação.
QList<Qt3DCore::QAttribute *> QMorphTarget::attributeList() const
Retorna uma lista dos atributos contidos no alvo de morfo.
[static invokable] Qt3DAnimation::QMorphTarget *QMorphTarget::fromGeometry(Qt3DCore::QGeometry *geometry, const QStringList &attributes)
Retorna um alvo de morfo com base no ` attributes ` no ` geometry` fornecido.
Observação: Esta função pode ser chamada por meio do sistema de metaobjetos e a partir do QML. Consulte Q_INVOKABLE.
void QMorphTarget::removeAttribute(Qt3DCore::QAttribute *attribute)
Remove um objeto “ attribute ” do alvo de transformação.
void QMorphTarget::setAttributes(const QList<Qt3DCore::QAttribute *> &attributes)
Define ` attributes ` como o alvo de morph. Os atributos anteriores são apagados.
© 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.