~ubuntu-branches/ubuntu/quantal/qgis/quantal

« back to all changes in this revision

Viewing changes to src/qgsacetateobject.cpp

  • Committer: Bazaar Package Importer
  • Author(s): William Grant
  • Date: 2007-05-06 13:42:32 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20070506134232-pyli6t388w5asd8x
Tags: 0.8.0-3ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - debian/rules, debian/qgis.install, debian/qgis.dirs debian/qgis.desktop:
    Add and install .desktop.
* debian/qgis.desktop: Remove Applications category; it's not real.
* Modify Maintainer value to match Debian-Maintainer-Field Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/***************************************************************************
2
 
  qgsacetateobject.cpp    
3
 
  An object that can be drawn on the acetate layer of a QgsMapCanvas
4
 
            -------------------
5
 
  begin                : June 10, 2004
6
 
  copyright            : (C) 2004 by Gary E.Sherman
7
 
  email                : sherman at mrcc.com
8
 
 ***************************************************************************/
9
 
 
10
 
/***************************************************************************
11
 
 *                                                                         *
12
 
 *   This program is free software; you can redistribute it and/or modify  *
13
 
 *   it under the terms of the GNU General Public License as published by  *
14
 
 *   the Free Software Foundation; either version 2 of the License, or     *
15
 
 *   (at your option) any later version.                                   *
16
 
 *                                                                         *
17
 
 ***************************************************************************/
18
 
/* $Id: qgsacetateobject.cpp,v 1.3 2004/12/30 02:52:35 timlinux Exp $ */
19
 
#include <qgspoint.h>
20
 
#include <qpainter.h>
21
 
#include <qgsmaptopixel.h>
22
 
#include "qgsacetateobject.h"
23
 
 
24
 
QgsAcetateObject::QgsAcetateObject(QgsPoint &origin) :
25
 
        mOrigin(origin)
26
 
{
27
 
}
28
 
 
29
 
QgsAcetateObject::QgsAcetateObject()
30
 
{
31
 
  /* Create default origin at 0,0. The origin may
32
 
   * be used in the future to calculate the centroid of
33
 
   * an object or collection of objects
34
 
   */
35
 
  mOrigin = QgsPoint(0,0);
36
 
}
37
 
 
38
 
QgsAcetateObject::~QgsAcetateObject()
39
 
{
40
 
}
41
 
/*void QgsAcetateObject::draw(QPainter * painter, QgsMapToPixel * cXf)
42
 
{
43
 
}
44
 
*/
45
 
QgsPoint QgsAcetateObject::origin ( ) {
46
 
 return mOrigin;
47
 
}
48
 
 
49
 
void QgsAcetateObject::setOrigin (QgsPoint value ) {
50
 
                                mOrigin = value;
51
 
}
52