QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
qgsclassificationmethodregistry.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsclassificationmethodregistry.h
3  ---------------------
4  begin : September 2019
5  copyright : (C) 2019 by Denis Rouzaud
6  email : [email protected]
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 
17 #ifndef QGSCLASSIFICATIONMETHODREGISTRY_H
18 #define QGSCLASSIFICATIONMETHODREGISTRY_H
19 
20 #include <QMap>
21 
22 #include "qgis_core.h"
23 #include "qgis_sip.h"
24 
25 class QIcon;
26 
28 
39 {
40  public:
43 
48  bool addMethod( QgsClassificationMethod *method SIP_TRANSFER );
49 
51  QgsClassificationMethod *method( const QString &id ) SIP_FACTORY;
52 
54  QMap<QString, QString> methodNames() const;
55 
57  QIcon icon( const QString &id ) const;
58 
59  private:
60 
61  QMap<QString, QgsClassificationMethod *> mMethods;
62 };
63 
64 #endif // QGSCLASSIFICATIONMETHODREGISTRY_H
QgsClassificationMethod
QgsClassificationMethod is an abstract class for implementations of classification methods.
Definition: qgsclassificationmethod.h:88
SIP_FACTORY
#define SIP_FACTORY
Definition: qgis_sip.h:76
QgsClassificationMethodRegistry
This class manages all known classification methods.
Definition: qgsclassificationmethodregistry.h:39
qgis_sip.h
SIP_TRANSFER
#define SIP_TRANSFER
Definition: qgis_sip.h:36