1
/***************************************************************************
2
coordinatecapturemaptool.h - map tool for getting map coordinates
5
copyright : (C) 2008 by Tim Sutton
6
email : tim at linfiniti.com
7
***************************************************************************
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
14
***************************************************************************/
17
#ifndef COORDINATECAPTUREMAPTOOL_H
18
#define COORDINATECAPTUREMAPTOOL_H
20
#include "qgsmaptool.h"
29
\brief Map tool for capturing mouse clicks to clipboard
31
class CoordinateCaptureMapTool : public QgsMapTool
36
CoordinateCaptureMapTool( QgsMapCanvas* thepCanvas );
38
~CoordinateCaptureMapTool();
40
//! Overridden mouse move event
41
virtual void canvasMoveEvent( QMouseEvent * e );
43
//! Overridden mouse press event
44
virtual void canvasPressEvent( QMouseEvent * e );
46
//! Overridden mouse release event
47
virtual void canvasReleaseEvent( QMouseEvent * e );
49
//! called when map tool is being deactivated
50
virtual void deactivate();
55
void mouseMoved( QgsPoint );
56
void mouseClicked( QgsPoint );
59
//! Rubber band for highlighting identified feature
60
QgsRubberBand * mpRubberBand;
61
QPointer<QgsMapCanvas> mpMapCanvas;