このページでは

AxisHelper QML Type

3Dシーンで3軸とグリッドを表示するためのビジュアルヘルパー。詳細...

Import Statement: import QtQuick3D.Helpers
Inherits:

Node

プロパティ

詳細説明

座標系を示すRGB軸線を持つ球体

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: [ PrincipledMaterial { } ]
    }

    AxisHelper {
    }
}

WasdController {
    controlledObject: camera
}

プロパティ・ドキュメント

enableAxisLines : bool [default: true]

軸線の表示を有効にする。

enableXYGrid : bool [default: false]

XY平面上のグリッドを有効にする。

enableXZGrid : bool

/XZ 平面上のグリッドを有効にする。

enableYZGrid : bool [default: false]

YZ平面上のグリッドを有効にする。

gridColor : color [default: Qt.rgba(0.8, 0.8, 0.8, 1)]

グリッドの色を指定する。

gridOpacity : real [default: 0.5]

グリッドの不透明度を指定する。

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