QGIS API Documentation 3.41.0-Master (45a0abf3bec)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsAdvancedDigitizingCanvasItem Class Reference

The QgsAdvancedDigitizingCanvasItem class draws the graphical elements of the CAD tools (. More...

#include <qgsadvanceddigitizingcanvasitem.h>

Inheritance diagram for QgsAdvancedDigitizingCanvasItem:
Inheritance graph
[legend]

Public Member Functions

 QgsAdvancedDigitizingCanvasItem (QgsMapCanvas *canvas, QgsAdvancedDigitizingDockWidget *cadDockWidget)
 
void paint (QPainter *painter) override
 function to be implemented by derived classes
 
void updatePosition () override
 called on changed extent or resize event to update position of the item
 
- Public Member Functions inherited from QgsMapCanvasItem
QRectF boundingRect () const override
 
QgsRectangle rect () const
 returns canvas item rectangle in map units
 
void setRect (const QgsRectangle &r, bool resetRotation=true)
 sets canvas item rectangle in map units
 
QPointF toCanvasCoordinates (const QgsPointXY &point) const
 transformation from map coordinates to screen coordinates
 
QgsPointXY toMapCoordinates (QPoint point) const
 transformation from screen coordinates to map coordinates
 

Additional Inherited Members

- Protected Member Functions inherited from QgsMapCanvasItem
 QgsMapCanvasItem (QgsMapCanvas *mapCanvas)
 protected constructor: cannot be constructed directly
 
 ~QgsMapCanvasItem () override
 
void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override
 
bool setRenderContextVariables (QPainter *p, QgsRenderContext &context) const
 Sets render context parameters.
 
void updateCanvas ()
 schedules map canvas for repaint
 
- Protected Attributes inherited from QgsMapCanvasItem
QSizeF mItemSize
 cached size of the item (to return in boundingRect())
 
QgsMapCanvasmMapCanvas = nullptr
 pointer to map canvas
 
QgsRectangle mRect
 cached canvas item rectangle in map coordinates encodes position (xmin,ymax) and size (width/height) used to re-position and re-size the item on zoom/pan while waiting for the renderer to complete.
 
double mRectRotation
 

Detailed Description

The QgsAdvancedDigitizingCanvasItem class draws the graphical elements of the CAD tools (.

See also
QgsAdvancedDigitizingDockWidget) on the map canvas.

Definition at line 38 of file qgsadvanceddigitizingcanvasitem.h.

Constructor & Destructor Documentation

◆ QgsAdvancedDigitizingCanvasItem()

QgsAdvancedDigitizingCanvasItem::QgsAdvancedDigitizingCanvasItem ( QgsMapCanvas canvas,
QgsAdvancedDigitizingDockWidget cadDockWidget 
)
explicit

Definition at line 23 of file qgsadvanceddigitizingcanvasitem.cpp.

Member Function Documentation

◆ paint()

void QgsAdvancedDigitizingCanvasItem::paint ( QPainter *  painter)
overridevirtual

function to be implemented by derived classes

Implements QgsMapCanvasItem.

Definition at line 36 of file qgsadvanceddigitizingcanvasitem.cpp.

◆ updatePosition()

void QgsAdvancedDigitizingCanvasItem::updatePosition ( )
overridevirtual

called on changed extent or resize event to update position of the item

Reimplemented from QgsMapCanvasItem.

Definition at line 383 of file qgsadvanceddigitizingcanvasitem.cpp.


The documentation for this class was generated from the following files: