QGIS API Documentation  2.99.0-Master (ae4d26a)
Public Member Functions | Protected Attributes | 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

Public Member Functions

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

Protected Attributes

QPen mConstruction1Pen
QPen mConstruction2Pen
QPen mCursorPen
QPen mLockedPen
QPen mSnapLinePen
QPen mSnapPen
- Protected Attributes inherited from QgsMapCanvasItem
QSizeF mItemSize
 cached size of the item (to return in boundingRect()) More...
QgsMapCanvasmMapCanvas = nullptr
 pointer to map canvas More...
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. More...
double mRectRotation

Additional Inherited Members

- Protected Member Functions inherited from QgsMapCanvasItem
 QgsMapCanvasItem (QgsMapCanvas *mapCanvas)
 protected constructor: cannot be constructed directly More...
virtual ~QgsMapCanvasItem ()
virtual void paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=nullptr) override
bool setRenderContextVariables (QPainter *p, QgsRenderContext &context) const
 Sets render context parameters. More...
void updateCanvas ()
 schedules map canvas for repaint More...

Detailed Description

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

See also
QgsAdvancedDigitizingDockWidget) on the map canvas.

Definition at line 30 of file qgsadvanceddigitizingcanvasitem.h.

Constructor & Destructor Documentation

◆ QgsAdvancedDigitizingCanvasItem()

QgsAdvancedDigitizingCanvasItem::QgsAdvancedDigitizingCanvasItem ( QgsMapCanvas canvas,
QgsAdvancedDigitizingDockWidget cadDockWidget 

Definition at line 23 of file qgsadvanceddigitizingcanvasitem.cpp.

Member Function Documentation

◆ paint()

void QgsAdvancedDigitizingCanvasItem::paint ( QPainter *  painter)

function to be implemented by derived classes

Implements QgsMapCanvasItem.

Definition at line 35 of file qgsadvanceddigitizingcanvasitem.cpp.

Member Data Documentation

◆ mConstruction1Pen

QPen QgsAdvancedDigitizingCanvasItem::mConstruction1Pen

Definition at line 39 of file qgsadvanceddigitizingcanvasitem.h.

◆ mConstruction2Pen

QPen QgsAdvancedDigitizingCanvasItem::mConstruction2Pen

Definition at line 40 of file qgsadvanceddigitizingcanvasitem.h.

◆ mCursorPen

QPen QgsAdvancedDigitizingCanvasItem::mCursorPen

Definition at line 43 of file qgsadvanceddigitizingcanvasitem.h.

◆ mLockedPen

QPen QgsAdvancedDigitizingCanvasItem::mLockedPen

Definition at line 38 of file qgsadvanceddigitizingcanvasitem.h.

◆ mSnapLinePen

QPen QgsAdvancedDigitizingCanvasItem::mSnapLinePen

Definition at line 42 of file qgsadvanceddigitizingcanvasitem.h.

◆ mSnapPen

QPen QgsAdvancedDigitizingCanvasItem::mSnapPen

Definition at line 41 of file qgsadvanceddigitizingcanvasitem.h.

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