QGIS/python/core/auto_generated/classification/qgsclassificationmethodregistry.sip.in

62 lines
1.9 KiB
Plaintext
Raw Normal View History

2019-08-30 12:14:59 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* 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 *
************************************************************************/
2019-08-30 12:14:59 +02:00
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();
bool addMethod( QgsClassificationMethod *method /Transfer/ );
2019-08-30 12:14:59 +02:00
%Docstring
Adds a method to the registry
Returns false if a method with same id already exists.
2019-08-30 12:14:59 +02:00
%End
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 <name, id> of all registered methods.
%End
QIcon icon( const QString &id ) const;
%Docstring
2019-09-03 10:59:37 +02:00
Returns the icon for a given method id
2019-08-30 12:14:59 +02:00
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* 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 *
************************************************************************/