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(
"maplayer" );
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(
"QgsMapLayer: CRS of layer is used" )
261 << QObject::tr(
"QgsProcessingFeatureSourceDefinition: CRS of source is used" )
262 << QStringLiteral(
"QgsProperty" );
282 return QCoreApplication::translate(
"Processing",
"A numeric range parameter for processing algorithms." );
285 QString
name()
const override 287 return QCoreApplication::translate(
"Processing",
"Range" );
290 QString
id()
const override 292 return QStringLiteral(
"range" );
297 return QStringList() << QObject::tr(
"list[float]: list of 2 float values" )
298 << QObject::tr(
"list[str]: list of strings representing floats" )
299 << QObject::tr(
"str: as two comma delimited floats, e.g. '1,10'" )
300 << QStringLiteral(
"QgsProperty" );
320 return QCoreApplication::translate(
"Processing",
"A geographic point parameter." );
323 QString
name()
const override 325 return QCoreApplication::translate(
"Processing",
"Point" );
328 QString
id()
const override 330 return QStringLiteral(
"point" );
335 return QStringList() << QObject::tr(
"str: as an 'x,y' string, e.g. '1.5,10.1'" )
336 << QStringLiteral(
"QgsPointXY" )
337 << QStringLiteral(
"QgsProperty" )
338 << QStringLiteral(
"QgsReferencedPointXY" );
358 return QCoreApplication::translate(
"Processing",
"TODO." );
361 QString
name()
const override 363 return QCoreApplication::translate(
"Processing",
"Enum" );
366 QString
id()
const override 368 return QStringLiteral(
"enum" );
373 return QStringList() << QStringLiteral(
"int" )
374 << QObject::tr(
"str: as string representation of int, e.g. '1'" )
375 << QStringLiteral(
"QgsProperty" );
395 return QCoreApplication::translate(
"Processing",
"A map extent parameter." );
398 QString
name()
const override 400 return QCoreApplication::translate(
"Processing",
"Extent" );
403 QString
id()
const override 405 return QStringLiteral(
"extent" );
410 return QStringList() << QObject::tr(
"str: as comma delimited list of x min, x max, y min, y max. E.g. '4,10,101,105'" )
411 << QObject::tr(
"str: layer ID. Extent of layer is used." )
412 << QObject::tr(
"str: layer name. Extent of layer is used." )
413 << QObject::tr(
"str: layer source. Extent of layer is used." )
414 << QObject::tr(
"QgsMapLayer: Extent of layer is used" )
415 << QObject::tr(
"QgsProcessingFeatureSourceDefinition: Extent of source is used" )
416 << QStringLiteral(
"QgsProperty" )
417 << QStringLiteral(
"QgsRectangle" )
418 << QStringLiteral(
"QgsReferencedRectangle" );
438 return QCoreApplication::translate(
"Processing",
"A table (matrix) parameter for processing algorithms." );
441 QString
name()
const override 443 return QCoreApplication::translate(
"Processing",
"Matrix" );
446 QString
id()
const override 448 return QStringLiteral(
"matrix" );
453 return QStringList() << QObject::tr(
"str: as comma delimited list of values" )
454 << QStringLiteral(
"list" )
455 << QStringLiteral(
"QgsProperty" );
475 return QCoreApplication::translate(
"Processing",
"A file or folder parameter, for use with non-map layer file sources or folders." );
478 QString
name()
const override 480 return QCoreApplication::translate(
"Processing",
"File/Folder" );
483 QString
id()
const override 485 return QStringLiteral(
"file" );
490 return QStringList() << QStringLiteral(
"str" )
491 << QStringLiteral(
"QgsProperty" );
511 return QCoreApplication::translate(
"Processing",
"A vector field parameter, for selecting an existing field from a vector source." );
514 QString
name()
const override 516 return QCoreApplication::translate(
"Processing",
"Vector Field" );
519 QString
id()
const override 521 return QStringLiteral(
"field" );
526 return QStringList() << QStringLiteral(
"str" )
527 << QStringLiteral(
"QgsProperty" );
548 return QCoreApplication::translate(
"Processing",
"A vector layer destination parameter." );
551 QString
name()
const override 553 return QCoreApplication::translate(
"Processing",
"Vector Destination" );
556 QString
id()
const override 558 return QStringLiteral(
"vectorDestination" );
561 ParameterFlags
flags()
const override 565 #if QT_VERSION >= 0x50700 566 flags.setFlag( ParameterFlag::ExposeToModeler,
false );
576 return QStringList() << QStringLiteral(
"str" )
577 << QStringLiteral(
"QgsProperty" )
578 << QStringLiteral(
"QgsProcessingOutputLayerDefinition" );
599 return QCoreApplication::translate(
"Processing",
"A generic file based destination parameter." );
602 QString
name()
const override 604 return QCoreApplication::translate(
"Processing",
"File Destination" );
607 QString
id()
const override 609 return QStringLiteral(
"fileDestination" );
612 ParameterFlags
flags()
const override 616 #if QT_VERSION >= 0x50700 617 flags.setFlag( ParameterFlag::ExposeToModeler,
false );
627 return QStringList() << QStringLiteral(
"str" )
628 << QStringLiteral(
"QgsProperty" );
650 return QCoreApplication::translate(
"Processing",
"A folder destination parameter." );
653 QString
name()
const override 655 return QCoreApplication::translate(
"Processing",
"Folder Destination" );
658 QString
id()
const override 660 return QStringLiteral(
"folderDestination" );
663 ParameterFlags
flags()
const override 667 #if QT_VERSION >= 0x50700 668 flags.setFlag( ParameterFlag::ExposeToModeler,
false );
678 return QStringList() << QStringLiteral(
"str" )
679 << QStringLiteral(
"QgsProperty" );
700 return QCoreApplication::translate(
"Processing",
"A raster layer destination parameter." );
703 QString
name()
const override 705 return QCoreApplication::translate(
"Processing",
"Raster Destination" );
708 QString
id()
const override 710 return QStringLiteral(
"rasterDestination" );
713 ParameterFlags
flags()
const override 717 #if QT_VERSION >= 0x50700 718 flags.setFlag( ParameterFlag::ExposeToModeler,
false );
728 return QStringList() << QStringLiteral(
"str" )
729 << QStringLiteral(
"QgsProperty" )
730 << QStringLiteral(
"QgsProcessingOutputLayerDefinition" );
750 return QCoreApplication::translate(
"Processing",
"A freeform string parameter." );
753 QString
name()
const override 755 return QCoreApplication::translate(
"Processing",
"String" );
758 QString
id()
const override 760 return QStringLiteral(
"string" );
765 return QStringList() << QStringLiteral(
"str" )
766 << QStringLiteral(
"QgsProperty" );
786 return QCoreApplication::translate(
"Processing",
"An input allowing selection of multiple sources, including multiple map layers or file sources." );
789 QString
name()
const override 791 return QCoreApplication::translate(
"Processing",
"Multiple Input" );
794 QString
id()
const override 796 return QStringLiteral(
"multilayer" );
801 return QStringList() << QObject::tr(
"list[str]: list of layer IDs" )
802 << QObject::tr(
"list[str]: list of layer names" )
803 << QObject::tr(
"list[str]: list of layer sources" )
804 << QStringLiteral(
"list[QgsMapLayer]" )
805 << QStringLiteral(
"QgsProperty" );
825 return QCoreApplication::translate(
"Processing",
"A vector feature parameter, e.g. for algorithms which operate on the features within a layer." );
828 QString
name()
const override 830 return QCoreApplication::translate(
"Processing",
"Vector Features" );
833 QString
id()
const override 835 return QStringLiteral(
"source" );
840 return QStringList() << QObject::tr(
"str: layer ID" )
841 << QObject::tr(
"str: layer name" )
842 << QObject::tr(
"str: layer source" )
843 << QStringLiteral(
"QgsProcessingFeatureSourceDefinition" )
844 << QStringLiteral(
"QgsProperty" )
845 << QStringLiteral(
"QgsVectorLayer" );
865 return QCoreApplication::translate(
"Processing",
"A numeric parameter, including float or integer values." );
868 QString
name()
const override 870 return QCoreApplication::translate(
"Processing",
"Number" );
873 QString
id()
const override 875 return QStringLiteral(
"number" );
880 return QStringList() << QStringLiteral(
"int" )
881 << QStringLiteral(
"float" )
882 << QStringLiteral(
"QgsProperty" );
902 return QCoreApplication::translate(
"Processing",
"A numeric parameter representing a distance measure." );
905 QString
name()
const override 907 return QCoreApplication::translate(
"Processing",
"Distance" );
910 QString
id()
const override 912 return QStringLiteral(
"distance" );
917 return QStringList() << QStringLiteral(
"int" )
918 << QStringLiteral(
"float" )
919 << QStringLiteral(
"QgsProperty" );
940 return QCoreApplication::translate(
"Processing",
"A raster band parameter, for selecting an existing band from a raster source." );
943 QString
name()
const override 945 return QCoreApplication::translate(
"Processing",
"Raster Band" );
948 QString
id()
const override 950 return QStringLiteral(
"band" );
955 return QStringList() << QStringLiteral(
"int" )
956 << QStringLiteral(
"QgsProperty" );
975 ParameterFlags
flags()
const override 979 #if QT_VERSION >= 0x50700 980 flags.setFlag( ParameterFlag::ExposeToModeler,
false );
990 return QCoreApplication::translate(
"Processing",
"A feature sink destination parameter." );
993 QString
name()
const override 995 return QCoreApplication::translate(
"Processing",
"Feature Sink" );
998 QString
id()
const override 1000 return QStringLiteral(
"sink" );
1005 return QStringList() << QObject::tr(
"str: destination vector file, e.g. 'd:/test.shp'" )
1006 << QObject::tr(
"str: 'memory:' to store result in temporary memory layer" )
1007 << QObject::tr(
"str: using vector provider ID prefix and destination URI, e.g. 'postgres:...' to store result in PostGIS table" )
1008 << QStringLiteral(
"QgsProcessingOutputLayerDefinition" )
1009 << QStringLiteral(
"QgsProperty" );
1014 #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...
virtual QStringList acceptedPythonTypes() const
Returns a list of the Python data types accepted as values for the parameter.
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.
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 ParameterFlags flags() const
Determines if this parameter is available in the modeler.
A raster band parameter for Processing algorithms.
A string parameter for processing algorithms.