Quantum GIS API Documentation  master-ce49b66
QgsMapToolPan Class Reference

A map tool for panning the map. More...

#include <qgsmaptoolpan.h>

+ Inheritance diagram for QgsMapToolPan:
+ Collaboration diagram for QgsMapToolPan:

List of all members.

Public Member Functions

 QgsMapToolPan (QgsMapCanvas *canvas)
 constructor
virtual void canvasMoveEvent (QMouseEvent *e)
 Overridden mouse move event.
virtual void canvasReleaseEvent (QMouseEvent *e)
 Overridden mouse release event.
virtual bool isTransient ()
 Check whether this MapTool performs a zoom or pan operation.

Private Attributes

bool mDragging
 Flag to indicate a map canvas drag operation is taking place.

Detailed Description

A map tool for panning the map.

See also:
QgsMapTool

Definition at line 27 of file qgsmaptoolpan.h.


Constructor & Destructor Documentation

constructor

Definition at line 25 of file qgsmaptoolpan.cpp.

References QgsMapTool::mCursor, pan_bits, and pan_mask_bits.


Member Function Documentation

void QgsMapToolPan::canvasMoveEvent ( QMouseEvent *  e) [virtual]

Overridden mouse move event.

Reimplemented from QgsMapTool.

Definition at line 35 of file qgsmaptoolpan.cpp.

References QgsMapTool::mCanvas, mDragging, and QgsMapCanvas::panAction().

virtual bool QgsMapToolPan::isTransient ( ) [inline, virtual]

Check whether this MapTool performs a zoom or pan operation.

If it does, we will be able to perform the zoom and then resume operations with the original / previously used tool.

Reimplemented from QgsMapTool.

Definition at line 39 of file qgsmaptoolpan.h.


Member Data Documentation

bool QgsMapToolPan::mDragging [private]

Flag to indicate a map canvas drag operation is taking place.

Definition at line 44 of file qgsmaptoolpan.h.

Referenced by canvasMoveEvent(), and canvasReleaseEvent().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines