|
| 1 | +/************************************************************************ |
| 2 | + * This file has been generated automatically from * |
| 3 | + * * |
| 4 | + * src/core/processing/qgsprocessingoutputs.h * |
| 5 | + * * |
| 6 | + * Do not edit manually ! Edit header and run scripts/sipify.pl again * |
| 7 | + ************************************************************************/ |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | +class QgsProcessingOutputDefinition |
| 15 | +{ |
| 16 | +%Docstring |
| 17 | + |
| 18 | + Base class for the definition of processing outputs. |
| 19 | + |
| 20 | + Output definitions encapsulate the properties regarding the outputs from algorithms, such |
| 21 | + as generated layers or calculated values. |
| 22 | + |
| 23 | +.. versionadded:: 3.0 |
| 24 | +%End |
| 25 | + |
| 26 | +%TypeHeaderCode |
| 27 | +#include "qgsprocessingoutputs.h" |
| 28 | +%End |
| 29 | + public: |
| 30 | + |
| 31 | + QgsProcessingOutputDefinition( const QString &name, const QString &description = QString() ); |
| 32 | +%Docstring |
| 33 | + Constructor for QgsProcessingOutputDefinition. |
| 34 | +%End |
| 35 | + |
| 36 | + virtual ~QgsProcessingOutputDefinition(); |
| 37 | + |
| 38 | + virtual QString type() const = 0; |
| 39 | +%Docstring |
| 40 | + Unique output type name. |
| 41 | + :rtype: str |
| 42 | +%End |
| 43 | + |
| 44 | + QString name() const; |
| 45 | +%Docstring |
| 46 | + Returns the name of the output. This is the internal identifier by which |
| 47 | + algorithms access this output. |
| 48 | + @see setName() |
| 49 | + :rtype: str |
| 50 | +%End |
| 51 | + |
| 52 | + void setName( const QString &name ); |
| 53 | +%Docstring |
| 54 | + Sets the ``name`` of the output. This is the internal identifier by which |
| 55 | + algorithms access this output. |
| 56 | + @see name() |
| 57 | +%End |
| 58 | + |
| 59 | + QString description() const; |
| 60 | +%Docstring |
| 61 | + Returns the description for the output. This is the user-visible string |
| 62 | + used to identify this output. |
| 63 | + @see setDescription() |
| 64 | + :rtype: str |
| 65 | +%End |
| 66 | + |
| 67 | + void setDescription( const QString &description ); |
| 68 | +%Docstring |
| 69 | + Sets the ``description`` for the output. This is the user-visible string |
| 70 | + used to identify this output. |
| 71 | + @see description() |
| 72 | +%End |
| 73 | + |
| 74 | + protected: |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | +}; |
| 79 | + |
| 80 | +typedef QList< const QgsProcessingOutputDefinition * > QgsProcessingOutputDefinitions; |
| 81 | + |
| 82 | +class QgsProcessingOutputVectorLayer : QgsProcessingOutputDefinition |
| 83 | +{ |
| 84 | +%Docstring |
| 85 | + A vector layer output for processing algorithms. |
| 86 | +.. versionadded:: 3.0 |
| 87 | +%End |
| 88 | + |
| 89 | +%TypeHeaderCode |
| 90 | +#include "qgsprocessingoutputs.h" |
| 91 | +%End |
| 92 | + public: |
| 93 | + |
| 94 | + QgsProcessingOutputVectorLayer( const QString &name, const QString &description = QString(), QgsProcessingParameterDefinition::LayerType type = QgsProcessingParameterDefinition::TypeVectorAny ); |
| 95 | +%Docstring |
| 96 | + Constructor for QgsProcessingOutputVectorLayer. |
| 97 | +%End |
| 98 | + |
| 99 | + virtual QString type() const; |
| 100 | + |
| 101 | + QgsProcessingParameterDefinition::LayerType dataType() const; |
| 102 | +%Docstring |
| 103 | + Returns the layer type for the output layer. |
| 104 | +.. seealso:: setDataType() |
| 105 | + :rtype: QgsProcessingParameterDefinition.LayerType |
| 106 | +%End |
| 107 | + |
| 108 | + void setDataType( QgsProcessingParameterDefinition::LayerType type ); |
| 109 | +%Docstring |
| 110 | + Sets the layer ``type`` for the output layer. |
| 111 | +.. seealso:: dataType() |
| 112 | +%End |
| 113 | + |
| 114 | +}; |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | +/************************************************************************ |
| 120 | + * This file has been generated automatically from * |
| 121 | + * * |
| 122 | + * src/core/processing/qgsprocessingoutputs.h * |
| 123 | + * * |
| 124 | + * Do not edit manually ! Edit header and run scripts/sipify.pl again * |
| 125 | + ************************************************************************/ |
0 commit comments