QAnimationClipLoader Class

class Qt3DAnimation::QAnimationClipLoader

Ermöglicht das Laden von Keyframe-Animationsdaten aus einer Datei. Mehr...

Kopfzeile: #include <QAnimationClipLoader>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake: QT += 3danimation
Vererbt: Qt3DAnimation::QAbstractAnimationClip
Status: Veraltet

Öffentliche Typen

enum Status { NotReady, Ready, Error }

Eigenschaften

Öffentliche Funktionen

QUrl source() const
Qt3DAnimation::QAnimationClipLoader::Status status() const

Öffentliche Slots

void setSource(const QUrl &source)

Signale

void sourceChanged(const QUrl &source)
void statusChanged(Qt3DAnimation::QAnimationClipLoader::Status status)

Detaillierte Beschreibung

Dokumentation der Mitgliedstypen

enum QAnimationClipLoader::Status

Diese Aufzählung gibt den Status des Animationsclips an.

KonstanteWertBeschreibung
Qt3DAnimation::QAnimationClipLoader::NotReady0Der Clip wurde noch nicht geladen
Qt3DAnimation::QAnimationClipLoader::Ready1Der Clip wurde erfolgreich geladen
Qt3DAnimation::QAnimationClipLoader::Error2Beim Laden des Clips ist ein Fehler aufgetreten

Eigenschaft Dokumentation

source : QUrl

Enthält die Quell-URL, aus der der Animationsclip geladen werden soll. Derzeit werden glTF2 und die nativen Qt 3D json-Animationsdateiformate unterstützt.

Enthält eine Datei mehrere Animationen, kann mit Hilfe von Abfrageparametern in der Quell-URL ausgewählt werden, welche Animation geladen werden soll. Die akzeptierten Abfrageparameter sind animationIndex und animationName. Wenn beide angegeben werden, wird animationName ignoriert.

Wenn eine Datei nur eine einzige Animation enthält, ist es nicht notwendig, animationIndex oder animationName anzugeben. Es wird einfach die eine verfügbare Animation verwendet.

Zugriffsfunktionen:

QUrl source() const
void setSource(const QUrl &source)

Benachrichtigungssignal:

void sourceChanged(const QUrl &source)

[read-only] status : const Status

Diese Eigenschaft enthält den Status des Animationsclips.

Zugriffsfunktionen:

Qt3DAnimation::QAnimationClipLoader::Status status() const

Benachrichtigungssignal:

void statusChanged(Qt3DAnimation::QAnimationClipLoader::Status status)

Member Function Dokumentation

Qt3DAnimation::QAnimationClipLoader::Status QAnimationClipLoader::status() const

Gibt den Status des Animationsclips zurück.

Hinweis: Getter-Funktion für die Eigenschaft status.

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