Class: QgsCameraPose¶
Class that encapsulates camera pose in a 3D scene.
The pose is defined with the following parameters:
center point - towards which point the camera is looking
distance from the center point - how far is the camera from the point towards which it is looking
pitch angle - vertical rotation of the camera (0 degrees = camera looking down, 90 degrees = camera looking from the side)
yaw angle - horizontal rotation of the camera
Added in version 3.4.
Methods
Returns center point (towards which point the camera is looking)  | 
|
Returns distance of the camera from the center point  | 
|
Returns heading (yaw) angle in degrees  | 
|
Returns pitch angle in degrees  | 
|
Reads configuration from a DOM element previously written using   | 
|
Sets center point (towards which point the camera is looking)  | 
|
Sets distance of the camera from the center point  | 
|
Sets heading (yaw) angle in degrees  | 
|
Sets pitch angle in degrees  | 
|
Writes configuration to a new DOM element and returns it  | 
- class qgis._3d.QgsCameraPose[source]¶
 Bases:
object- centerPoint(self) QgsVector3D[source]¶
 Returns center point (towards which point the camera is looking)
- Return type:
 
- distanceFromCenterPoint(self) float[source]¶
 Returns distance of the camera from the center point
- Return type:
 float
- readXml(self, elem: QDomElement)[source]¶
 Reads configuration from a DOM element previously written using
writeXml()- Parameters:
 elem (QDomElement)
- setCenterPoint(self, point: QgsVector3D)[source]¶
 Sets center point (towards which point the camera is looking)
- Parameters:
 point (QgsVector3D)
- setDistanceFromCenterPoint(self, distance: float)[source]¶
 Sets distance of the camera from the center point
- Parameters:
 distance (float)