|
QGIS API Documentation 3.99.0-Master (f78f5286a64)
|
Registry of available advanced digitizing tools. More...
#include <qgsadvanceddigitizingtoolsregistry.h>
Public Member Functions | |
| QgsAdvancedDigitizingToolsRegistry ()=default | |
| QgsAdvancedDigitizingToolsRegistry (const QgsAdvancedDigitizingToolsRegistry &rh)=delete | |
| ~QgsAdvancedDigitizingToolsRegistry () | |
| void | addDefaultTools () |
| Adds the default tools shipped in QGIS. | |
| bool | addTool (QgsAdvancedDigitizingToolAbstractMetadata *toolMetaData) |
Adds an advanced digitizing tool (take ownership) and return true on success. | |
| QgsAdvancedDigitizingToolsRegistry & | operator= (const QgsAdvancedDigitizingToolsRegistry &rh)=delete |
| bool | removeTool (const QString &name) |
Removes the advanced digitizing tool matching the provided name and return true on success. | |
| QgsAdvancedDigitizingToolAbstractMetadata * | toolMetadata (const QString &name) |
Returns the advanced digitizing tool matching the provided name or nullptr when no match available. | |
| const QStringList | toolMetadataNames () const |
| Returns the list of registered tool names. | |
Registry of available advanced digitizing tools.
QgsAdvancedDigitizingToolsRegistry is not usually directly created, but rather accessed through QgsGui::advancedDigitizingToolsRegistry().
Definition at line 120 of file qgsadvanceddigitizingtoolsregistry.h.
|
default |
| QgsAdvancedDigitizingToolsRegistry::~QgsAdvancedDigitizingToolsRegistry | ( | ) |
Definition at line 30 of file qgsadvanceddigitizingtoolsregistry.cpp.
|
delete |
| void QgsAdvancedDigitizingToolsRegistry::addDefaultTools | ( | ) |
Adds the default tools shipped in QGIS.
Definition at line 35 of file qgsadvanceddigitizingtoolsregistry.cpp.
| bool QgsAdvancedDigitizingToolsRegistry::addTool | ( | QgsAdvancedDigitizingToolAbstractMetadata * | toolMetaData | ) |
Adds an advanced digitizing tool (take ownership) and return true on success.
Definition at line 42 of file qgsadvanceddigitizingtoolsregistry.cpp.
|
delete |
| bool QgsAdvancedDigitizingToolsRegistry::removeTool | ( | const QString & | name | ) |
Removes the advanced digitizing tool matching the provided name and return true on success.
Definition at line 53 of file qgsadvanceddigitizingtoolsregistry.cpp.
| QgsAdvancedDigitizingToolAbstractMetadata * QgsAdvancedDigitizingToolsRegistry::toolMetadata | ( | const QString & | name | ) |
Returns the advanced digitizing tool matching the provided name or nullptr when no match available.
Definition at line 63 of file qgsadvanceddigitizingtoolsregistry.cpp.
| const QStringList QgsAdvancedDigitizingToolsRegistry::toolMetadataNames | ( | ) | const |
Returns the list of registered tool names.
Definition at line 71 of file qgsadvanceddigitizingtoolsregistry.cpp.