2019-08-30 12:14:59 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2019-09-02 09:46:40 +02:00
|
|
|
* src/core/classification/qgsclassificationmethodregistry.h *
|
2019-08-30 12:14:59 +02:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsClassificationMethodRegistry
|
|
|
|
{
|
|
|
|
%Docstring
|
|
|
|
This class manages all known classification methods
|
|
|
|
|
|
|
|
QgsClassificationMethodRegistry is not usually directly created, but rather accessed through
|
|
|
|
:py:func:`QgsApplication.classificationMethodRegistry()`
|
|
|
|
|
|
|
|
.. versionadded:: 3.10
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsclassificationmethodregistry.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
QgsClassificationMethodRegistry();
|
|
|
|
|
2019-09-02 09:39:45 +02:00
|
|
|
bool addMethod( QgsClassificationMethod *method /Transfer/ );
|
2019-08-30 12:14:59 +02:00
|
|
|
%Docstring
|
|
|
|
Adds a method to the registry
|
2019-09-02 09:39:45 +02:00
|
|
|
Returns false if a method with same id already exists.
|
2019-08-30 12:14:59 +02:00
|
|
|
%End
|
|
|
|
|
2019-09-02 09:39:45 +02:00
|
|
|
QgsClassificationMethod *method( const QString &id ) /Factory/;
|
2019-08-30 12:14:59 +02:00
|
|
|
%Docstring
|
2019-09-02 09:48:46 +02:00
|
|
|
Returns a new instance of the method for the given id
|
2019-08-30 12:14:59 +02:00
|
|
|
%End
|
|
|
|
|
|
|
|
QMap<QString, QString> methodNames() const;
|
|
|
|
%Docstring
|
|
|
|
Returns a map <id, name> of all registered methods
|
|
|
|
%End
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2019-09-02 09:46:40 +02:00
|
|
|
* src/core/classification/qgsclassificationmethodregistry.h *
|
2019-08-30 12:14:59 +02:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|