QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
Loading...
Searching...
No Matches
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.
 
QIcon icon (const QString &id) const
 Returns the icon for a given method id.
 
QgsClassificationMethodmethod (const QString &id)
 Returns a new instance of the method for the given id.
 
QMap< QString, QString > methodNames () const
 Returns a map <name, id> of all registered methods.
 

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 30 of file qgsclassificationmethodregistry.cpp.

◆ ~QgsClassificationMethodRegistry()

QgsClassificationMethodRegistry::~QgsClassificationMethodRegistry ( )

Definition at line 41 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 46 of file qgsclassificationmethodregistry.cpp.

◆ icon()

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

Returns the icon for a given method id.

Definition at line 69 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 55 of file qgsclassificationmethodregistry.cpp.

◆ methodNames()

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

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

Definition at line 61 of file qgsclassificationmethodregistry.cpp.


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