AxisHelper QML Type

Visuelles Hilfsmittel zur Darstellung der 3 Achsen und eines Gitters in einer 3D-Szene. Mehr...

Import Statement: import QtQuick3D.Helpers
Inherits:

Node

Eigenschaften

Detaillierte Beschreibung

Die X-Achse ist rot, die Y-Achse ist grün und die Z-Achse ist blau.

Die Beispielszene hier hat eine Sphere an der Position (0, 0, 0) und ein AxisHelper Objekt. Mit dem WasdController -Helper kann man bequem in der Szene navigieren.

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
}

Eigenschaft Dokumentation

enableAxisLines : bool

Aktiviert die Anzeige der Achsenlinien. Der Standardwert ist true.


enableXYGrid : bool

Aktiviert das Gitter auf der XY-Ebene. Der Standardwert ist false.


enableXZGrid : bool

Aktiviert das Raster auf der XZ-Ebene. Der Standardwert ist true.


enableYZGrid : bool

Aktiviert das Raster auf der YZ-Ebene. Der Standardwert ist false.


gridColor : color

Gibt die Farbe des Gitters an. Der Standardwert ist Qt.rgba(0.8, 0.8, 0.8, 1).


gridOpacity : real

Legt die Deckkraft des Gitters fest. Der Standardwert ist 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.