QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
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 22 of file qgsmaptoolshaperegistry.cpp.
QgsMapToolShapeRegistry::~QgsMapToolShapeRegistry | ( | ) |
Definition at line 26 of file qgsmaptoolshaperegistry.cpp.
void QgsMapToolShapeRegistry::addMapTool | ( | QgsMapToolShapeMetadata * | mapTool | ) |
Adds a new shape map tool.
Definition at line 32 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 71 of file qgsmaptoolshaperegistry.cpp.
QgsMapToolShapeMetadata * QgsMapToolShapeRegistry::mapToolMetadata | ( | const QString & | id | ) | const |
Returns the map tool metadata for the given id.
Definition at line 60 of file qgsmaptoolshaperegistry.cpp.
|
inline |
Returns the list of map tools.
Definition at line 58 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 43 of file qgsmaptoolshaperegistry.cpp.