1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
|
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsadvanceddigitizingtools.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
class QgsAdvancedDigitizingTool : QObject
{
%Docstring(signature="appended")
An abstract class for advanced digitizing tools.
.. versionadded:: 3.40
%End
%TypeHeaderCode
#include "qgsadvanceddigitizingtools.h"
%End
public:
explicit QgsAdvancedDigitizingTool( QgsMapCanvas *canvas, QgsAdvancedDigitizingDockWidget *cadDockWidget );
%Docstring
The advanced digitizing tool constructor.
:param canvas: The map canvas on which the widget operates
:param cadDockWidget: The cadDockWidget to which the floater belongs
%End
QgsMapCanvas *mapCanvas() const;
%Docstring
Returns the map canvas associated with the tool.
%End
QgsAdvancedDigitizingDockWidget *cadDockWidget() const;
%Docstring
Returns the advanced digitizing widget associated with the tool.
%End
virtual QWidget *createWidget();
%Docstring
Returns a widget to control the tool.
.. note::
The caller gets the ownership.
%End
virtual void paint( QPainter *painter );
%Docstring
Paints tool content onto the advanced digitizing canvas item.
%End
virtual void canvasPressEvent( QgsMapMouseEvent *event );
%Docstring
Handles canvas press event.
.. note::
To stop propagation, set the event's accepted property to ``False``.
%End
virtual void canvasMoveEvent( QgsMapMouseEvent *event );
%Docstring
Handles canvas press move.
.. note::
To stop propagation, set the event's accepted property to ``False``.
%End
virtual void canvasReleaseEvent( QgsMapMouseEvent *event );
%Docstring
Handles canvas release event.
.. note::
To stop propagation, set the event's accepted property to ``False``.
%End
signals:
void paintRequested();
%Docstring
Requests a new painting event to the advanced digitizing canvas item.
%End
protected:
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsadvanceddigitizingtools.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.py again *
************************************************************************/
|