42 virtual void paint( QPainter *painter ) = 0;
44 void paint( QPainter *painter,
const QStyleOptionGraphicsItem *option, QWidget *widget =
nullptr )
override;
55 bool setRenderContextVariables( QPainter *p,
QgsRenderContext &context )
const;
59 virtual void updatePosition();
61 QRectF boundingRect()
const override;
67 void setRect(
const QgsRectangle &r,
bool resetRotation =
true );
70 QgsPointXY toMapCoordinates( QPoint point )
const;
73 QPointF toCanvasCoordinates(
const QgsPointXY &point )
const;
Contains information about the context of a rendering operation.