QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
16 #ifndef QGSCAMERAPOSE_H
17 #define QGSCAMERAPOSE_H
69 void updateCamera( Qt3DRender::QCamera *camera )
SIP_SKIP;
72 QDomElement writeXml( QDomDocument &doc )
const;
74 void readXml(
const QDomElement &elem );
78 return mCenterPoint == other.mCenterPoint &&
79 mDistanceFromCenterPoint == other.mDistanceFromCenterPoint &&
80 mPitchAngle == other.mPitchAngle &&
81 mHeadingAngle == other.mHeadingAngle;
92 float mDistanceFromCenterPoint = 1000;
94 float mPitchAngle = 0;
96 float mHeadingAngle = 0;
100 #endif // QGSCAMERAPOSE_H
QgsVector3D centerPoint() const
Returns center point (towards which point the camera is looking)
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
3 Class for storage of 3D vectors similar to QVector3D, with the difference that it uses double preci...
float distanceFromCenterPoint() const
Returns distance of the camera from the center point.
void setHeadingAngle(float heading)
Sets heading (yaw) angle in degrees.
float pitchAngle() const
Returns pitch angle in degrees.
float headingAngle() const
Returns heading (yaw) angle in degrees.
bool operator!=(const QgsCameraPose &other) const
bool operator==(const QgsCameraPose &other) const
3 Class that encapsulates camera pose in a 3D scene.
void setPitchAngle(float pitch)
Sets pitch angle in degrees.
void setDistanceFromCenterPoint(float distance)
Sets distance of the camera from the center point.
void setCenterPoint(const QgsVector3D &point)
Sets center point (towards which point the camera is looking)