17#ifndef QGSCLASSIFICATIONMETHODREGISTRY_H
18#define QGSCLASSIFICATIONMETHODREGISTRY_H
51 std::unique_ptr< QgsClassificationMethod >
method(
const QString &
id );
57 QIcon
icon(
const QString &
id )
const;
61 QMap<QString, QgsClassificationMethod *> mMethods;
QgsClassificationMethodRegistry()
std::unique_ptr< QgsClassificationMethod > method(const QString &id)
Returns a new instance of the method for the given id.
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.
QMap< QString, QString > methodNames() const
Returns a map <name, id> of all registered methods.
An abstract class for implementations of classification methods.