In questa pagina

Qt3DAnimation::QMorphTarget Class

class Qt3DAnimation::QMorphTarget

Una classe che fornisce target morfologici per l'animazione con blend-shape. Per saperne di più...

Intestazione: #include <qmorphtarget.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake: QT += 3danimation
In QML: MorphTarget
Eredita da: QObject
Stato: Anteprima tecnologica

Questa classe è in anteprima tecnologica ed è soggetta a modifiche.

Proprietà

Funzioni pubbliche

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)

Segnali

void attributeNamesChanged(const QStringList &attributeNames)

Membri pubblici statici

Qt3DAnimation::QMorphTarget *fromGeometry(Qt3DCore::QGeometry *geometry, const QStringList &attributes)

Descrizione dettagliata

Una classe ` Qt3DAnimation::QMorphTarget ` è una classe di utilità che fornisce un elenco di ` QAttributes`, utilizzati dal ` QMorphingAnimation ` per animare la geometria. È inoltre possibile creare un `QMorphTarget` basato su un ` Qt3DCore::QGeometry` esistente.

Documentazione delle proprietà

[read-only] attributeNames : QStringList

Contiene un elenco dei nomi degli attributi presenti nel target morfologico.

Funzioni di accesso:

QStringList attributeNames() const

Segnale di notifica:

void attributeNamesChanged(const QStringList &attributeNames)

Documentazione delle funzioni membro

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

Crea un oggetto `QMorphTarget` con il parametro ` parent` specificato.

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

Aggiunge un attributo ` attribute ` al target di morphing. Non deve essere stato aggiunto in precedenza un attributo con lo stesso nome al target di morphing.

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

Restituisce un elenco degli attributi contenuti nel target morfologico.

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

Restituisce un target di morphing basato sull’ attributes e presente nel file geometry specificato.

Nota: questa funzione può essere richiamata tramite il sistema dei meta-oggetti e da QML. Vedi Q_INVOKABLE.

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

Rimuove un “ attribute ” dal morph target.

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

Imposta “ attributes ” come morph target. Gli attributi precedenti vengono azzerati.

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