QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
This class manages all known classification methods. More...
#include <qgsclassificationmethodregistry.h>
Public Member Functions | |
QgsClassificationMethodRegistry () | |
~QgsClassificationMethodRegistry () | |
bool | addMethod (QgsClassificationMethod *method) |
Adds a method to the registry Returns false if a method with same id already exists. More... | |
QIcon | icon (const QString &id) const |
Returns the icon for a given method id. More... | |
QgsClassificationMethod * | method (const QString &id) |
Returns a new instance of the method for the given id. More... | |
QMap< QString, QString > | methodNames () const |
Returns a map <name, id> of all registered methods. More... | |
This class manages all known classification methods.
QgsClassificationMethodRegistry is not usually directly created, but rather accessed through QgsApplication::classificationMethodRegistry().
Definition at line 38 of file qgsclassificationmethodregistry.h.
QgsClassificationMethodRegistry::QgsClassificationMethodRegistry | ( | ) |
Definition at line 29 of file qgsclassificationmethodregistry.cpp.
QgsClassificationMethodRegistry::~QgsClassificationMethodRegistry | ( | ) |
Definition at line 39 of file qgsclassificationmethodregistry.cpp.
bool QgsClassificationMethodRegistry::addMethod | ( | QgsClassificationMethod * | method | ) |
Adds a method to the registry Returns false
if a method with same id already exists.
Definition at line 44 of file qgsclassificationmethodregistry.cpp.
QIcon QgsClassificationMethodRegistry::icon | ( | const QString & | id | ) | const |
Returns the icon for a given method id.
Definition at line 67 of file qgsclassificationmethodregistry.cpp.
QgsClassificationMethod * QgsClassificationMethodRegistry::method | ( | const QString & | id | ) |
Returns a new instance of the method for the given id.
Definition at line 53 of file qgsclassificationmethodregistry.cpp.
QMap< QString, QString > QgsClassificationMethodRegistry::methodNames | ( | ) | const |
Returns a map <name, id> of all registered methods.
Definition at line 59 of file qgsclassificationmethodregistry.cpp.