QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
An abstract class for advanced digitizing tools. More...
#include <qgsadvanceddigitizingtools.h>
Signals | |
void | paintRequested () |
Requests a new painting event to the advanced digitizing canvas item. | |
Public Member Functions | |
QgsAdvancedDigitizingTool (QgsMapCanvas *canvas, QgsAdvancedDigitizingDockWidget *cadDockWidget) | |
The advanced digitizing tool constructor. | |
QgsAdvancedDigitizingDockWidget * | cadDockWidget () const |
Returns the advanced digitizing widget associated with the tool. | |
virtual void | canvasMoveEvent (QgsMapMouseEvent *event) |
Handles canvas press move. | |
virtual void | canvasPressEvent (QgsMapMouseEvent *event) |
Handles canvas press event. | |
virtual void | canvasReleaseEvent (QgsMapMouseEvent *event) |
Handles canvas release event. | |
virtual QWidget * | createWidget () |
Returns a widget to control the tool. | |
QgsMapCanvas * | mapCanvas () const |
Returns the map canvas associated with the tool. | |
virtual void | paint (QPainter *painter) |
Paints tool content onto the advanced digitizing canvas item. | |
Protected Attributes | |
QPointer< QgsAdvancedDigitizingDockWidget > | mCadDockWidget |
QgsMapCanvas * | mMapCanvas = nullptr |
An abstract class for advanced digitizing tools.
Definition at line 38 of file qgsadvanceddigitizingtools.h.
|
explicit |
The advanced digitizing tool constructor.
canvas | The map canvas on which the widget operates |
cadDockWidget | The cadDockWidget to which the floater belongs |
Definition at line 26 of file qgsadvanceddigitizingtools.cpp.
|
inline |
Returns the advanced digitizing widget associated with the tool.
Definition at line 59 of file qgsadvanceddigitizingtools.h.
|
inlinevirtual |
Handles canvas press move.
false
. Reimplemented in QgsAdvancedDigitizingCirclesIntersectionTool.
Definition at line 85 of file qgsadvanceddigitizingtools.h.
|
inlinevirtual |
Handles canvas press event.
false
. Definition at line 76 of file qgsadvanceddigitizingtools.h.
|
inlinevirtual |
Handles canvas release event.
false
. Reimplemented in QgsAdvancedDigitizingCirclesIntersectionTool.
Definition at line 94 of file qgsadvanceddigitizingtools.h.
|
inlinevirtual |
Returns a widget to control the tool.
Reimplemented in QgsAdvancedDigitizingCirclesIntersectionTool.
Definition at line 65 of file qgsadvanceddigitizingtools.h.
|
inline |
Returns the map canvas associated with the tool.
Definition at line 54 of file qgsadvanceddigitizingtools.h.
|
inlinevirtual |
Paints tool content onto the advanced digitizing canvas item.
Reimplemented in QgsAdvancedDigitizingCirclesIntersectionTool.
Definition at line 70 of file qgsadvanceddigitizingtools.h.
|
signal |
Requests a new painting event to the advanced digitizing canvas item.
|
protected |
Definition at line 109 of file qgsadvanceddigitizingtools.h.
|
protected |
Definition at line 108 of file qgsadvanceddigitizingtools.h.