Class: QgsClassificationMethodRegistry¶
Manages all known classification methods.
QgsClassificationMethodRegistry
is not usually directly
created, but rather accessed through
QgsApplication.classificationMethodRegistry()
.
Added in version 3.10.
Methods
Adds a method to the registry Returns |
|
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. |
- class qgis.core.QgsClassificationMethodRegistry[source]¶
Bases:
object
- addMethod(self, method: QgsClassificationMethod | None) bool [source]¶
Adds a method to the registry Returns
False
if a method with same id already exists.- Parameters:
method (Optional[QgsClassificationMethod])
- Return type:
bool
- icon(self, id: str | None) QIcon [source]¶
Returns the icon for a given method id
- Parameters:
id (Optional[str])
- Return type:
QIcon
- method(self, id: str | None) QgsClassificationMethod | None ¶
Returns a new instance of the method for the given id
- Parameters:
id (Optional[str])
- Return type:
Optional[QgsClassificationMethod]
- methodNames(self) Dict[str, str] ¶
Returns a map <name, id> of all registered methods.
- Return type:
Dict[str, str]