~ubuntu-branches/ubuntu/maverick/qgis/maverick

« back to all changes in this revision

Viewing changes to src/plugins/georeferencer/qgsgeorefdatapoint.h

  • Committer: Bazaar Package Importer
  • Author(s): Johan Van de Wauw
  • Date: 2010-07-11 20:23:24 UTC
  • mfrom: (3.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100711202324-5ktghxa7hracohmr
Tags: 1.4.0+12730-3ubuntu1
* Merge from Debian unstable (LP: #540941).
* Fix compilation issues with QT 4.7
* Add build-depends on libqt4-webkit-dev 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
 
 
1
/***************************************************************************
 
2
     qgsgeorefdatapoint.h
 
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
 ***************************************************************************
 
8
 *                                                                         *
 
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.                                   *
 
13
 *                                                                         *
 
14
 ***************************************************************************/
2
15
#include "qgsmapcanvasitem.h"
3
16
 
4
17
 
5
18
class QgsGeorefDataPoint : public QgsMapCanvasItem
6
19
{
7
20
  public:
8
 
  
 
21
 
9
22
    //! constructor
10
 
    QgsGeorefDataPoint(QgsMapCanvas* mapCanvas, int id,
11
 
                       const QgsPoint& pixelCoords,
12
 
                       const QgsPoint& mapCoords);
13
 
  
 
23
    QgsGeorefDataPoint( QgsMapCanvas* mapCanvas, int id,
 
24
                        const QgsPoint& pixelCoords,
 
25
                        const QgsPoint& mapCoords );
 
26
 
14
27
    //! draws point information
15
 
    virtual void drawShape(QPainter & p);
16
 
        
 
28
    virtual void paint( QPainter* p );
 
29
 
17
30
    //! handler for manual updating of position and size
 
31
    virtual QRectF boundingRect() const;
 
32
 
18
33
    virtual void updatePosition();
19
 
    
 
34
 
20
35
    //! returns coordinates of the point
21
36
    QgsPoint pixelCoords() { return mPixelCoords; }
22
37
    QgsPoint mapCoords() { return mMapCoords; }
23
 
    
 
38
 
24
39
  private:
25
40
    int mId;
26
41
    QgsPoint mPixelCoords;
27
42
    QgsPoint mMapCoords;
 
43
    QSizeF mTextBounds;
28
44
};
29
45