AxisHelper QML Type
3Dシーンで3軸とグリッドを表示するためのビジュアルヘルパー。詳細...
Import Statement: | import QtQuick3D.Helpers |
Inherits: |
プロパティ
- enableAxisLines : bool
- enableXYGrid : bool
- enableXZGrid : bool
- enableYZGrid : bool
- gridColor : color
- gridOpacity : real
詳細説明
X軸は赤、Y軸は緑、Z軸は青です。
この例のシーンには、位置(0, 0, 0)
に球があり、AxisHelperオブジェクトがあります。WasdController ヘルパーを使うと、シーンを便利にナビゲートできる。
View3D { anchors.fill: parent camera: camera PerspectiveCamera { id: camera position: Qt.vector3d(0, 0, 600) } DirectionalLight { position: Qt.vector3d(-500, 500, -100) color: Qt.rgba(0.4, 0.2, 0.6, 1.0) ambientColor: Qt.rgba(0.1, 0.1, 0.1, 1.0) } Model { source: "#Sphere" materials: [ DefaultMaterial { } ] } AxisHelper { } } WasdController { controlledObject: camera }
プロパティ Documentation
enableAxisLines : bool |
軸線の表示を有効にします。デフォルト値はtrueです。
enableXYGrid : bool |
XY 平面上のグリッドを有効にします。デフォルト値はfalseです。
enableXZGrid : bool |
XZ 平面上のグリッドを有効にします。デフォルト値はtrue。
enableYZGrid : bool |
YZ 平面上のグリッドを有効にする。デフォルト値は false。
gridColor : color |
グリッドの色を指定します。デフォルト値はQt.rgba(0.8, 0.8, 0.8, 1)
。
gridOpacity : real |
グリッドの不透明度を指定します。デフォルト値は 0.5 です。
© 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.