1
/***************************************************************************
3
--------------------------------------
4
Date : Sun Sep 16 12:02:56 AKDT 2007
5
Copyright : (C) 2007 by Gary E. Sherman
6
Email : sherman at mrcc dot 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
***************************************************************************/
2
15
#include "qgsmapcanvasitem.h"
5
18
class QgsGeorefDataPoint : public QgsMapCanvasItem
10
QgsGeorefDataPoint(QgsMapCanvas* mapCanvas, int id,
11
const QgsPoint& pixelCoords,
12
const QgsPoint& mapCoords);
23
QgsGeorefDataPoint( QgsMapCanvas* mapCanvas, int id,
24
const QgsPoint& pixelCoords,
25
const QgsPoint& mapCoords );
14
27
//! draws point information
15
virtual void drawShape(QPainter & p);
28
virtual void paint( QPainter* p );
17
30
//! handler for manual updating of position and size
31
virtual QRectF boundingRect() const;
18
33
virtual void updatePosition();
20
35
//! returns coordinates of the point
21
36
QgsPoint pixelCoords() { return mPixelCoords; }
22
37
QgsPoint mapCoords() { return mMapCoords; }
26
41
QgsPoint mPixelCoords;
27
42
QgsPoint mMapCoords;