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 )
override;
54 bool setRenderContextVariables( QPainter* p,
QgsRenderContext& context )
const;
59 virtual void updatePosition();
62 virtual QRectF boundingRect()
const override;
66 Q_DECL_DEPRECATED
void setPanningOffset(
const QPoint& point );
72 void setRect(
const QgsRectangle& r,
bool resetRotation =
true );
75 QgsPoint toMapCoordinates(
const QPoint& point )
const;
78 QPointF toCanvasCoordinates(
const QgsPoint& point )
const;