QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
Loading...
Searching...
No Matches
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
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
25class 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
This class manages all known classification methods.
QgsClassificationMethod is an abstract class for implementations of classification methods.
#define SIP_TRANSFER
Definition qgis_sip.h:36
#define SIP_FACTORY
Definition qgis_sip.h:76