Defines a view point through which the scene will be rendered. 更多...
import 语句: | import Qt3D.Render 2.0 |
Since: | Qt 5.5 |
实例化: | QCamera |
继承: | Entity |
Holds the current aspect ratio of the camera.
Holds the current bottom of the camera.
Holds the current camera far plane of the camera.
Holds the current field of view of the camera in degrees.
Holds the current left of the camera.
Holds the current camera near plane of the camera.
position : vector3d |
Holds the current position of the camera in coordinates relative to the parent entity.
projectionMatrix : matrix4x4 |
Holds the current projection matrix of the camera.
Holds the type of the camera projection.
另请参阅 Qt3DRender::QCameraLens::ProjectionType .
Holds the current right of the camera.
Holds the current top of the camera.
upVector : vector3d |
Holds the current up vector of the camera in coordinates relative to the parent entity.
[read-only] viewCenter : vector3d |
Holds the current view center of the camera in coordinates relative to the parent entity.
[read-only] viewVector : vector3d |
Holds the camera's view vector in coordinates relative to the parent entity.
void pan ( real angle , vector3d axis ) |
Adjusts the camera pan about view center by angle in degrees on axis .
Adjusts the pan angle of the camera by angle in degrees.
void panAboutViewCenter ( real angle , vector3d axis ) |
Adjusts the camera pan about view center by angle in degrees on axis .
Adjusts the camera pan about view center by angle in degrees.
quaternion panRotation ( real angle ) |
Returns the calculated pan rotation in relation to the angle in degrees taken in to adjust the camera's pan or left/right rotation on the Y axis.
Adjusts the camera roll by angle in degrees.
Adjusts the camera roll about view center by angle in degrees.
quaternion rollRotation ( real angle ) |
Returns the calculated roll rotation in relation to the angle in degrees taken in to adjust the camera's roll or lean left/right rotation on the Z axis.
void rotate ( quaternion q ) |
Rotates the camera with the use of a Quaternion in q .
void rotateAboutViewCenter ( quaternion q ) |
Rotates the camera about the view center with the use of a Quaternion in q .
quaternion rotation ( real angle , vector3d axis ) |
Returns the calculated rotation in relation to the angle in degrees and chosen axis taken in.
Adjusts the tilt angle of the camera by angle in degrees.
Adjusts the camera tilt about view center by angle in degrees.
quaternion tiltRotation ( real angle ) |
Returns the calculated tilt rotation in relation to the angle in degrees taken in to adjust the camera's tilt or up/down rotation on the X axis.
void translate ( vector3d vLocal , enumeration option ) |
Translates the camera's position and its view vector by vLocal in local coordinates. The option allows for toggling whether the view center should be translated.
另请参阅 Qt3DRender::QCamera::CameraTranslationOption .
void translateWorld ( vector3d vWorld , enumeration option ) |
Translates the camera's position and its view vector by vWorld in world coordinates. The option allows for toggling whether the view center should be translated.