Qt3DAnimation::QMorphTarget Class
class Qt3DAnimation::QMorphTargetUne classe fournissant des cibles de morphes pour l'animation de formes mixtes. Plus d'informations...
| En-tête : | #include <QMorphTarget> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS 3danimation)target_link_libraries(mytarget PRIVATE Qt6::3danimation) |
| qmake : | QT += 3danimation |
| En QML : | MorphTarget |
| Hérite : | QObject |
| Statut : | Déclassé |
Propriétés
- attributeNames : QStringList
Fonctions publiques
| 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) |
Signaux
| void | attributeNamesChanged(const QStringList &attributeNames) |
Membres publics statiques
| Qt3DAnimation::QMorphTarget * | fromGeometry(Qt3DCore::QGeometry *geometry, const QStringList &attributes) |
Description détaillée
Une classe Qt3DAnimation::QMorphTarget est une classe de commodité qui fournit une liste de QAttributes, que QMorphingAnimation utilise pour animer la géométrie. Une QMorphTarget peut également être créée sur la base d'une Qt3DCore::QGeometry existante.
Documentation sur les propriétés
[read-only] attributeNames : QStringList
Contient une liste de noms d'attributs contenus dans la cible de morphologie.
Fonctions d'accès :
| QStringList | attributeNames() const |
Signal du notificateur :
| void | attributeNamesChanged(const QStringList &attributeNames) |
Fonction membre Documentation
[explicit] QMorphTarget::QMorphTarget(QObject *parent = nullptr)
Construit une QMorphTarget avec parent.
void QMorphTarget::addAttribute(Qt3DCore::QAttribute *attribute)
Ajoute une attribute à la cible morph. Un attribut portant le même nom ne doit pas avoir été ajouté précédemment à la morph target.
QList<Qt3DCore::QAttribute *> QMorphTarget::attributeList() const
Renvoie une liste d'attributs contenus dans la cible morph.
[static invokable] Qt3DAnimation::QMorphTarget *QMorphTarget::fromGeometry(Qt3DCore::QGeometry *geometry, const QStringList &attributes)
Renvoie une cible morphologique basée sur les attributes dans le geometry donné.
Note : Cette fonction peut être invoquée via le système de méta-objets et à partir de QML. Voir Q_INVOKABLE.
void QMorphTarget::removeAttribute(Qt3DCore::QAttribute *attribute)
Supprime une attribute de la cible du morphing.
void QMorphTarget::setAttributes(const QList<Qt3DCore::QAttribute *> &attributes)
Définit attributes pour la cible morph. Les anciens attributs sont effacés.
© 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.