16 #ifndef QGSCAMERAPOSE_H 17 #define QGSCAMERAPOSE_H 66 void updateCamera( Qt3DRender::QCamera *camera );
69 QDomElement writeXml( QDomDocument &doc )
const;
71 void readXml(
const QDomElement &elem );
75 return mCenterPoint == other.mCenterPoint &&
76 mDistanceFromCenterPoint == other.mDistanceFromCenterPoint &&
77 mPitchAngle == other.mPitchAngle &&
78 mHeadingAngle == other.mHeadingAngle;
89 float mDistanceFromCenterPoint = 1000;
91 float mPitchAngle = 0;
93 float mHeadingAngle = 0;
97 #endif // QGSCAMERAPOSE_H 3 Class for storage of 3D vectors similar to QVector3D, with the difference that it uses double preci...
bool operator==(const QgsFeatureIterator &fi1, const QgsFeatureIterator &fi2)
bool operator==(const QgsCameraPose &other) const
QgsVector3D centerPoint() const
Returns center point (towards which point the camera is looking)
3 Class that encapsulates camera pose in a 3D scene.
void setPitchAngle(float pitch)
Sets pitch angle in degrees.
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
void setHeadingAngle(float heading)
Sets heading (yaw) angle in degrees.
void setCenterPoint(const QgsVector3D &point)
Sets center point (towards which point the camera is looking)
float pitchAngle() const
Returns pitch angle in degrees.
void setDistanceFromCenterPoint(float distance)
Sets distance of the camera from the center point.