QSkeletonLoader Class

class Qt3DCore::QSkeletonLoader

関節のスケルトンをファイルからロードするために使用します。さらに...

ヘッダー #include <QSkeletonLoader>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3DCore)
target_link_libraries(mytarget PRIVATE Qt6::3DCore)
qmake QT += 3dcore
QML で SkeletonLoader
を継承しています: Qt3DCore::QAbstractSkeleton
ステータス非推奨

パブリックな型

enum Status { NotReady, Ready, Error }

プロパティ

パブリック機能

QSkeletonLoader(Qt3DCore::QNode *parent = nullptr)
QSkeletonLoader(const QUrl &source, Qt3DCore::QNode *parent = nullptr)
bool isCreateJointsEnabled() const
Qt3DCore::QJoint *rootJoint() const
QUrl source() const
Qt3DCore::QSkeletonLoader::Status status() const

パブリックスロット

void setCreateJointsEnabled(bool enabled)
void setSource(const QUrl &source)

シグナル

void createJointsEnabledChanged(bool createJointsEnabled)
void rootJointChanged(Qt3DCore::QJoint *rootJoint)
void sourceChanged(const QUrl &source)
void statusChanged(Qt3DCore::QSkeletonLoader::Status status)

詳細説明

Skeleton and Joints を使ってジョイントを自分で作成するのではなく、ファイルからスケルトン全体を読み込みたい場合は、SkeletonLoader を使ってください。スケルトンを作成し、メッシュの頂点をスケルトンにバインドすることは、Blenderのような3Dデジタルコンテンツ作成ツールで最も簡単に実行できます。出来上がったスケルトンとメッシュは、glTF 2のような適切なフォーマットでエクスポートして、Qt 3D

メンバ型ドキュメント

enum QSkeletonLoader::Status

この列挙型は、スケルトンの状態を識別する。

定数説明
Qt3DCore::QSkeletonLoader::NotReady0スケルトンはまだロードされていない
Qt3DCore::QSkeletonLoader::Ready1スケルトンは正常にロードされた
Qt3DCore::QSkeletonLoader::Error2スケルトンのロード中にエラーが発生した

プロパティ・ドキュメンテーション

createJointsEnabled : bool

このプロパティは、createJoints が有効かどうかを示すブール値を保持します。

アクセス関数:

bool isCreateJointsEnabled() const
void setCreateJointsEnabled(bool enabled)

通知シグナル

void createJointsEnabledChanged(bool createJointsEnabled)

source : QUrl

スケルトンの読み込み元URLを保持します。

アクセス関数:

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

通知シグナル

void sourceChanged(const QUrl &source)

[read-only] status : const Status

スケルトンロードの現在の状態を保持します。

アクセス関数:

Qt3DCore::QSkeletonLoader::Status status() const

Notifier シグナル:

void statusChanged(Qt3DCore::QSkeletonLoader::Status status)

メンバー関数ドキュメント

[explicit] QSkeletonLoader::QSkeletonLoader(Qt3DCore::QNode *parent = nullptr)

新しい QSkeletonLoader をparent で構築します。

[explicit] QSkeletonLoader::QSkeletonLoader(const QUrl &source, Qt3DCore::QNode *parent = nullptr)

新しい QSkeletonLoader をparent で構築し、source を設定します。

bool QSkeletonLoader::isCreateJointsEnabled() const

CreateJoints が有効かどうかを示すブール値を返します。デフォルト値はfalse です。

メモ: プロパティのゲッター関数createJointsEnabled

Qt3DCore::QJoint *QSkeletonLoader::rootJoint() const

スケルトンを形成するジョイント階層のルートジョイントを返します。

Note: プロパティ rootJoint のゲッター関数です。

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