QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
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. | |
QIcon | icon (const QString &id) const |
Returns the icon for a given method id. | |
QgsClassificationMethod * | method (const QString &id) |
Returns a new instance of the method for the given id. | |
QMap< QString, QString > | methodNames () const |
Returns a map <name, id> of all registered methods. | |
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 30 of file qgsclassificationmethodregistry.cpp.
QgsClassificationMethodRegistry::~QgsClassificationMethodRegistry | ( | ) |
Definition at line 41 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 46 of file qgsclassificationmethodregistry.cpp.
QIcon QgsClassificationMethodRegistry::icon | ( | const QString & | id | ) | const |
Returns the icon for a given method id.
Definition at line 69 of file qgsclassificationmethodregistry.cpp.
QgsClassificationMethod * QgsClassificationMethodRegistry::method | ( | const QString & | id | ) |
Returns a new instance of the method for the given id.
Definition at line 55 of file qgsclassificationmethodregistry.cpp.
QMap< QString, QString > QgsClassificationMethodRegistry::methodNames | ( | ) | const |
Returns a map <name, id> of all registered methods.
Definition at line 61 of file qgsclassificationmethodregistry.cpp.