QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
Keeps track of the registered shape map tools. More...
#include <qgsmaptoolshaperegistry.h>
Public Member Functions | |
QgsMapToolShapeRegistry () | |
Constructor. More... | |
~QgsMapToolShapeRegistry () | |
void | addMapTool (QgsMapToolShapeMetadata *mapTool SIP_TRANSFER) |
Adds a new shape map tool. More... | |
QgsMapToolShapeAbstract * | mapTool (const QString &id, QgsMapToolCapture *parentTool) const SIP_FACTORY |
Constructs the map tool at the given id for the given parentTool Caller takes ownership of the returned tool. More... | |
QgsMapToolShapeMetadata * | mapToolMetadata (const QString &id) const |
Returns the map tool metadata for the given id. More... | |
QList< QgsMapToolShapeMetadata * > | mapToolMetadatas () const |
Returns the list of map tools. More... | |
void | removeMapTool (const QString &id) |
Removes a registered map tool at the given id The tool will be deleted. More... | |
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 | SIP_TRANSFER | ) |
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.