Quantum GIS API Documentation
1.8
|
A map tool for panning the map. More...
#include <qgsmaptoolpan.h>
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. |
QgsMapToolPan::QgsMapToolPan | ( | QgsMapCanvas * | canvas | ) |
constructor
Definition at line 25 of file qgsmaptoolpan.cpp.
References QgsMapTool::mCursor, pan_bits, and pan_mask_bits.
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::canvasReleaseEvent | ( | QMouseEvent * | e | ) | [virtual] |
Overridden mouse release event.
Reimplemented from QgsMapTool.
Definition at line 45 of file qgsmaptoolpan.cpp.
References QgsMapCanvas::getCoordinateTransform(), QgsMapTool::mCanvas, mDragging, QgsMapCanvas::panActionEnd(), QgsMapCanvas::refresh(), QgsMapCanvas::setExtent(), and QgsMapToPixel::toMapPoint().
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.
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().