Skip to content

Commit

Permalink
qgscameracontroller: Add comments for MouseOperation enum
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitjano authored and nyalldawson committed Nov 24, 2023
1 parent 5b52301 commit 556d74a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/3d/qgscameracontroller.h
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,15 @@ class _3D_EXPORT QgsCameraController : public QObject
//! Returns a pointer to the scene's engine's window or nullptr if engine is QgsOffscreen3DEngine
QWindow *window() const;

//! List of possible operations with the mouse in TerrainBased navigation
enum class MouseOperation
{
None = 0,
Translation,
RotationCamera,
RotationCenter,
Zoom,
ZoomWheel
None = 0, // no operation
Translation, // left button pressed, no modifier
RotationCamera, // left button pressed + ctrl modifier
RotationCenter, // left button pressed + shift modifier
Zoom, // right button pressed
ZoomWheel // mouse wheel scroll
};

// This list gathers all the rotation and translation operations.
Expand Down

0 comments on commit 556d74a

Please sign in to comment.