QGIS API Documentation 3.41.0-Master (45a0abf3bec)
|
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 123 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 46 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 57 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 67 of file qgsadvanceddigitizingtoolsregistry.cpp.
const QStringList QgsAdvancedDigitizingToolsRegistry::toolMetadataNames | ( | ) | const |
Returns the list of registered tool names.
Definition at line 75 of file qgsadvanceddigitizingtoolsregistry.cpp.