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 through QgsApplication.classificationMethodRegistry()

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.

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

QgsClassificationMethod

methodNames(self) → Dict[str, str]

Returns a map <name, id> of all registered methods.

Return type

Dict[str, str]