Auf dieser Seite

Qt3DAnimation::QMorphTarget Class

class Qt3DAnimation::QMorphTarget

Eine Klasse, die Morph-Ziele für die Blend-Shape-Animation bereitstellt. Mehr...

Überschrift: #include <qmorphtarget.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake: QT += 3danimation
In QML: MorphTarget
Erbt von: QObject
Status: Technologievorschau

Diese Klasse befindet sich in der Technologievorschau und kann sich noch ändern.

Eigenschaften

Öffentliche Funktionen

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)

Signale

void attributeNamesChanged(const QStringList &attributeNames)

Statische öffentliche Mitglieder

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

Ausführliche Beschreibung

Eine „ Qt3DAnimation::QMorphTarget “-Klasse ist eine Komfortklasse, die eine Liste von „ QAttributes “ bereitstellt, die der „ QMorphingAnimation “ zur Animation von Geometrie verwendet. Ein „QMorphTarget“ kann auch auf der Grundlage eines vorhandenen „ Qt3DCore::QGeometry “ erstellt werden.

Dokumentation zu den Eigenschaften

[read-only] attributeNames : QStringList

Enthält eine Liste der im Morph-Ziel enthaltenen Attributnamen.

Zugriffsfunktionen:

QStringList attributeNames() const

Notifier-Signal:

void attributeNamesChanged(const QStringList &attributeNames)

Dokumentation der Mitgliedsfunktionen

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

Erstellt ein `QMorphTarget` mit dem angegebenen ` parent`.

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

Fügt dem Morph-Ziel ein „ attribute “ hinzu. Ein Attribut mit demselben Namen darf zuvor nicht zum Morph-Ziel hinzugefügt worden sein.

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

Gibt eine Liste der im Morph-Ziel enthaltenen Attribute zurück.

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

Gibt ein Morph-Ziel zurück, das auf dem „ attributes “ im angegebenen „ geometry “ basiert.

Hinweis: Diese Funktion kann über das Metaobjekt-System und aus QML aufgerufen werden. Siehe Q_INVOKABLE.

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

Entfernt ein „ attribute “ aus dem Morph-Ziel.

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

Setzt „ attributes “ auf das Morph-Ziel. Alte Attribute werden gelöscht.

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