OrthographicCamera QML Type
定义一个具有正交投影矩阵的相机。更多...
| Import Statement: | import QtQuick3D |
| Inherits: |
属性
- clipFar : real
- clipNear : real
- horizontalMagnification : real
- verticalMagnification : real
详细说明
Camera 定义了 3D 场景的内容如何投影到 2D 表面上,例如View3D 。一个场景至少需要一个Camera 才能将其内容可视化。
Camera 可以像场景中的其他空间Node 一样进行定位和旋转。Node 的位置和方向决定了Camera 在场景中的位置及其朝向。Camera 的默认方向是:其前进向量沿负 Z 轴方向,向上向量沿正 Y 轴方向。

OrthographicCamera 是一种平行投影Camera ,其中平行线保持平行,且物体的视觉比例不受其与Camera 之间距离的影响。此类Camera 的典型应用场景包括 CAD(计算机辅助设计)应用程序和制图。
以下示例在场景中坐标为 [0, 200, 300] 的位置创建了一个 OrthographicCamera,并设置了 30 度的向下俯仰角。
OrthographicCamera {
position: Qt.vector3d(0, 200, 300)
eulerRotation.x: -30
}另请参阅 Qt Quick 3D - View3D 示例、PerspectiveCamera 、FrustumCamera 以及CustomCamera 。
属性文档
clipFar : real
该属性定义了OrthographicCamera 的锥体远裁剪平面。距离Camera 比远裁剪平面更远的几何体将不可见。
默认值为 10000.0。
另请参阅 clipNear 。
clipNear : real
该属性定义了OrthographicCamera 的锥体近裁剪平面。距离Camera 比近裁剪平面更近的几何体将不可见。
默认值为 10.0。
另请参阅 clipFar 。
horizontalMagnification : real
该属性存储OrthographicCamera 的视锥体的水平缩放倍数。
默认值为 1.0。
另请参阅 verticalMagnification 。
verticalMagnification : real
该属性存储OrthographicCamera 的截锥体的垂直缩放因子。
默认值为 1.0。
另请参阅 horizontalMagnification 。
© 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.