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 );
55 bool setRenderContextVariables( QPainter* p,
QgsRenderContext& context )
const;
60 virtual void updatePosition();
63 virtual QRectF boundingRect()
const;
66 void setPanningOffset(
const QPoint& point );
75 QgsPoint toMapCoordinates(
const QPoint& point );
78 QPointF toCanvasCoordinates(
const QgsPoint& point );