QAnimationClipLoader Class

class Qt3DAnimation::QAnimationClipLoader

キーフレームアニメーションデータをファイルから読み込めるようにする。詳細...

ヘッダー #include <QAnimationClipLoader>
CMake.CMake.CMake.CMake.CG find_package(Qt6 REQUIRED COMPONENTS 3danimation)
target_link_libraries(mytarget PRIVATE Qt6::3danimation)
qmake: QT += 3danimation
を継承する: Qt3DAnimation::QAbstractAnimationClip
ステータス非推奨

パブリックな型

enum Status { NotReady, Ready, Error }

プロパティ

パブリック機能

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

パブリックスロット

void setSource(const QUrl &source)

シグナル

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

詳細説明

メンバー型ドキュメント

enum QAnimationClipLoader::Status

この列挙型は、アニメーションクリップの状態を識別します。

定数説明
Qt3DAnimation::QAnimationClipLoader::NotReady0クリップはまだロードされていません。
Qt3DAnimation::QAnimationClipLoader::Ready1クリップは正常にロードされました。
Qt3DAnimation::QAnimationClipLoader::Error2クリップのロード中にエラーが発生しました。

プロパティの説明

source : QUrl

アニメーションクリップの読み込み元URLを保持します。現在、glTF2 とネイティブのQt 3D json アニメーションファイル形式がサポートされています。

ファイルに複数のアニメーションが含まれている場合、ソース URL のクエリパラメータで読み込むアニメーションを選択できます。使用できるクエリパラメータは animationIndex と animationName です。両方が指定された場合、animationName は無視されます。

ファイルにアニメーションが1つしか含まれていない場合、animationIndexやanimationNameを指定する必要はありません。利用可能なアニメーションを使用するだけです。

アクセス関数

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

通知シグナル

void sourceChanged(const QUrl &source)

[read-only] status : const Status

このプロパティには、アニメーションクリップの状態が格納される。

アクセス関数

Qt3DAnimation::QAnimationClipLoader::Status status() const

通知シグナル

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

メンバ関数ドキュメント

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

アニメーションクリップの状態を返します。

注: プロパティ状態のゲッター関数です。

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