Camera3D QML Type
Representation of a camera in 3D space. More...
|Import Statement:||import QtDataVisualization 1.5|
- cameraPreset : Camera3D.CameraPreset
- maxZoomLevel : float
- minZoomLevel : float
- target : vector3d
- wrapXRotation : bool
- wrapYRotation : bool
- xRotation : float
- yRotation : float
- zoomLevel : float
Camera3D represents a basic orbit around centerpoint 3D camera that is used when rendering the data visualization. The type offers simple methods for rotating the camera around the origin and setting zoom level.
For Camera3D enums, see Q3DCamera::CameraPreset.
cameraPreset : Camera3D.CameraPreset
maxZoomLevel : float
Sets the maximum allowed camera zoom level. If the new maximum level is lower than the existing minimum level, the minimum level is adjusted to the new maximum as well. If the current zoomLevel is outside the new bounds, it is adjusted as well. Defaults to
minZoomLevel : float
Sets the minimum allowed camera zoom level. If the new minimum level is higher than the existing maximum level, the maximum level is adjusted to the new minimum as well. If the current zoomLevel is outside the new bounds, it is adjusted as well. The minZoomLevel cannot be set below
1.0. Defaults to
[since QtDataVisualization 1.2] target : vector3d
The camera target as a vector3d. Defaults to
vector3d(0.0, 0.0, 0.0).
Valid coordinate values are between
-1.0...1.0, where the edge values indicate the edges of the corresponding axis range. Any values outside this range are clamped to the edge.
Note: For bar graphs, the Y-coordinate is ignored and camera always targets a point on the horizontal background.
This property was introduced in QtDataVisualization 1.2.
wrapXRotation : bool
The behavior of the minimum and maximum limits in the X-rotation. By default, the X-rotation wraps from minimum value to maximum and from maximum to minimum.
If set to
true, the X-rotation of the camera is wrapped from minimum to maximum and from maximum to minimum. If set to
false, the X-rotation of the camera is limited to the sector determined by the minimum and maximum values.
wrapYRotation : bool
The behavior of the minimum and maximum limits in the Y-rotation. By default, the Y-rotation is limited between the minimum and maximum values without any wrapping.
true, the Y-rotation of the camera is wrapped from minimum to maximum and from maximum to minimum. If
false, the Y-rotation of the camera is limited to the sector determined by the minimum and maximum values.
xRotation : float
The X-rotation angle of the camera around the target point in degrees starting from the current base position.
yRotation : float
The Y-rotation angle of the camera around the target point in degrees starting from the current base position.
zoomLevel : float
© 2023 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.