CameraLens QML Type
提供用于为 3D 场景定义相机的投影矩阵。更多
| Import Statement: | import Qt3D.Render 2.11 |
| In C++: | QCameraLens |
| Inherits: | |
| Status: | Deprecated |
属性
- aspectRatio : real
- bottom : real
- farPlane : real
- fieldOfView : real
- left : real
- nearPlane : real
- projectionMatrix : matrix4x4
- projectionType : enumeration
- right : real
- top : real
详细说明
财产文件
aspectRatio : real
保存摄像机镜头的当前长宽比。
bottom : real
保持摄像机镜头的当前底平面。
farPlane : real
保存当前摄像机镜头的近平面。
fieldOfView : real
保存摄像机镜头的当前视场角,单位为度。
left : real
保存当前摄像机镜头的左平面。
nearPlane : real
保存当前摄像机镜头的近平面。
projectionMatrix : matrix4x4 [read-only]
保存当前摄像机镜头的投影矩阵。
注: 这将把投影类型设置为Qt3DRender::QCameraLens::CustomProjection ,从而忽略可能指定的所有其他摄像机参数。
projectionType : enumeration
表示摄像机投影的类型。
- CameraLens.正投影
- CameraLens.透视投影
- CameraLens.Frustum 投影
- CameraLens.自定义投影
另请参阅 Qt3DRender::QCameraLens::ProjectionType 。
right : real
保存当前摄像机镜头的右平面。
top : 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.