mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 16:58:24 +02:00
29 lines
No EOL
1 KiB
QML
29 lines
No EOL
1 KiB
QML
import Qt3D.Core 2.0
|
|
import Qt3D.Render 2.9
|
|
import Qt3D.Input 2.0
|
|
import Qt3D.Extras 2.10
|
|
import QtQuick 2.9
|
|
import Qt3D.Logic 2.0
|
|
|
|
Entity {
|
|
id: root
|
|
property DefaultCameraController sceneCameraController
|
|
property Layer frontLayerComponent
|
|
property var window
|
|
property alias uniformScale: transformGizmo.uniformScale // by default, if not set, the value is: false
|
|
property TransformGizmo transformGizmo: TransformGizmo {
|
|
id: transformGizmo
|
|
camera: root.camera
|
|
windowSize: root.windowSize
|
|
frontLayerComponent: root.frontLayerComponent
|
|
window: root.window
|
|
|
|
onPickedChanged: {
|
|
sceneCameraController.loseMouseFocus = pressed // Notify the camera if the transform takes/releases the focus
|
|
}
|
|
}
|
|
|
|
readonly property Camera camera : sceneCameraController.camera
|
|
readonly property var windowSize: sceneCameraController.windowSize
|
|
readonly property alias objectTransform : transformGizmo.objectTransform // The Transform the object should use
|
|
} |