Qt3DCore::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 } |
プロパティ
- createJointsEnabled : bool
- rootJoint : Qt3DCore::QJoint*
- source : QUrl
- status : Status
パブリック関数
| 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」や「Joints」を使用して関節を手動で作成するのではなく、ファイルからスケルトン全体を読み込みたい場合は、SkeletonLoader を使用してください。 スケルトンの作成や、メッシュの頂点をスケルトンにバインドする作業は、Blender などの 3D デジタルコンテンツ作成ツールを使用すると最も簡単に行えます。作成されたスケルトンとメッシュは、Qt 3D で利用できるよう、glTF 2 などの適切な形式でエクスポートできます。
メンバータイプのドキュメント
enum QSkeletonLoader::Status
この列挙型は、スケルトンの状態を識別します。
| 定数 | 値 | 説明 |
|---|---|---|
Qt3DCore::QSkeletonLoader::NotReady | 0 | スケルトンがまだ読み込まれていません |
Qt3DCore::QSkeletonLoader::Ready | 1 | スケルトンが正常に読み込まれました |
Qt3DCore::QSkeletonLoader::Error | 2 | スケルトンの読み込み中にエラーが発生しました |
プロパティのドキュメント
createJointsEnabled : bool
このプロパティは、createJoints が有効かどうかを示すブール値を保持します。
アクセス関数:
| bool | isCreateJointsEnabled() const |
| void | setCreateJointsEnabled(bool enabled) |
Notifierシグナル:
| void | createJointsEnabledChanged(bool createJointsEnabled) |
[read-only] rootJoint : Qt3DCore::QJoint*
このプロパティには、スケルトンを構成するジョイントの階層のルートジョイントが格納されます。
ソースから読み込まれたスケルトン階層のルートジョイントを保持します。
アクセス関数:
| Qt3DCore::QJoint * | rootJoint() const |
通知信号:
| void | rootJointChanged(Qt3DCore::QJoint *rootJoint) |
source : QUrl
スケルトンを読み込む元となるソースURLを保持します。
アクセス関数:
| QUrl | source() const |
| void | setSource(const QUrl &source) |
通知シグナル:
| void | sourceChanged(const QUrl &source) |
[read-only] status : Status
スケルトンの読み込み状況の現在の状態を保持します。
アクセス関数:
| Qt3DCore::QSkeletonLoader::Status | status() const |
通知シグナル:
| void | statusChanged(Qt3DCore::QSkeletonLoader::Status status) |
メンバ関数のドキュメント
[explicit] QSkeletonLoader::QSkeletonLoader(Qt3DCore::QNode *parent = nullptr)
parent を使用して、新しい QSkeletonLoader を作成します。
[explicit] QSkeletonLoader::QSkeletonLoader(const QUrl &source, Qt3DCore::QNode *parent = nullptr)
parent を使用して新しい QSkeletonLoader を生成し、source を設定します。
bool QSkeletonLoader::isCreateJointsEnabled() const
CreateJoints が有効かどうかを示すブール値を返します。デフォルト値は `false` です。
注: プロパティ `createJointsEnabled`のゲッター 関数です。
Qt3DCore::QJoint *QSkeletonLoader::rootJoint() const
スケルトンを構成するジョイントの階層構造のルートジョイントを返します。
注: プロパティ rootJointのゲッター 関数です。
© 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.