QMesh Class
class Qt3DRender::QMeshカスタムメッシュローダー。もっと見る...
ヘッダー | #include <Qt3DRender/QMesh> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake | QT += 3drender |
QML で | Mesh |
を継承しています: | Qt3DRender::QGeometryRenderer |
ステータス | 非推奨 |
パブリックな型
enum | Status { None, Loading, Ready, Error } |
プロパティ
パブリック機能
QMesh(Qt3DCore::QNode *parent = nullptr) | |
QString | meshName() const |
QUrl | source() const |
Qt3DRender::QMesh::Status | status() const |
パブリックスロット
void | setMeshName(const QString &meshName) |
void | setSource(const QUrl &source) |
シグナル
void | meshNameChanged(const QString &meshName) |
void | sourceChanged(const QUrl &source) |
void | statusChanged(Qt3DRender::QMesh::Status status) |
詳細説明
様々な形式の外部ファイルからメッシュデータを読み込みます。Qt3DRender::QMesh データを単一のメッシュに読み込みます。
Qt3D 5.9 では、QMesh は以下のフォーマットをサポートしています:
- 波面 OBJ
- スタンフォードトライアングルフォーマット PLY
- STL (STereoLithography)
SDKがインストールされ、FBXジオメトリーローダープラグインがビルドされ、見つかった場合、QMeshは以下のフォーマットもサポートします:
- Autodesk FBX
複数のオブジェクトで構成されるシーン全体をロードしたい場合は、代わりにQt3DRender::QSceneLoader を使用してください。
Qt3DRender::QSceneLoaderも参照して ください。
メンバー タイプ ドキュメント
enum QMesh::Status
この列挙型は、使用されているシェーダーの状態を識別します。
定数 | 値 | 説明 |
---|---|---|
Qt3DRender::QMesh::None | 0 | ソースメッシュにまだソースが割り当てられていない |
Qt3DRender::QMesh::Loading | 1 | メッシュジオメトリはロード中です。 |
Qt3DRender::QMesh::Ready | 2 | メッシュ形状が正常にロードされた |
Qt3DRender::QMesh::Error | 3 | メッシュのロード中にエラーが発生しました |
プロパティのドキュメント
meshName : QString
メッシュの名前を保持します。
アクセス関数:
QString | meshName() const |
void | setMeshName(const QString &meshName) |
通知シグナル
void | meshNameChanged(const QString &meshName) |
source : QUrl
カスタムメッシュを含むファイルへのsource url を保持します。
アクセス関数
QUrl | source() const |
void | setSource(const QUrl &source) |
通知シグナル
void | sourceChanged(const QUrl &source) |
[read-only]
status : const Status
メッシュのロード状態を保持します。
アクセス関数:
Qt3DRender::QMesh::Status | status() const |
通知シグナル:
void | statusChanged(Qt3DRender::QMesh::Status 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.