本页内容

OrbitCameraController QML Type

OrbitCameraController 类允许沿轨道路径控制场景摄像机。更多内容...

Import Statement: import Qt3D.Extras 2.12
Inherits:

Entity

Status: Technology preview

此类型处于技术预览阶段,可能会有变动。

属性

详细说明

OrbitCameraController 类允许沿轨道路径控制场景摄像机。

控制项包括:

输入操作
鼠标左键按住鼠标左键时,沿 x 轴移动鼠标可使摄像机左右移动,沿 y 轴移动鼠标可使摄像机上下移动。
鼠标右键按住鼠标右键时,沿 x 轴移动鼠标可使摄像机围绕视图中心平移,沿 y 轴移动则可使摄像机围绕视图中心倾斜。
同时按下鼠标左键和右键同时按住鼠标左键和右键时,沿y轴移动鼠标可使摄像机进行缩放,而视图中心保持不变。
方向键相对于摄像机视口,垂直和水平移动摄像机。
Page Up 和 Page Down 键使摄像机向前或向后移动。
Shift 键将向上和向下箭头键的功能切换为在不改变视图中心的情况下对镜头进行缩放。其他移动键将被禁用。
Alt键将方向键的功能更改为围绕视图中心平移和俯仰摄像机。禁用“Page Up”和“Page Down”键。

属性文档

camera : Camera

保留当前控制的摄像头。

linearSpeed : real

保存摄像机控制器的当前线性速度。线性速度决定了摄像机的移动速度。

lookSpeed : real

保存摄像机控制器的当前视角速度。视角速度决定了摄像机水平旋转和垂直旋转的转速。

zoomInLimit : real

保存当前的放大限制。放大限制决定了摄像机可以放大到距离视图中心多近的位置。

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