QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsMapToolShapeMetadata Class Referenceabstract

QgsMapToolShapeMetadata is a base class for shape map tools metadata to be used in QgsMapToolShapeRegistry. More...

#include <qgsmaptoolshaperegistry.h>

Public Member Functions

 QgsMapToolShapeMetadata ()=default
 
virtual ~QgsMapToolShapeMetadata ()=default
 
virtual QgsMapToolShapeAbstract::ShapeCategory category () const =0
 Returns the shape category of the tool.
 
virtual QgsMapToolShapeAbstractfactory (QgsMapToolCapture *parentlTool) const =0
 Creates the shape map tool for the given parentTool Caller takes ownership of the returned object.
 
virtual QIcon icon () const =0
 Icon to be displayed in the toolbar.
 
virtual QString id () const =0
 Unique ID for the shape map tool.
 
virtual QString name () const =0
 Translated readable name.
 

Detailed Description

QgsMapToolShapeMetadata is a base class for shape map tools metadata to be used in QgsMapToolShapeRegistry.

Since
QGIS 3.26

Definition at line 81 of file qgsmaptoolshaperegistry.h.

Constructor & Destructor Documentation

◆ QgsMapToolShapeMetadata()

QgsMapToolShapeMetadata::QgsMapToolShapeMetadata ( )
default

◆ ~QgsMapToolShapeMetadata()

virtual QgsMapToolShapeMetadata::~QgsMapToolShapeMetadata ( )
virtualdefault

Member Function Documentation

◆ category()

virtual QgsMapToolShapeAbstract::ShapeCategory QgsMapToolShapeMetadata::category ( ) const
pure virtual

Returns the shape category of the tool.

◆ factory()

virtual QgsMapToolShapeAbstract * QgsMapToolShapeMetadata::factory ( QgsMapToolCapture parentlTool) const
pure virtual

Creates the shape map tool for the given parentTool Caller takes ownership of the returned object.

◆ icon()

virtual QIcon QgsMapToolShapeMetadata::icon ( ) const
pure virtual

Icon to be displayed in the toolbar.

◆ id()

virtual QString QgsMapToolShapeMetadata::id ( ) const
pure virtual

Unique ID for the shape map tool.

◆ name()

virtual QString QgsMapToolShapeMetadata::name ( ) const
pure virtual

Translated readable name.


The documentation for this class was generated from the following file: