Class: QgsClassificationMethodRegistry

Manages all known classification methods.

QgsClassificationMethodRegistry is not usually directly created, but rather accessed through QgsApplication.classificationMethodRegistry().

Added in version 3.10.

List of all members, including inherited members

Methods

addMethod

Adds a method to the registry Returns False if a method with same id already exists.

icon

Returns the icon for a given method id

method

Returns a new instance of the method for the given id

methodNames

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]