QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
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 58 of file qgsadvanceddigitizingtools.h.
|
inlinevirtual |
Handles canvas press move.
false
. Reimplemented in QgsAdvancedDigitizingCirclesIntersectionTool.
Definition at line 84 of file qgsadvanceddigitizingtools.h.
|
inlinevirtual |
Handles canvas press event.
false
. Definition at line 75 of file qgsadvanceddigitizingtools.h.
|
inlinevirtual |
Handles canvas release event.
false
. Reimplemented in QgsAdvancedDigitizingCirclesIntersectionTool.
Definition at line 93 of file qgsadvanceddigitizingtools.h.
|
inlinevirtual |
Returns a widget to control the tool.
Reimplemented in QgsAdvancedDigitizingCirclesIntersectionTool.
Definition at line 64 of file qgsadvanceddigitizingtools.h.
|
inline |
Returns the map canvas associated with the tool.
Definition at line 53 of file qgsadvanceddigitizingtools.h.
|
inlinevirtual |
Paints tool content onto the advanced digitizing canvas item.
Reimplemented in QgsAdvancedDigitizingCirclesIntersectionTool.
Definition at line 69 of file qgsadvanceddigitizingtools.h.
|
signal |
Requests a new painting event to the advanced digitizing canvas item.
|
protected |
Definition at line 107 of file qgsadvanceddigitizingtools.h.
|
protected |
Definition at line 106 of file qgsadvanceddigitizingtools.h.