QgsMapToolEmitPoint Class Reference
[QGIS gui library.]

A map tool that simply emits a point when clicking on the map. More...

#include <qgsmaptoolemitpoint.h>

Inheritance diagram for QgsMapToolEmitPoint:

Inheritance graph
[legend]
Collaboration diagram for QgsMapToolEmitPoint:

Collaboration graph
[legend]

List of all members.

Signals

void canvasClicked (const QgsPoint &point, Qt::MouseButton button)
 signal emitted on canvas click

Public Member Functions

 QgsMapToolEmitPoint (QgsMapCanvas *canvas)
 constructor
virtual void canvasMoveEvent (QMouseEvent *e)
 Overridden mouse move event.
virtual void canvasPressEvent (QMouseEvent *e)
 Overridden mouse press event - emits the signal.
virtual void canvasReleaseEvent (QMouseEvent *e)
 Overridden mouse release event.


Detailed Description

A map tool that simply emits a point when clicking on the map.

Connecting a slot to its canvasClicked() signal will let you implement custom behaviour for the passed in point.

Definition at line 30 of file qgsmaptoolemitpoint.h.


Constructor & Destructor Documentation

QgsMapToolEmitPoint::QgsMapToolEmitPoint ( QgsMapCanvas canvas  ) 

constructor

Definition at line 23 of file qgsmaptoolemitpoint.cpp.


Member Function Documentation

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

Overridden mouse move event.

Reimplemented from QgsMapTool.

Definition at line 28 of file qgsmaptoolemitpoint.cpp.

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

Overridden mouse press event - emits the signal.

Reimplemented from QgsMapTool.

Definition at line 32 of file qgsmaptoolemitpoint.cpp.

References canvasClicked(), and QgsMapTool::toMapCoordinates().

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

Overridden mouse release event.

Reimplemented from QgsMapTool.

Definition at line 38 of file qgsmaptoolemitpoint.cpp.

void QgsMapToolEmitPoint::canvasClicked ( const QgsPoint point,
Qt::MouseButton  button 
) [signal]

signal emitted on canvas click

Referenced by canvasPressEvent().


The documentation for this class was generated from the following files:

Generated on Sat Feb 4 19:17:39 2012 for Quantum GIS API Documentation by  doxygen 1.5.6