-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[advanced digitizing] Add circles intersection digitizing tool (#57648)
- Loading branch information
Showing
35 changed files
with
1,690 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
104 changes: 104 additions & 0 deletions
104
python/PyQt6/gui/auto_generated/qgsadvanceddigitizingtools.sip.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsadvanceddigitizingtools.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl 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.pl again * | ||
************************************************************************/ |
116 changes: 116 additions & 0 deletions
116
python/PyQt6/gui/auto_generated/qgsadvanceddigitizingtoolsregistry.sip.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsadvanceddigitizingtoolsregistry.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
class QgsAdvancedDigitizingToolAbstractMetadata | ||
{ | ||
%Docstring(signature="appended") | ||
Stores metadata about one advanced digitizing tool class. | ||
|
||
.. versionadded:: 3.40 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsadvanceddigitizingtoolsregistry.h" | ||
%End | ||
public: | ||
|
||
QgsAdvancedDigitizingToolAbstractMetadata( const QString &name, const QString &visibleName, const QIcon &icon = QIcon() ); | ||
%Docstring | ||
Constructor for QgsAdvancedDigitizingToolAbstractMetadata with the specified tool ``name``. | ||
|
||
``visibleName`` should be set to a translated, user visible name identifying the corresponding annotation item. | ||
|
||
An optional ``icon`` can be set, which will be used by the advanced digitizing dock widget. | ||
%End | ||
|
||
virtual ~QgsAdvancedDigitizingToolAbstractMetadata(); | ||
|
||
QString name() const; | ||
%Docstring | ||
Returns the tool's unique name | ||
%End | ||
|
||
QString visibleName() const; | ||
%Docstring | ||
Returns the tool's translatable user-friendly name | ||
%End | ||
|
||
QIcon icon() const; | ||
%Docstring | ||
Returns the tool's icon | ||
%End | ||
|
||
virtual QgsAdvancedDigitizingTool *createTool( QgsMapCanvas *canvas, QgsAdvancedDigitizingDockWidget *cadDockWidget ) /Factory/; | ||
%Docstring | ||
Returns new tool of this type. Return ``None`` on error | ||
%End | ||
|
||
protected: | ||
}; | ||
|
||
|
||
class QgsAdvancedDigitizingToolsRegistry | ||
{ | ||
%Docstring(signature="appended") | ||
Registry of available advanced digitizing tools. | ||
|
||
:py:class:`QgsAdvancedDigitizingToolsRegistry` is not usually directly created, but rather accessed through | ||
:py:func:`QgsGui.advancedDigitizingToolsRegistry()`. | ||
|
||
.. versionadded:: 3.40 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsadvanceddigitizingtoolsregistry.h" | ||
%End | ||
public: | ||
|
||
QgsAdvancedDigitizingToolsRegistry(); | ||
~QgsAdvancedDigitizingToolsRegistry(); | ||
|
||
|
||
void addDefaultTools(); | ||
%Docstring | ||
Adds the default tools shipped in QGIS | ||
%End | ||
|
||
bool addTool( QgsAdvancedDigitizingToolAbstractMetadata *toolMetaData /Transfer/ ); | ||
%Docstring | ||
Adds an advanced digitizing tool (take ownership) and return ``True`` on success | ||
%End | ||
|
||
bool removeTool( const QString &name ); | ||
%Docstring | ||
Removes the advanced digitizing tool matching the provided ``name`` and return ``True`` on success | ||
%End | ||
|
||
QgsAdvancedDigitizingToolAbstractMetadata *toolMetadata( const QString &name ); | ||
%Docstring | ||
Returns the advanced digitizing tool matching the provided ``name`` or ``None`` when no match available | ||
%End | ||
|
||
const QStringList toolMetadataNames() const; | ||
%Docstring | ||
Returns the list of registered tool names | ||
%End | ||
|
||
private: | ||
QgsAdvancedDigitizingToolsRegistry( const QgsAdvancedDigitizingToolsRegistry &rh ); | ||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/qgsadvanceddigitizingtoolsregistry.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.