QgsMapToolPan Class Reference
[Gui]

#include <qgsmaptoolpan.h>

Inheritance diagram for QgsMapToolPan:

Inheritance graph
[legend]
Collaboration diagram for QgsMapToolPan:

Collaboration graph
[legend]
List of all members.

Detailed Description

A map tool for panning the map.

See also:
QgsMapTool

Definition at line 28 of file qgsmaptoolpan.h.

Public Member Functions

 QgsMapToolPan (QgsMapCanvas *canvas)
 constructor
virtual void canvasMoveEvent (QMouseEvent *e)
 Overridden mouse move event.
virtual void canvasPressEvent (QMouseEvent *e)
 Overridden mouse press 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.


Constructor & Destructor Documentation

QgsMapToolPan::QgsMapToolPan ( QgsMapCanvas canvas  ) 

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().

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

Overridden mouse press event.

Reimplemented from QgsMapTool.

Definition at line 45 of file qgsmaptoolpan.cpp.

References mDragging.

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

Overridden mouse release event.

Reimplemented from QgsMapTool.

Definition at line 54 of file qgsmaptoolpan.cpp.

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

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 43 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 48 of file qgsmaptoolpan.h.

Referenced by canvasMoveEvent(), canvasPressEvent(), and canvasReleaseEvent().


The documentation for this class was generated from the following files:
Generated on Tue Jan 6 16:51:21 2009 for Quantum GIS API Documentation by  doxygen 1.5.1