QMorphTarget Class

class Qt3DAnimation::QMorphTarget

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

Kopfzeile: #include <QMorphTarget>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake: QT += 3danimation
In QML: MorphTarget
Vererbt: QObject
Status: Veraltet

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)

Detaillierte Beschreibung

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

Dokumentation der Eigenschaften

[read-only] attributeNames : const QStringList

Enthält eine Liste von Attributnamen, die im Morph-Ziel enthalten sind.

Zugriffsfunktionen:

QStringList attributeNames() const

Melder-Signal:

void attributeNamesChanged(const QStringList &attributeNames)

Member Function Dokumentation

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

Konstruiert 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 dem Morph-Ziel nicht vorher 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 in der angegebenen geometry basiert.

Hinweis: Diese Funktion kann über das Meta-Objektsystem und von QML aus aufgerufen werden. Siehe Q_INVOKABLE.

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

Entfernt eine attribute aus dem Morph-Ziel.

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

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

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