QGIS API Documentation  3.6.0-Noosa (5873452)
Public Member Functions | List of all members
QgsCameraPose Class Reference

3 Class that 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) More...
 
float distanceFromCenterPoint () const
 Returns distance of the camera from the center point. More...
 
float headingAngle () const
 Returns heading (yaw) angle in degrees. More...
 
bool operator!= (const QgsCameraPose &other) const
 
bool operator== (const QgsCameraPose &other) const
 
float pitchAngle () const
 Returns pitch angle in degrees. More...
 
void readXml (const QDomElement &elem)
 Reads configuration from a DOM element previously written using writeXml() More...
 
void setCenterPoint (const QgsVector3D &point)
 Sets center point (towards which point the camera is looking) More...
 
void setDistanceFromCenterPoint (float distance)
 Sets distance of the camera from the center point. More...
 
void setHeadingAngle (float heading)
 Sets heading (yaw) angle in degrees. More...
 
void setPitchAngle (float pitch)
 Sets pitch angle in degrees. More...
 
void updateCamera (Qt3DRender::QCamera *camera)
 Update Qt3D camera view matrix based on the pose. More...
 
QDomElement writeXml (QDomDocument &doc) const
 Writes configuration to a new DOM element and returns it. More...
 

Detailed Description

3 Class that encapsulates camera pose in a 3D scene.

The pose is defined with the following parameters:

Since
QGIS 3.4

Definition at line 41 of file qgscamerapose.h.

Member Function Documentation

◆ centerPoint()

QgsVector3D QgsCameraPose::centerPoint ( ) const
inline

Returns center point (towards which point the camera is looking)

Definition at line 46 of file qgscamerapose.h.

◆ distanceFromCenterPoint()

float QgsCameraPose::distanceFromCenterPoint ( ) const
inline

Returns distance of the camera from the center point.

Definition at line 51 of file qgscamerapose.h.

◆ headingAngle()

float QgsCameraPose::headingAngle ( ) const
inline

Returns heading (yaw) angle in degrees.

Definition at line 61 of file qgscamerapose.h.

◆ operator!=()

bool QgsCameraPose::operator!= ( const QgsCameraPose other) const
inline

Definition at line 80 of file qgscamerapose.h.

◆ operator==()

bool QgsCameraPose::operator== ( const QgsCameraPose other) const
inline

Definition at line 73 of file qgscamerapose.h.

◆ pitchAngle()

float QgsCameraPose::pitchAngle ( ) const
inline

Returns pitch angle in degrees.

Definition at line 56 of file qgscamerapose.h.

◆ readXml()

void QgsCameraPose::readXml ( const QDomElement &  elem)

Reads configuration from a DOM element previously written using writeXml()

Definition at line 34 of file qgscamerapose.cpp.

◆ setCenterPoint()

void QgsCameraPose::setCenterPoint ( const QgsVector3D point)
inline

Sets center point (towards which point the camera is looking)

Definition at line 48 of file qgscamerapose.h.

◆ setDistanceFromCenterPoint()

void QgsCameraPose::setDistanceFromCenterPoint ( float  distance)
inline

Sets distance of the camera from the center point.

Definition at line 53 of file qgscamerapose.h.

◆ setHeadingAngle()

void QgsCameraPose::setHeadingAngle ( float  heading)
inline

Sets heading (yaw) angle in degrees.

Definition at line 63 of file qgscamerapose.h.

◆ setPitchAngle()

void QgsCameraPose::setPitchAngle ( float  pitch)
inline

Sets pitch angle in degrees.

Definition at line 58 of file qgscamerapose.h.

◆ updateCamera()

void QgsCameraPose::updateCamera ( Qt3DRender::QCamera *  camera)

Update Qt3D camera view matrix based on the pose.

Definition at line 46 of file qgscamerapose.cpp.

◆ writeXml()

QDomElement QgsCameraPose::writeXml ( QDomDocument &  doc) const

Writes configuration to a new DOM element and returns it.

Definition at line 22 of file qgscamerapose.cpp.


The documentation for this class was generated from the following files: