QGIS API Documentation  3.4.15-Madeira (e83d02e274)
qgsprocessingparametertypeimpl.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsprocessingparametertypeimpl.h
3  ------------------------
4  begin : March 2018
5  copyright : (C) 2018 by Matthias Kuhn
6  email : [email protected]
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef QGSPROCESSINGPARAMETERTYPEIMPL_H
19 #define QGSPROCESSINGPARAMETERTYPEIMPL_H
20 
21 #include "qgis.h"
22 #include "qgis_sip.h"
24 #include <QCoreApplication>
25 
26 #define SIP_NO_FILE
27 
36 {
37  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
38  {
39  return new QgsProcessingParameterRasterLayer( name );
40  }
41 
42  QString description() const override
43  {
44  return QCoreApplication::translate( "Processing", "A raster layer parameter." );
45  }
46 
47  QString name() const override
48  {
49  return QCoreApplication::translate( "Processing", "Raster Layer" );
50  }
51 
52  QString id() const override
53  {
54  return QStringLiteral( "raster" );
55  }
56 
57  QStringList acceptedPythonTypes() const override
58  {
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" );
64  }
65 };
66 
75 {
76  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
77  {
78  return new QgsProcessingParameterVectorLayer( name );
79  }
80 
81  QString description() const override
82  {
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." );
84  }
85 
86  QString name() const override
87  {
88  return QCoreApplication::translate( "Processing", "Vector Layer" );
89  }
90 
91  QString id() const override
92  {
93  return QStringLiteral( "vector" );
94  }
95 
96  QStringList acceptedPythonTypes() const override
97  {
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" );
103  }
104 };
105 
114 {
115  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
116  {
117  return new QgsProcessingParameterMapLayer( name );
118  }
119 
120  QString description() const override
121  {
122  return QCoreApplication::translate( "Processing", "A generic map layer parameter, which accepts either vector or raster layers." );
123  }
124 
125  QString name() const override
126  {
127  return QCoreApplication::translate( "Processing", "Map Layer" );
128  }
129 
130  QString id() const override
131  {
132  return QStringLiteral( "layer" );
133  }
134 
135  QStringList acceptedPythonTypes() const override
136  {
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" );
144  }
145 };
146 
155 {
156  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
157  {
158  return new QgsProcessingParameterBoolean( name );
159  }
160 
161  QString description() const override
162  {
163  return QCoreApplication::translate( "Processing", "A boolean parameter, for true/false values." );
164  }
165 
166  QString name() const override
167  {
168  return QCoreApplication::translate( "Processing", "Boolean" );
169  }
170 
171  QString id() const override
172  {
173  return QStringLiteral( "boolean" );
174  }
175 
176  QStringList acceptedPythonTypes() const override
177  {
178  return QStringList() << QStringLiteral( "bool" )
179  << QStringLiteral( "int" )
180  << QStringLiteral( "str" )
181  << QStringLiteral( "QgsProperty" );
182  }
183 };
184 
193 {
194  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
195  {
196  return new QgsProcessingParameterExpression( name );
197  }
198 
199  QString description() const override
200  {
201  return QCoreApplication::translate( "Processing", "An expression parameter, to add custom expressions based on layer fields." );
202  }
203 
204  QString name() const override
205  {
206  return QCoreApplication::translate( "Processing", "Expression" );
207  }
208 
209  QString id() const override
210  {
211  return QStringLiteral( "expression" );
212  }
213 
214  QStringList acceptedPythonTypes() const override
215  {
216  return QStringList() << QStringLiteral( "str" )
217  << QStringLiteral( "QgsProperty" );
218  }
219 };
220 
229 {
230  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
231  {
232  return new QgsProcessingParameterCrs( name );
233  }
234 
235  QString description() const override
236  {
237  return QCoreApplication::translate( "Processing", "A coordinate reference system (CRS) input parameter." );
238  }
239 
240  QString name() const override
241  {
242  return QCoreApplication::translate( "Processing", "CRS" );
243  }
244 
245  QString id() const override
246  {
247  return QStringLiteral( "crs" );
248  }
249 
250  QStringList acceptedPythonTypes() const override
251  {
252  return QStringList()
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" );
264  }
265 };
266 
275 {
276  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
277  {
278  return new QgsProcessingParameterRange( name );
279  }
280 
281  QString description() const override
282  {
283  return QCoreApplication::translate( "Processing", "A numeric range parameter for processing algorithms." );
284  }
285 
286  QString name() const override
287  {
288  return QCoreApplication::translate( "Processing", "Range" );
289  }
290 
291  QString id() const override
292  {
293  return QStringLiteral( "range" );
294  }
295 
296  QStringList acceptedPythonTypes() const override
297  {
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" );
302  }
303 };
304 
313 {
314  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
315  {
316  return new QgsProcessingParameterPoint( name );
317  }
318 
319  QString description() const override
320  {
321  return QCoreApplication::translate( "Processing", "A geographic point parameter." );
322  }
323 
324  QString name() const override
325  {
326  return QCoreApplication::translate( "Processing", "Point" );
327  }
328 
329  QString id() const override
330  {
331  return QStringLiteral( "point" );
332  }
333 
334  QStringList acceptedPythonTypes() const override
335  {
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" );
340  }
341 };
342 
351 {
352  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
353  {
354  return new QgsProcessingParameterEnum( name );
355  }
356 
357  QString description() const override
358  {
359  return QCoreApplication::translate( "Processing", "An enumerated type parameter." );
360  }
361 
362  QString name() const override
363  {
364  return QCoreApplication::translate( "Processing", "Enum" );
365  }
366 
367  QString id() const override
368  {
369  return QStringLiteral( "enum" );
370  }
371 
372  QStringList acceptedPythonTypes() const override
373  {
374  return QStringList() << QStringLiteral( "int" )
375  << QObject::tr( "str: as string representation of int, e.g. '1'" )
376  << QStringLiteral( "QgsProperty" );
377  }
378 };
379 
388 {
389  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
390  {
391  return new QgsProcessingParameterExtent( name );
392  }
393 
394  QString description() const override
395  {
396  return QCoreApplication::translate( "Processing", "A map extent parameter." );
397  }
398 
399  QString name() const override
400  {
401  return QCoreApplication::translate( "Processing", "Extent" );
402  }
403 
404  QString id() const override
405  {
406  return QStringLiteral( "extent" );
407  }
408 
409  QStringList acceptedPythonTypes() const override
410  {
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" );
420  }
421 };
422 
431 {
432  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
433  {
434  return new QgsProcessingParameterMatrix( name );
435  }
436 
437  QString description() const override
438  {
439  return QCoreApplication::translate( "Processing", "A table (matrix) parameter for processing algorithms." );
440  }
441 
442  QString name() const override
443  {
444  return QCoreApplication::translate( "Processing", "Matrix" );
445  }
446 
447  QString id() const override
448  {
449  return QStringLiteral( "matrix" );
450  }
451 
452  QStringList acceptedPythonTypes() const override
453  {
454  return QStringList() << QObject::tr( "str: as comma delimited list of values" )
455  << QStringLiteral( "list" )
456  << QStringLiteral( "QgsProperty" );
457  }
458 };
459 
468 {
469  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
470  {
471  return new QgsProcessingParameterFile( name );
472  }
473 
474  QString description() const override
475  {
476  return QCoreApplication::translate( "Processing", "A file or folder parameter, for use with non-map layer file sources or folders." );
477  }
478 
479  QString name() const override
480  {
481  return QCoreApplication::translate( "Processing", "File/Folder" );
482  }
483 
484  QString id() const override
485  {
486  return QStringLiteral( "file" );
487  }
488 
489  QStringList acceptedPythonTypes() const override
490  {
491  return QStringList() << QStringLiteral( "str" )
492  << QStringLiteral( "QgsProperty" );
493  }
494 };
495 
504 {
505  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
506  {
507  return new QgsProcessingParameterField( name );
508  }
509 
510  QString description() const override
511  {
512  return QCoreApplication::translate( "Processing", "A vector field parameter, for selecting an existing field from a vector source." );
513  }
514 
515  QString name() const override
516  {
517  return QCoreApplication::translate( "Processing", "Vector Field" );
518  }
519 
520  QString id() const override
521  {
522  return QStringLiteral( "field" );
523  }
524 
525  QStringList acceptedPythonTypes() const override
526  {
527  return QStringList() << QStringLiteral( "str" )
528  << QStringLiteral( "QgsProperty" );
529  }
530 };
531 
541 {
542  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
543  {
544  return new QgsProcessingParameterVectorDestination( name );
545  }
546 
547  QString description() const override
548  {
549  return QCoreApplication::translate( "Processing", "A vector layer destination parameter." );
550  }
551 
552  QString name() const override
553  {
554  return QCoreApplication::translate( "Processing", "Vector Destination" );
555  }
556 
557  QString id() const override
558  {
559  return QStringLiteral( "vectorDestination" );
560  }
561 
562  ParameterFlags flags() const override
563  {
564  ParameterFlags flags = QgsProcessingParameterType::flags();
565 
566 #if QT_VERSION >= 0x50700
567  flags.setFlag( ParameterFlag::ExposeToModeler, false );
568 #else
570 #endif
571 
572  return flags;
573  }
574 
575  QStringList acceptedPythonTypes() const override
576  {
577  return QStringList() << QStringLiteral( "str" )
578  << QStringLiteral( "QgsProperty" )
579  << QStringLiteral( "QgsProcessingOutputLayerDefinition" );
580  }
581 };
582 
592 {
593  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
594  {
595  return new QgsProcessingParameterFileDestination( name );
596  }
597 
598  QString description() const override
599  {
600  return QCoreApplication::translate( "Processing", "A generic file based destination parameter." );
601  }
602 
603  QString name() const override
604  {
605  return QCoreApplication::translate( "Processing", "File Destination" );
606  }
607 
608  QString id() const override
609  {
610  return QStringLiteral( "fileDestination" );
611  }
612 
613  ParameterFlags flags() const override
614  {
615  ParameterFlags flags = QgsProcessingParameterType::flags();
616 
617 #if QT_VERSION >= 0x50700
618  flags.setFlag( ParameterFlag::ExposeToModeler, false );
619 #else
621 #endif
622 
623  return flags;
624  }
625 
626  QStringList acceptedPythonTypes() const override
627  {
628  return QStringList() << QStringLiteral( "str" )
629  << QStringLiteral( "QgsProperty" );
630  }
631 };
632 
643 {
644  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
645  {
646  return new QgsProcessingParameterFolderDestination( name );
647  }
648 
649  QString description() const override
650  {
651  return QCoreApplication::translate( "Processing", "A folder destination parameter." );
652  }
653 
654  QString name() const override
655  {
656  return QCoreApplication::translate( "Processing", "Folder Destination" );
657  }
658 
659  QString id() const override
660  {
661  return QStringLiteral( "folderDestination" );
662  }
663 
664  ParameterFlags flags() const override
665  {
666  ParameterFlags flags = QgsProcessingParameterType::flags();
667 
668 #if QT_VERSION >= 0x50700
669  flags.setFlag( ParameterFlag::ExposeToModeler, false );
670 #else
672 #endif
673 
674  return flags;
675  }
676 
677  QStringList acceptedPythonTypes() const override
678  {
679  return QStringList() << QStringLiteral( "str" )
680  << QStringLiteral( "QgsProperty" );
681  }
682 };
683 
693 {
694  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
695  {
696  return new QgsProcessingParameterRasterDestination( name );
697  }
698 
699  QString description() const override
700  {
701  return QCoreApplication::translate( "Processing", "A raster layer destination parameter." );
702  }
703 
704  QString name() const override
705  {
706  return QCoreApplication::translate( "Processing", "Raster Destination" );
707  }
708 
709  QString id() const override
710  {
711  return QStringLiteral( "rasterDestination" );
712  }
713 
714  ParameterFlags flags() const override
715  {
716  ParameterFlags flags = QgsProcessingParameterType::flags();
717 
718 #if QT_VERSION >= 0x50700
719  flags.setFlag( ParameterFlag::ExposeToModeler, false );
720 #else
722 #endif
723 
724  return flags;
725  }
726 
727  QStringList acceptedPythonTypes() const override
728  {
729  return QStringList() << QStringLiteral( "str" )
730  << QStringLiteral( "QgsProperty" )
731  << QStringLiteral( "QgsProcessingOutputLayerDefinition" );
732  }
733 };
734 
743 {
744  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
745  {
746  return new QgsProcessingParameterString( name );
747  }
748 
749  QString description() const override
750  {
751  return QCoreApplication::translate( "Processing", "A freeform string parameter." );
752  }
753 
754  QString name() const override
755  {
756  return QCoreApplication::translate( "Processing", "String" );
757  }
758 
759  QString id() const override
760  {
761  return QStringLiteral( "string" );
762  }
763 
764  QStringList acceptedPythonTypes() const override
765  {
766  return QStringList() << QStringLiteral( "str" )
767  << QStringLiteral( "QgsProperty" );
768  }
769 };
770 
779 {
780  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
781  {
782  return new QgsProcessingParameterMultipleLayers( name );
783  }
784 
785  QString description() const override
786  {
787  return QCoreApplication::translate( "Processing", "An input allowing selection of multiple sources, including multiple map layers or file sources." );
788  }
789 
790  QString name() const override
791  {
792  return QCoreApplication::translate( "Processing", "Multiple Input" );
793  }
794 
795  QString id() const override
796  {
797  return QStringLiteral( "multilayer" );
798  }
799 
800  QStringList acceptedPythonTypes() const override
801  {
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" );
807  }
808 };
809 
818 {
819  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
820  {
821  return new QgsProcessingParameterFeatureSource( name );
822  }
823 
824  QString description() const override
825  {
826  return QCoreApplication::translate( "Processing", "A vector feature parameter, e.g. for algorithms which operate on the features within a layer." );
827  }
828 
829  QString name() const override
830  {
831  return QCoreApplication::translate( "Processing", "Vector Features" );
832  }
833 
834  QString id() const override
835  {
836  return QStringLiteral( "source" );
837  }
838 
839  QStringList acceptedPythonTypes() const override
840  {
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" );
847  }
848 };
849 
858 {
859  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
860  {
861  return new QgsProcessingParameterNumber( name );
862  }
863 
864  QString description() const override
865  {
866  return QCoreApplication::translate( "Processing", "A numeric parameter, including float or integer values." );
867  }
868 
869  QString name() const override
870  {
871  return QCoreApplication::translate( "Processing", "Number" );
872  }
873 
874  QString id() const override
875  {
876  return QStringLiteral( "number" );
877  }
878 
879  QStringList acceptedPythonTypes() const override
880  {
881  return QStringList() << QStringLiteral( "int" )
882  << QStringLiteral( "float" )
883  << QStringLiteral( "QgsProperty" );
884  }
885 };
886 
895 {
896  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
897  {
898  return new QgsProcessingParameterDistance( name );
899  }
900 
901  QString description() const override
902  {
903  return QCoreApplication::translate( "Processing", "A numeric parameter representing a distance measure." );
904  }
905 
906  QString name() const override
907  {
908  return QCoreApplication::translate( "Processing", "Distance" );
909  }
910 
911  QString id() const override
912  {
913  return QStringLiteral( "distance" );
914  }
915 
916  QStringList acceptedPythonTypes() const override
917  {
918  return QStringList() << QStringLiteral( "int" )
919  << QStringLiteral( "float" )
920  << QStringLiteral( "QgsProperty" );
921  }
922 
923 };
924 
933 {
934  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
935  {
936  return new QgsProcessingParameterBand( name );
937  }
938 
939  QString description() const override
940  {
941  return QCoreApplication::translate( "Processing", "A raster band parameter, for selecting an existing band from a raster source." );
942  }
943 
944  QString name() const override
945  {
946  return QCoreApplication::translate( "Processing", "Raster Band" );
947  }
948 
949  QString id() const override
950  {
951  return QStringLiteral( "band" );
952  }
953 
954  QStringList acceptedPythonTypes() const override
955  {
956  return QStringList() << QStringLiteral( "int" )
957  << QStringLiteral( "QgsProperty" );
958  }
959 
960 };
961 
970 {
971  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
972  {
973  return new QgsProcessingParameterFeatureSink( name );
974  }
975 
976  ParameterFlags flags() const override
977  {
978  ParameterFlags flags = QgsProcessingParameterType::flags();
979 
980 #if QT_VERSION >= 0x50700
981  flags.setFlag( ParameterFlag::ExposeToModeler, false );
982 #else
984 #endif
985 
986  return flags;
987  }
988 
989  QString description() const override
990  {
991  return QCoreApplication::translate( "Processing", "A feature sink destination parameter." );
992  }
993 
994  QString name() const override
995  {
996  return QCoreApplication::translate( "Processing", "Feature Sink" );
997  }
998 
999  QString id() const override
1000  {
1001  return QStringLiteral( "sink" );
1002  }
1003 
1004  QStringList acceptedPythonTypes() const override
1005  {
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" );
1011  }
1012 
1013 };
1014 
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...
#define SIP_FACTORY
Definition: qgis_sip.h:69
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.