2017-04-03 13:53:47 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/processing/qgsprocessingalgorithm.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-04 09:46:46 +10:00
|
|
|
|
2017-04-20 13:48:50 +02:00
|
|
|
|
2017-03-29 09:20:12 +10:00
|
|
|
class QgsProcessingAlgorithm
|
|
|
|
{
|
2017-04-03 13:53:47 +10:00
|
|
|
%Docstring
|
|
|
|
Abstract base class for processing algorithms.
|
|
|
|
.. versionadded:: 3.0
|
2017-03-29 09:20:12 +10:00
|
|
|
%End
|
|
|
|
|
2017-04-03 13:53:47 +10:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsprocessingalgorithm.h"
|
|
|
|
%End
|
2017-03-29 09:20:12 +10:00
|
|
|
public:
|
|
|
|
|
2017-04-03 13:53:47 +10:00
|
|
|
enum Flag
|
2017-03-29 15:00:20 +10:00
|
|
|
{
|
|
|
|
FlagHideFromToolbox,
|
|
|
|
FlagHideFromModeler,
|
|
|
|
FlagSupportsBatch,
|
2017-04-19 15:03:31 +02:00
|
|
|
FlagDeprecated,
|
2017-03-29 15:00:20 +10:00
|
|
|
};
|
|
|
|
typedef QFlags<QgsProcessingAlgorithm::Flag> Flags;
|
|
|
|
|
2017-04-20 13:48:50 +02:00
|
|
|
|
2017-03-29 09:20:12 +10:00
|
|
|
QgsProcessingAlgorithm();
|
2017-04-03 13:53:47 +10:00
|
|
|
%Docstring
|
|
|
|
Constructor for QgsProcessingAlgorithm.
|
|
|
|
%End
|
|
|
|
|
2017-03-29 09:20:12 +10:00
|
|
|
virtual ~QgsProcessingAlgorithm();
|
2017-03-29 12:51:59 +10:00
|
|
|
|
2017-04-04 09:58:50 +10:00
|
|
|
// QgsProcessingAlgorithm &operator=( const QgsProcessingAlgorithm &other ) = delete;
|
2017-03-29 12:51:59 +10:00
|
|
|
virtual QString name() const = 0;
|
2017-04-03 13:53:47 +10:00
|
|
|
%Docstring
|
|
|
|
Returns the algorithm name, used for identifying the algorithm. This string
|
|
|
|
should be fixed for the algorithm, and must not be localised. The name should
|
|
|
|
be unique within each provider. Names should contain lowercase alphanumeric characters
|
|
|
|
only and no spaces or other formatting characters.
|
|
|
|
\see displayName()
|
|
|
|
\see group()
|
|
|
|
\see tags()
|
2017-04-07 11:23:53 +10:00
|
|
|
:rtype: str
|
2017-04-03 13:53:47 +10:00
|
|
|
%End
|
|
|
|
|
2017-04-03 20:35:03 +10:00
|
|
|
QString id() const;
|
|
|
|
%Docstring
|
|
|
|
Returns the unique ID for the algorithm, which is a combination of the algorithm
|
|
|
|
provider's ID and the algorithms unique name (e.g. "qgis:mergelayers" ).
|
|
|
|
\see name()
|
|
|
|
\see provider()
|
2017-04-07 11:23:53 +10:00
|
|
|
:rtype: str
|
2017-04-03 20:35:03 +10:00
|
|
|
%End
|
|
|
|
|
2017-03-29 12:51:59 +10:00
|
|
|
virtual QString displayName() const = 0;
|
2017-04-03 13:53:47 +10:00
|
|
|
%Docstring
|
|
|
|
Returns the translated algorithm name, which should be used for any user-visible display
|
|
|
|
of the algorithm name.
|
|
|
|
\see name()
|
2017-04-07 11:23:53 +10:00
|
|
|
:rtype: str
|
2017-04-03 13:53:47 +10:00
|
|
|
%End
|
|
|
|
|
2017-03-29 09:51:13 +10:00
|
|
|
virtual QStringList tags() const;
|
2017-04-03 13:53:47 +10:00
|
|
|
%Docstring
|
|
|
|
Returns a list of tags which relate to the algorithm, and are used to assist users in searching
|
|
|
|
for suitable algorithms. These tags should be localised.
|
2017-04-07 11:23:53 +10:00
|
|
|
:rtype: list of str
|
2017-04-03 13:53:47 +10:00
|
|
|
%End
|
|
|
|
|
2017-03-29 10:42:42 +10:00
|
|
|
virtual QIcon icon() const;
|
2017-04-03 13:53:47 +10:00
|
|
|
%Docstring
|
|
|
|
Returns an icon for the algorithm.
|
|
|
|
\see svgIconPath()
|
2017-04-07 11:23:53 +10:00
|
|
|
:rtype: QIcon
|
2017-04-03 13:53:47 +10:00
|
|
|
%End
|
|
|
|
|
2017-03-29 10:42:42 +10:00
|
|
|
virtual QString svgIconPath() const;
|
2017-04-03 13:53:47 +10:00
|
|
|
%Docstring
|
|
|
|
Returns a path to an SVG version of the algorithm's icon.
|
|
|
|
\see icon()
|
2017-04-07 11:23:53 +10:00
|
|
|
:rtype: str
|
2017-04-03 13:53:47 +10:00
|
|
|
%End
|
|
|
|
|
2017-03-29 12:04:09 +10:00
|
|
|
virtual QString group() const;
|
2017-04-03 13:53:47 +10:00
|
|
|
%Docstring
|
|
|
|
Returns the name of the group this algorithm belongs to. This string
|
|
|
|
should be localised.
|
|
|
|
\see tags()
|
2017-04-07 11:23:53 +10:00
|
|
|
:rtype: str
|
2017-04-03 13:53:47 +10:00
|
|
|
%End
|
|
|
|
|
2017-03-29 15:00:20 +10:00
|
|
|
virtual Flags flags() const;
|
2017-04-03 13:53:47 +10:00
|
|
|
%Docstring
|
|
|
|
Returns the flags indicating how and when the algorithm operates and should be exposed to users.
|
2017-04-07 11:23:53 +10:00
|
|
|
:rtype: Flags
|
2017-04-03 13:53:47 +10:00
|
|
|
%End
|
|
|
|
|
2017-04-04 09:46:46 +10:00
|
|
|
QgsProcessingProvider *provider() const;
|
|
|
|
%Docstring
|
|
|
|
Returns the provider to which this algorithm belongs.
|
2017-04-07 11:23:53 +10:00
|
|
|
:rtype: QgsProcessingProvider
|
2017-04-04 09:46:46 +10:00
|
|
|
%End
|
|
|
|
|
2017-04-04 09:58:50 +10:00
|
|
|
private:
|
|
|
|
QgsProcessingAlgorithm( const QgsProcessingAlgorithm &other );
|
2017-03-29 09:20:12 +10:00
|
|
|
};
|
2017-03-29 15:00:20 +10:00
|
|
|
QFlags<QgsProcessingAlgorithm::Flag> operator|(QgsProcessingAlgorithm::Flag f1, QFlags<QgsProcessingAlgorithm::Flag> f2);
|
2017-04-03 13:53:47 +10:00
|
|
|
|
|
|
|
|
|
|
|
|
2017-04-20 13:48:50 +02:00
|
|
|
|
2017-04-03 13:53:47 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/processing/qgsprocessingalgorithm.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
2017-04-20 13:48:50 +02:00
|
|
|
|