1
/***************************************************************************
3
An object that can be drawn on the acetate layer of a QgsMapCanvas
6
copyright : (C) 2004 by Gary E.Sherman
7
email : sherman at mrcc.com
8
***************************************************************************/
10
/***************************************************************************
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. *
17
***************************************************************************/
18
/* $Id: qgsacetateobject.cpp,v 1.3 2004/12/30 02:52:35 timlinux Exp $ */
21
#include <qgsmaptopixel.h>
22
#include "qgsacetateobject.h"
24
QgsAcetateObject::QgsAcetateObject(QgsPoint &origin) :
29
QgsAcetateObject::QgsAcetateObject()
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
35
mOrigin = QgsPoint(0,0);
38
QgsAcetateObject::~QgsAcetateObject()
41
/*void QgsAcetateObject::draw(QPainter * painter, QgsMapToPixel * cXf)
45
QgsPoint QgsAcetateObject::origin ( ) {
49
void QgsAcetateObject::setOrigin (QgsPoint value ) {