18 #ifndef QGSPROCESSINGPARAMETERTYPEIMPL_H 19 #define QGSPROCESSINGPARAMETERTYPEIMPL_H 24 #include <QCoreApplication> 44 return QCoreApplication::translate(
"Processing",
"A raster layer parameter." );
47 QString
name()
const override 49 return QCoreApplication::translate(
"Processing",
"Raster Layer" );
52 QString
id()
const override 54 return QStringLiteral(
"raster" );
59 return QStringList() << QObject::tr(
"str: layer ID" )
60 << QObject::tr(
"str: layer name" )
61 << QObject::tr(
"str: layer source" )
62 << QStringLiteral(
"QgsProperty" )
63 << QStringLiteral(
"QgsRasterLayer" );
83 return QCoreApplication::translate(
"Processing",
"A vector layer parameter, e.g. for algorithms which change layer styles, edit layers in place, or other operations which affect an entire layer." );
86 QString
name()
const override 88 return QCoreApplication::translate(
"Processing",
"Vector Layer" );
91 QString
id()
const override 93 return QStringLiteral(
"vector" );
98 return QStringList() << QObject::tr(
"str: layer ID" )
99 << QObject::tr(
"str: layer name" )
100 << QObject::tr(
"str: layer source" )
101 << QStringLiteral(
"QgsProperty" )
102 << QStringLiteral(
"QgsVectorLayer" );
122 return QCoreApplication::translate(
"Processing",
"A generic map layer parameter, which accepts either vector or raster layers." );
125 QString
name()
const override 127 return QCoreApplication::translate(
"Processing",
"Map Layer" );
130 QString
id()
const override 132 return QStringLiteral(
"layer" );
137 return QStringList() << QObject::tr(
"str: layer ID" )
138 << QObject::tr(
"str: layer name" )
139 << QObject::tr(
"str: layer source" )
140 << QStringLiteral(
"QgsMapLayer" )
141 << QStringLiteral(
"QgsProperty" )
142 << QStringLiteral(
"QgsRasterLayer" )
143 << QStringLiteral(
"QgsVectorLayer" );
163 return QCoreApplication::translate(
"Processing",
"A boolean parameter, for true/false values." );
166 QString
name()
const override 168 return QCoreApplication::translate(
"Processing",
"Boolean" );
171 QString
id()
const override 173 return QStringLiteral(
"boolean" );
178 return QStringList() << QStringLiteral(
"bool" )
179 << QStringLiteral(
"int" )
180 << QStringLiteral(
"str" )
181 << QStringLiteral(
"QgsProperty" );
201 return QCoreApplication::translate(
"Processing",
"An expression parameter, to add custom expressions based on layer fields." );
204 QString
name()
const override 206 return QCoreApplication::translate(
"Processing",
"Expression" );
209 QString
id()
const override 211 return QStringLiteral(
"expression" );
216 return QStringList() << QStringLiteral(
"str" )
217 << QStringLiteral(
"QgsProperty" );
237 return QCoreApplication::translate(
"Processing",
"A coordinate reference system (CRS) input parameter." );
240 QString
name()
const override 242 return QCoreApplication::translate(
"Processing",
"CRS" );
245 QString
id()
const override 247 return QStringLiteral(
"crs" );
253 << QStringLiteral(
"str: 'ProjectCrs'" )
254 << QObject::tr(
"str: CRS auth ID (e.g. 'EPSG:3111')" )
255 << QObject::tr(
"str: CRS PROJ4 (e.g. 'PROJ4:...')" )
256 << QObject::tr(
"str: CRS WKT (e.g. 'WKT:...')" )
257 << QObject::tr(
"str: layer ID. CRS of layer is used." )
258 << QObject::tr(
"str: layer name. CRS of layer is used." )
259 << QObject::tr(
"str: layer source. CRS of layer is used." )
260 << QObject::tr(
"QgsCoordinateReferenceSystem" )
261 << QObject::tr(
"QgsMapLayer: CRS of layer is used" )
262 << QObject::tr(
"QgsProcessingFeatureSourceDefinition: CRS of source is used" )
263 << QStringLiteral(
"QgsProperty" );
283 return QCoreApplication::translate(
"Processing",
"A numeric range parameter for processing algorithms." );
286 QString
name()
const override 288 return QCoreApplication::translate(
"Processing",
"Range" );
291 QString
id()
const override 293 return QStringLiteral(
"range" );
298 return QStringList() << QObject::tr(
"list[float]: list of 2 float values" )
299 << QObject::tr(
"list[str]: list of strings representing floats" )
300 << QObject::tr(
"str: as two comma delimited floats, e.g. '1,10'" )
301 << QStringLiteral(
"QgsProperty" );
321 return QCoreApplication::translate(
"Processing",
"A geographic point parameter." );
324 QString
name()
const override 326 return QCoreApplication::translate(
"Processing",
"Point" );
329 QString
id()
const override 331 return QStringLiteral(
"point" );
336 return QStringList() << QObject::tr(
"str: as an 'x,y' string, e.g. '1.5,10.1'" )
337 << QStringLiteral(
"QgsPointXY" )
338 << QStringLiteral(
"QgsProperty" )
339 << QStringLiteral(
"QgsReferencedPointXY" );
359 return QCoreApplication::translate(
"Processing",
"An enumerated type parameter." );
362 QString
name()
const override 364 return QCoreApplication::translate(
"Processing",
"Enum" );
367 QString
id()
const override 369 return QStringLiteral(
"enum" );
374 return QStringList() << QStringLiteral(
"int" )
375 << QObject::tr(
"str: as string representation of int, e.g. '1'" )
376 << QStringLiteral(
"QgsProperty" );
396 return QCoreApplication::translate(
"Processing",
"A map extent parameter." );
399 QString
name()
const override 401 return QCoreApplication::translate(
"Processing",
"Extent" );
404 QString
id()
const override 406 return QStringLiteral(
"extent" );
411 return QStringList() << QObject::tr(
"str: as comma delimited list of x min, x max, y min, y max. E.g. '4,10,101,105'" )
412 << QObject::tr(
"str: layer ID. Extent of layer is used." )
413 << QObject::tr(
"str: layer name. Extent of layer is used." )
414 << QObject::tr(
"str: layer source. Extent of layer is used." )
415 << QObject::tr(
"QgsMapLayer: Extent of layer is used" )
416 << QObject::tr(
"QgsProcessingFeatureSourceDefinition: Extent of source is used" )
417 << QStringLiteral(
"QgsProperty" )
418 << QStringLiteral(
"QgsRectangle" )
419 << QStringLiteral(
"QgsReferencedRectangle" );
439 return QCoreApplication::translate(
"Processing",
"A table (matrix) parameter for processing algorithms." );
442 QString
name()
const override 444 return QCoreApplication::translate(
"Processing",
"Matrix" );
447 QString
id()
const override 449 return QStringLiteral(
"matrix" );
454 return QStringList() << QObject::tr(
"str: as comma delimited list of values" )
455 << QStringLiteral(
"list" )
456 << QStringLiteral(
"QgsProperty" );
476 return QCoreApplication::translate(
"Processing",
"A file or folder parameter, for use with non-map layer file sources or folders." );
479 QString
name()
const override 481 return QCoreApplication::translate(
"Processing",
"File/Folder" );
484 QString
id()
const override 486 return QStringLiteral(
"file" );
491 return QStringList() << QStringLiteral(
"str" )
492 << QStringLiteral(
"QgsProperty" );
512 return QCoreApplication::translate(
"Processing",
"A vector field parameter, for selecting an existing field from a vector source." );
515 QString
name()
const override 517 return QCoreApplication::translate(
"Processing",
"Vector Field" );
520 QString
id()
const override 522 return QStringLiteral(
"field" );
527 return QStringList() << QStringLiteral(
"str" )
528 << QStringLiteral(
"QgsProperty" );
549 return QCoreApplication::translate(
"Processing",
"A vector layer destination parameter." );
552 QString
name()
const override 554 return QCoreApplication::translate(
"Processing",
"Vector Destination" );
557 QString
id()
const override 559 return QStringLiteral(
"vectorDestination" );
562 ParameterFlags
flags()
const override 566 #if QT_VERSION >= 0x50700 567 flags.setFlag( ParameterFlag::ExposeToModeler,
false );
577 return QStringList() << QStringLiteral(
"str" )
578 << QStringLiteral(
"QgsProperty" )
579 << QStringLiteral(
"QgsProcessingOutputLayerDefinition" );
600 return QCoreApplication::translate(
"Processing",
"A generic file based destination parameter." );
603 QString
name()
const override 605 return QCoreApplication::translate(
"Processing",
"File Destination" );
608 QString
id()
const override 610 return QStringLiteral(
"fileDestination" );
613 ParameterFlags
flags()
const override 617 #if QT_VERSION >= 0x50700 618 flags.setFlag( ParameterFlag::ExposeToModeler,
false );
628 return QStringList() << QStringLiteral(
"str" )
629 << QStringLiteral(
"QgsProperty" );
651 return QCoreApplication::translate(
"Processing",
"A folder destination parameter." );
654 QString
name()
const override 656 return QCoreApplication::translate(
"Processing",
"Folder Destination" );
659 QString
id()
const override 661 return QStringLiteral(
"folderDestination" );
664 ParameterFlags
flags()
const override 668 #if QT_VERSION >= 0x50700 669 flags.setFlag( ParameterFlag::ExposeToModeler,
false );
679 return QStringList() << QStringLiteral(
"str" )
680 << QStringLiteral(
"QgsProperty" );
701 return QCoreApplication::translate(
"Processing",
"A raster layer destination parameter." );
704 QString
name()
const override 706 return QCoreApplication::translate(
"Processing",
"Raster Destination" );
709 QString
id()
const override 711 return QStringLiteral(
"rasterDestination" );
714 ParameterFlags
flags()
const override 718 #if QT_VERSION >= 0x50700 719 flags.setFlag( ParameterFlag::ExposeToModeler,
false );
729 return QStringList() << QStringLiteral(
"str" )
730 << QStringLiteral(
"QgsProperty" )
731 << QStringLiteral(
"QgsProcessingOutputLayerDefinition" );
751 return QCoreApplication::translate(
"Processing",
"A freeform string parameter." );
754 QString
name()
const override 756 return QCoreApplication::translate(
"Processing",
"String" );
759 QString
id()
const override 761 return QStringLiteral(
"string" );
766 return QStringList() << QStringLiteral(
"str" )
767 << QStringLiteral(
"QgsProperty" );
787 return QCoreApplication::translate(
"Processing",
"An input allowing selection of multiple sources, including multiple map layers or file sources." );
790 QString
name()
const override 792 return QCoreApplication::translate(
"Processing",
"Multiple Input" );
795 QString
id()
const override 797 return QStringLiteral(
"multilayer" );
802 return QStringList() << QObject::tr(
"list[str]: list of layer IDs" )
803 << QObject::tr(
"list[str]: list of layer names" )
804 << QObject::tr(
"list[str]: list of layer sources" )
805 << QStringLiteral(
"list[QgsMapLayer]" )
806 << QStringLiteral(
"QgsProperty" );
826 return QCoreApplication::translate(
"Processing",
"A vector feature parameter, e.g. for algorithms which operate on the features within a layer." );
829 QString
name()
const override 831 return QCoreApplication::translate(
"Processing",
"Vector Features" );
834 QString
id()
const override 836 return QStringLiteral(
"source" );
841 return QStringList() << QObject::tr(
"str: layer ID" )
842 << QObject::tr(
"str: layer name" )
843 << QObject::tr(
"str: layer source" )
844 << QStringLiteral(
"QgsProcessingFeatureSourceDefinition" )
845 << QStringLiteral(
"QgsProperty" )
846 << QStringLiteral(
"QgsVectorLayer" );
866 return QCoreApplication::translate(
"Processing",
"A numeric parameter, including float or integer values." );
869 QString
name()
const override 871 return QCoreApplication::translate(
"Processing",
"Number" );
874 QString
id()
const override 876 return QStringLiteral(
"number" );
881 return QStringList() << QStringLiteral(
"int" )
882 << QStringLiteral(
"float" )
883 << QStringLiteral(
"QgsProperty" );
903 return QCoreApplication::translate(
"Processing",
"A numeric parameter representing a distance measure." );
906 QString
name()
const override 908 return QCoreApplication::translate(
"Processing",
"Distance" );
911 QString
id()
const override 913 return QStringLiteral(
"distance" );
918 return QStringList() << QStringLiteral(
"int" )
919 << QStringLiteral(
"float" )
920 << QStringLiteral(
"QgsProperty" );
941 return QCoreApplication::translate(
"Processing",
"A raster band parameter, for selecting an existing band from a raster source." );
944 QString
name()
const override 946 return QCoreApplication::translate(
"Processing",
"Raster Band" );
949 QString
id()
const override 951 return QStringLiteral(
"band" );
956 return QStringList() << QStringLiteral(
"int" )
957 << QStringLiteral(
"QgsProperty" );
976 ParameterFlags
flags()
const override 980 #if QT_VERSION >= 0x50700 981 flags.setFlag( ParameterFlag::ExposeToModeler,
false );
991 return QCoreApplication::translate(
"Processing",
"A feature sink destination parameter." );
994 QString
name()
const override 996 return QCoreApplication::translate(
"Processing",
"Feature Sink" );
999 QString
id()
const override 1001 return QStringLiteral(
"sink" );
1006 return QStringList() << QObject::tr(
"str: destination vector file, e.g. 'd:/test.shp'" )
1007 << QObject::tr(
"str: 'memory:' to store result in temporary memory layer" )
1008 << QObject::tr(
"str: using vector provider ID prefix and destination URI, e.g. 'postgres:...' to store result in PostGIS table" )
1009 << QStringLiteral(
"QgsProcessingOutputLayerDefinition" )
1010 << QStringLiteral(
"QgsProperty" );
1015 #endif // QGSPROCESSINGPARAMETERTYPEIMPL_H A boolean parameter for processing algorithms.
A feature sink parameter for Processing algorithms.
A vector layer destination parameter, for specifying the destination path for a vector layer created ...
An input file or folder parameter for processing algorithms.
A parameter for processing algorithms which accepts multiple map layers.
A generic file based destination parameter, for specifying the destination path for a file (non-map l...
A vector layer or feature source field parameter for processing algorithms.
Is this parameter available in the modeler. Is set to on by default.
A map layer parameter for processing algorithms.
virtual QString id() const =0
A static id for this type which will be used for storing this parameter type.
An expression parameter for processing algorithms.
A folder destination parameter, for specifying the destination path for a folder created by the algor...
A numeric range parameter for processing algorithms.
An expression parameter for processing algorithms.
A raster band parameter for Processing algorithms.
A vector layer or feature source field parameter for processing algorithms.
A numeric parameter for processing algorithms.
A distance parameter for processing algorithms.
A string parameter for processing algorithms.
A feature sink output for processing algorithms.
A raster layer destination parameter, for specifying the destination path for a raster layer created ...
A vector layer parameter for processing algorithms.
A numeric range parameter for processing algorithms.
A boolean parameter for processing algorithms.
A generic map layer parameter for processing algorithms.
An input file or folder parameter for processing algorithms.
A raster layer parameter for processing algorithms.
A raster layer parameter for processing algorithms.
virtual QgsProcessingParameterDefinition * create(const QString &name) const =0
Creates a new parameter of this type.
A raster layer destination parameter, for specifying the destination path for a raster layer created ...
An enum based parameter for processing algorithms, allowing for selection from predefined values...
virtual QString name() const =0
A human readable and translatable short name for this parameter type.
virtual ParameterFlags flags() const
Determines if this parameter is available in the modeler.
A double numeric parameter for distance values.
A vector layer (with or without geometry) parameter for processing algorithms.
ParameterFlag
Each parameter type can offer a number of additional flags to finetune its behavior and capabilities...
A coordinate reference system parameter for processing algorithms.
A rectangular map extent parameter for processing algorithms.
A numeric parameter for processing algorithms.
A generic file based destination parameter, for specifying the destination path for a file (non-map l...
A point parameter for processing algorithms.
A table (matrix) parameter for processing algorithms.
A vector layer destination parameter, for specifying the destination path for a vector layer created ...
A parameter for processing algorithms which accepts multiple map layers.
A point parameter for processing algorithms.
A crs parameter for processing algorithms.
virtual QString description() const =0
A human readable and translatable description for this parameter type.
An input feature source (such as vector layers) parameter for processing algorithms.
A folder destination parameter, for specifying the destination path for a folder created by the algor...
Makes metadata of processing parameters available.
Base class for the definition of processing parameters.
An input feature source (such as vector layers) parameter for processing algorithms.
A rectangular map extent parameter for processing algorithms.
An enum based parameter for processing algorithms, allowing for selection from predefined values...
A table (matrix) parameter for processing algorithms.
virtual QStringList acceptedPythonTypes() const
Returns a list of the Python data types accepted as values for the parameter.
A raster band parameter for Processing algorithms.
A string parameter for processing algorithms.