16 #ifndef QGSMAPCANVASITEM_H
17 #define QGSMAPCANVASITEM_H
19 #include <QGraphicsItem>
40 virtual void paint( QPainter * painter ) = 0;
43 virtual void paint( QPainter * painter,
44 const QStyleOptionGraphicsItem * option,
45 QWidget * widget = 0 );
54 bool setRenderContextVariables( QPainter* p,
QgsRenderContext& context )
const;
59 virtual void updatePosition();
62 virtual QRectF boundingRect()
const;
66 Q_DECL_DEPRECATED
void setPanningOffset(
const QPoint& point );
75 QgsPoint toMapCoordinates(
const QPoint& point );
78 QPointF toCanvasCoordinates(
const QgsPoint& point );