QGIS API Documentation 3.39.0-Master (8f4da32b6b8)
|
Keeps track of the registered shape map tools. More...
#include <qgsmaptoolshaperegistry.h>
Public Member Functions | |
QgsMapToolShapeRegistry () | |
Constructor. | |
~QgsMapToolShapeRegistry () | |
void | addMapTool (QgsMapToolShapeMetadata *mapTool) |
Adds a new shape map tool. | |
QgsMapToolShapeAbstract * | mapTool (const QString &id, QgsMapToolCapture *parentTool) const |
Constructs the map tool at the given id for the given parentTool Caller takes ownership of the returned tool. | |
QgsMapToolShapeMetadata * | mapToolMetadata (const QString &id) const |
Returns the map tool metadata for the given id. | |
QList< QgsMapToolShapeMetadata * > | mapToolMetadatas () const |
Returns the list of map tools. | |
void | removeMapTool (const QString &id) |
Removes a registered map tool at the given id The tool will be deleted. | |
Keeps track of the registered shape map tools.
Definition at line 35 of file qgsmaptoolshaperegistry.h.
QgsMapToolShapeRegistry::QgsMapToolShapeRegistry | ( | ) |
Constructor.
Definition at line 21 of file qgsmaptoolshaperegistry.cpp.
QgsMapToolShapeRegistry::~QgsMapToolShapeRegistry | ( | ) |
Definition at line 25 of file qgsmaptoolshaperegistry.cpp.
void QgsMapToolShapeRegistry::addMapTool | ( | QgsMapToolShapeMetadata * | mapTool | ) |
Adds a new shape map tool.
Definition at line 31 of file qgsmaptoolshaperegistry.cpp.
QgsMapToolShapeAbstract * QgsMapToolShapeRegistry::mapTool | ( | const QString & | id, |
QgsMapToolCapture * | parentTool | ||
) | const |
Constructs the map tool at the given id for the given parentTool Caller takes ownership of the returned tool.
Definition at line 70 of file qgsmaptoolshaperegistry.cpp.
QgsMapToolShapeMetadata * QgsMapToolShapeRegistry::mapToolMetadata | ( | const QString & | id | ) | const |
Returns the map tool metadata for the given id.
Definition at line 59 of file qgsmaptoolshaperegistry.cpp.
|
inline |
Returns the list of map tools.
Definition at line 59 of file qgsmaptoolshaperegistry.h.
void QgsMapToolShapeRegistry::removeMapTool | ( | const QString & | id | ) |
Removes a registered map tool at the given id The tool will be deleted.
Definition at line 42 of file qgsmaptoolshaperegistry.cpp.