18#ifndef QGSPROCESSINGOUTPUTS_H
19#define QGSPROCESSINGOUTPUTS_H
47 sipType = sipType_QgsProcessingOutputVectorLayer;
49 sipType = sipType_QgsProcessingOutputRasterLayer;
51 sipType = sipType_QgsProcessingOutputPointCloudLayer;
53 sipType = sipType_QgsProcessingOutputVectorTileLayer;
55 sipType = sipType_QgsProcessingOutputMapLayer;
57 sipType = sipType_QgsProcessingOutputMultipleLayers;
59 sipType = sipType_QgsProcessingOutputHtml;
61 sipType = sipType_QgsProcessingOutputNumber;
63 sipType = sipType_QgsProcessingOutputString;
65 sipType = sipType_QgsProcessingOutputBoolean;
67 sipType = sipType_QgsProcessingOutputFolder;
69 sipType = sipType_QgsProcessingOutputFile;
71 sipType = sipType_QgsProcessingOutputConditionalBranch;
73 sipType = sipType_QgsProcessingOutputVariant;
91 virtual QString
type()
const = 0;
98 QString
name()
const {
return mName; }
105 void setName(
const QString &name ) { mName = name; }
119 void setDescription(
const QString &description ) { mDescription = description; }
174 bool mAutoCreated =
false;
201 static QString
typeName() {
return QStringLiteral(
"outputLayer" ); }
203 QString type()
const override;
224 static QString
typeName() {
return QStringLiteral(
"outputVector" ); }
261 static QString
typeName() {
return QStringLiteral(
"outputRaster" ); }
283 static QString
typeName() {
return QStringLiteral(
"outputPointCloud" ); }
311 static QString
typeName() {
return QStringLiteral(
"outputMultilayer" ); }
312 QString type()
const override;
334 static QString
typeName() {
return QStringLiteral(
"outputHtml" ); }
358 static QString
typeName() {
return QStringLiteral(
"outputVariant" ); }
359 QString type()
const override;
381 static QString
typeName() {
return QStringLiteral(
"outputNumber" ); }
404 static QString
typeName() {
return QStringLiteral(
"outputString" ); }
426 static QString
typeName() {
return QStringLiteral(
"outputBoolean" ); }
449 static QString
typeName() {
return QStringLiteral(
"outputFolder" ); }
472 static QString
typeName() {
return QStringLiteral(
"outputFile" ); }
497 static QString
typeName() {
return QStringLiteral(
"outputBranch" ); }
519 static QString
typeName() {
return QStringLiteral(
"outputVectorTile" ); }
ProcessingSourceType
Processing data source types.
@ VectorAnyGeometry
Any vector layer with geometry.
Contains information about the context in which a processing algorithm is executed.
A boolean output for processing algorithms.
QString type() const override
Unique output type name.
static QString typeName()
Returns the type name for the output class.
A conditional branch output for processing algorithms, which represents a possible model logic flow w...
static QString typeName()
Returns the type name for the output class.
QString type() const override
Unique output type name.
Base class for the definition of processing outputs.
void setDescription(const QString &description)
Sets the description for the output.
QString name() const
Returns the name of the output.
void setName(const QString &name)
Sets the name of the output.
void setAutoCreated(bool autoCreated)
Sets whether an output was automatically created when adding a parameter.
virtual ~QgsProcessingOutputDefinition()=default
virtual QString type() const =0
Unique output type name.
QString mName
Output name.
bool autoCreated() const
Returns true if the output was automatically created when adding a parameter.
QString mDescription
Output description.
QString description() const
Returns the description for the output.
A file output for processing algorithms.
QString type() const override
Unique output type name.
static QString typeName()
Returns the type name for the output class.
A folder output for processing algorithms.
QString type() const override
Unique output type name.
static QString typeName()
Returns the type name for the output class.
A HTML file output for processing algorithms.
QString type() const override
Unique output type name.
static QString typeName()
Returns the type name for the output class.
A map layer output for processing algorithms, where layers may be either vector or raster.
static QString typeName()
Returns the type name for the output class.
A multi-layer output for processing algorithms which create map layers, when the number and nature of...
static QString typeName()
Returns the type name for the output class.
A numeric output for processing algorithms.
QString type() const override
Unique output type name.
static QString typeName()
Returns the type name for the output class.
A pointcloud layer output for processing algorithms.
QString type() const override
Unique output type name.
static QString typeName()
Returns the type name for the output class.
A raster layer output for processing algorithms.
static QString typeName()
Returns the type name for the output class.
QString type() const override
Unique output type name.
A string output for processing algorithms.
QString type() const override
Unique output type name.
static QString typeName()
Returns the type name for the output class.
A variant output for processing algorithms, capable of storing any QVariant value.
static QString typeName()
Returns the type name for the output class.
A vector layer output for processing algorithms.
QString type() const override
Unique output type name.
static QString typeName()
Returns the type name for the output class.
A vector tile layer output for processing algorithms.
static QString typeName()
Returns the type name for the output class.
QString type() const override
Unique output type name.
#define SIP_CONVERT_TO_SUBCLASS_CODE(code)
QList< const QgsProcessingOutputDefinition * > QgsProcessingOutputDefinitions
List of processing parameters.