2009-05-14 15:58:24 +00:00
|
|
|
class QgsOverlayObject
|
2009-04-08 10:15:22 +00:00
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsoverlayobject.h"
|
|
|
|
%End
|
2012-09-24 02:28:15 +02:00
|
|
|
public:
|
2009-04-08 10:15:22 +00:00
|
|
|
QgsOverlayObject( int width = 0, int height = 0, double rotation = 0, QgsGeometry* geometry = 0 );
|
|
|
|
virtual ~QgsOverlayObject();
|
|
|
|
|
|
|
|
//copy constructor and assignment operator necessary because of mGeometry
|
|
|
|
QgsOverlayObject( const QgsOverlayObject& other );
|
|
|
|
|
|
|
|
//getters
|
2009-05-14 15:58:24 +00:00
|
|
|
int width() const;
|
|
|
|
int height() const;
|
|
|
|
double rotation() const;
|
|
|
|
QgsGeometry* geometry();
|
|
|
|
//const QgsGeometry* geometry() const;
|
2009-04-08 10:15:22 +00:00
|
|
|
QgsPoint position() const;
|
2009-05-14 15:58:24 +00:00
|
|
|
QList<QgsPoint> positions() const;
|
2009-04-08 10:15:22 +00:00
|
|
|
|
|
|
|
//setters
|
2009-05-14 15:58:24 +00:00
|
|
|
void setHeight( int height );
|
|
|
|
void setWidth( int width );
|
|
|
|
void setRotation( double rotation );
|
2009-04-08 10:15:22 +00:00
|
|
|
/**Set geometry. This class takes ownership of the object*/
|
2012-09-26 18:46:52 +02:00
|
|
|
void setGeometry( QgsGeometry* g /Transfer/ );
|
2009-04-08 10:15:22 +00:00
|
|
|
/**Adds a position in map coordinates*/
|
|
|
|
void addPosition( const QgsPoint& position );
|
|
|
|
};
|