|
| QgsCameraController (Qgs3DMapScene *scene) |
| Constructs the camera controller with optional parent node that will take ownership. More...
|
|
| ~QgsCameraController () override |
|
Qt3DRender::QCamera * | camera () const |
| Returns camera that is being controlled. More...
|
|
double | cameraMovementSpeed () const |
| Returns the camera movement speed. More...
|
|
Qgis::NavigationMode | cameraNavigationMode () const |
| Returns the navigation mode used by the camera controller. More...
|
|
QgsCameraPose | cameraPose () const |
| Returns camera pose. More...
|
|
float | distance () const |
| Returns distance of the camera from the point it is looking at. More...
|
|
void | frameTriggered (float dt) |
| Called internally from 3D scene when a new frame is generated. Updates camera according to keyboard/mouse input. More...
|
|
QgsVector3D | lookingAtPoint () const |
| Returns the point in the world coordinates towards which the camera is looking. More...
|
|
void | moveView (float tx, float ty) |
| Move the map by tx and ty. More...
|
|
float | pitch () const |
| Returns pitch angle in degrees (0 = looking from the top, 90 = looking from the side). More...
|
|
void | readXml (const QDomElement &elem) |
| Reads camera configuration from the given DOM element. More...
|
|
void | resetView (float distance) |
| Move camera back to the initial position (looking down towards origin of world's coordinates) More...
|
|
void | rotateAroundViewCenter (float deltaYaw) |
| Rotate clockwise the view by deltaYaw around the view center (camera moves) More...
|
|
void | rotateCamera (float diffPitch, float diffYaw) |
| Rotates the camera on itself. More...
|
|
void | setCameraHeadingAngle (float angle) |
| Set camera heading to angle (used for rotating the view) More...
|
|
void | setCameraMovementSpeed (double movementSpeed) |
| Sets the camera movement speed. More...
|
|
void | setCameraPose (const QgsCameraPose &camPose) |
| Sets camera pose. More...
|
|
void | setLookingAtPoint (const QgsVector3D &point, float distance, float pitch, float yaw) |
| Sets the complete camera configuration: the point towards it is looking (in 3D world coordinates), the distance of the camera from the point, pitch angle in degrees (0 = looking from the top, 90 = looking from the side) and yaw angle in degrees. More...
|
|
void | setVerticalAxisInversion (Qgis::VerticalAxisInversion inversion) |
| Sets the vertical axis inversion behavior. More...
|
|
void | setViewFromTop (float worldX, float worldY, float distance, float yaw=0) |
| Sets camera to look down towards given point in world coordinate, in given distance from plane with zero elevation. More...
|
|
void | tiltUpAroundViewCenter (float deltaPitch) |
| Tilt up the view by deltaPitch around the view center (camera moves) More...
|
|
Qgis::VerticalAxisInversion | verticalAxisInversion () const |
| Returns the vertical axis inversion behavior. More...
|
|
void | walkView (double tx, double ty, double tz) |
| Walks into the map by tx, ty, and tz. More...
|
|
bool | willHandleKeyEvent (QKeyEvent *event) |
| Returns true if the camera controller will handle the specified key event, preventing it from being instead handled by parents of the 3D window before the controller ever receives it. More...
|
|
QDomElement | writeXml (QDomDocument &doc) const |
| Writes camera configuration to the given DOM element. More...
|
|
float | yaw () const |
| Returns yaw angle in degrees. More...
|
|
void | zoom (float factor) |
| Zoom the map by factor. More...
|
|