|
QGIS API Documentation 3.99.0-Master (21b3aa880ba)
|
Encapsulates camera pose in a 3D scene. More...
#include <qgscamerapose.h>
Public Member Functions | |
| QgsVector3D | centerPoint () const |
| Returns center point (towards which point the camera is looking). | |
| float | distanceFromCenterPoint () const |
| Returns distance of the camera from the center point. | |
| float | headingAngle () const |
| Returns heading (yaw) angle in degrees. | |
| bool | operator!= (const QgsCameraPose &other) const |
| bool | operator== (const QgsCameraPose &other) const |
| float | pitchAngle () const |
| Returns pitch angle in degrees. | |
| void | readXml (const QDomElement &elem) |
| Reads configuration from a DOM element previously written using writeXml(). | |
| void | setCenterPoint (const QgsVector3D &point) |
| Sets center point (towards which point the camera is looking). | |
| void | setDistanceFromCenterPoint (float distance) |
| Sets distance of the camera from the center point. | |
| void | setHeadingAngle (float heading) |
| Sets heading (yaw) angle in degrees. | |
| void | setPitchAngle (float pitch) |
| Sets pitch angle in degrees. | |
| void | updateCamera (Qt3DRender::QCamera *camera) |
| Update Qt3D camera view matrix based on the pose. | |
| void | updateCameraGlobe (Qt3DRender::QCamera *camera, double lat, double lon) |
| Updates camera when using a globe scene. | |
| QDomElement | writeXml (QDomDocument &doc) const |
| Writes configuration to a new DOM element and returns it. | |
Encapsulates camera pose in a 3D scene.
The pose is defined with the following parameters:
Definition at line 45 of file qgscamerapose.h.
|
inline |
Returns center point (towards which point the camera is looking).
Definition at line 49 of file qgscamerapose.h.
|
inline |
Returns distance of the camera from the center point.
Definition at line 54 of file qgscamerapose.h.
|
inline |
Returns heading (yaw) angle in degrees.
Definition at line 64 of file qgscamerapose.h.
|
inline |
Definition at line 87 of file qgscamerapose.h.
|
inline |
Definition at line 83 of file qgscamerapose.h.
|
inline |
Returns pitch angle in degrees.
Definition at line 59 of file qgscamerapose.h.
| void QgsCameraPose::readXml | ( | const QDomElement & | elem | ) |
Reads configuration from a DOM element previously written using writeXml().
Definition at line 35 of file qgscamerapose.cpp.
| void QgsCameraPose::setCenterPoint | ( | const QgsVector3D & | point | ) |
Sets center point (towards which point the camera is looking).
Definition at line 47 of file qgscamerapose.cpp.
| void QgsCameraPose::setDistanceFromCenterPoint | ( | float | distance | ) |
Sets distance of the camera from the center point.
Definition at line 56 of file qgscamerapose.cpp.
|
inline |
Sets heading (yaw) angle in degrees.
Definition at line 66 of file qgscamerapose.h.
| void QgsCameraPose::setPitchAngle | ( | float | pitch | ) |
Sets pitch angle in degrees.
Definition at line 61 of file qgscamerapose.cpp.
| void QgsCameraPose::updateCamera | ( | Qt3DRender::QCamera * | camera | ) |
Update Qt3D camera view matrix based on the pose.
Definition at line 67 of file qgscamerapose.cpp.
| void QgsCameraPose::updateCameraGlobe | ( | Qt3DRender::QCamera * | camera, |
| double | lat, | ||
| double | lon ) |
Updates camera when using a globe scene.
Definition at line 77 of file qgscamerapose.cpp.
| QDomElement QgsCameraPose::writeXml | ( | QDomDocument & | doc | ) | const |
Writes configuration to a new DOM element and returns it.
Definition at line 23 of file qgscamerapose.cpp.