Class: QgsClassificationMethodRegistry¶
-
class
qgis.core.
QgsClassificationMethodRegistry
¶ Bases:
sip.wrapper
This class manages all known classification methods
QgsClassificationMethodRegistry
is not usually directly created, but rather accessed throughQgsApplication.classificationMethodRegistry()
Methods
Adds a method to the registry Returns false if a method with same id already exists.
Returns the icon for a given method id
Returns a new instance of the method for the given id
Returns a map <name, id> of all registered methods.
-
addMethod
(self, method: QgsClassificationMethod) → bool¶ Adds a method to the registry Returns false if a method with same id already exists.
- Parameters
method (QgsClassificationMethod) –
- Return type
bool
-
icon
(self, id: str) → QIcon¶ Returns the icon for a given method id
- Parameters
id (str) –
- Return type
QIcon
-
method
(self, id: str) → QgsClassificationMethod¶ Returns a new instance of the method for the given id
- Parameters
id (str) –
- Return type
-
methodNames
(self) → Dict[str, str]¶ Returns a map <name, id> of all registered methods.
- Return type
Dict[str, str]
-