QGIS API Documentation  3.24.2-Tisler (13c1a02865)
Public Member Functions | List of all members
QgsClassificationMethodRegistry Class Reference

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. More...
 
QIcon icon (const QString &id) const
 Returns the icon for a given method id. More...
 
QgsClassificationMethodmethod (const QString &id)
 Returns a new instance of the method for the given id. More...
 
QMap< QString, QString > methodNames () const
 Returns a map <name, id> of all registered methods. More...
 

Detailed Description

This class manages all known classification methods.

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

Since
QGIS 3.10

Definition at line 38 of file qgsclassificationmethodregistry.h.

Constructor & Destructor Documentation

◆ QgsClassificationMethodRegistry()

QgsClassificationMethodRegistry::QgsClassificationMethodRegistry ( )

Definition at line 29 of file qgsclassificationmethodregistry.cpp.

◆ ~QgsClassificationMethodRegistry()

QgsClassificationMethodRegistry::~QgsClassificationMethodRegistry ( )

Definition at line 39 of file qgsclassificationmethodregistry.cpp.

Member Function Documentation

◆ addMethod()

bool QgsClassificationMethodRegistry::addMethod ( QgsClassificationMethod method)

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

Definition at line 44 of file qgsclassificationmethodregistry.cpp.

◆ icon()

QIcon QgsClassificationMethodRegistry::icon ( const QString &  id) const

Returns the icon for a given method id.

Definition at line 67 of file qgsclassificationmethodregistry.cpp.

◆ method()

QgsClassificationMethod * QgsClassificationMethodRegistry::method ( const QString &  id)

Returns a new instance of the method for the given id.

Definition at line 53 of file qgsclassificationmethodregistry.cpp.

◆ methodNames()

QMap< QString, QString > QgsClassificationMethodRegistry::methodNames ( ) const

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

Definition at line 59 of file qgsclassificationmethodregistry.cpp.


The documentation for this class was generated from the following files: