QGIS API Documentation  3.2.0-Bonn (bc43194)
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( "maplayer" );
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( "QgsMapLayer: CRS of layer is used" )
261  << QObject::tr( "QgsProcessingFeatureSourceDefinition: CRS of source is used" )
262  << QStringLiteral( "QgsProperty" );
263  }
264 };
265 
274 {
275  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
276  {
277  return new QgsProcessingParameterRange( name );
278  }
279 
280  QString description() const override
281  {
282  return QCoreApplication::translate( "Processing", "A numeric range parameter for processing algorithms." );
283  }
284 
285  QString name() const override
286  {
287  return QCoreApplication::translate( "Processing", "Range" );
288  }
289 
290  QString id() const override
291  {
292  return QStringLiteral( "range" );
293  }
294 
295  QStringList acceptedPythonTypes() const override
296  {
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" );
301  }
302 };
303 
312 {
313  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
314  {
315  return new QgsProcessingParameterPoint( name );
316  }
317 
318  QString description() const override
319  {
320  return QCoreApplication::translate( "Processing", "A geographic point parameter." );
321  }
322 
323  QString name() const override
324  {
325  return QCoreApplication::translate( "Processing", "Point" );
326  }
327 
328  QString id() const override
329  {
330  return QStringLiteral( "point" );
331  }
332 
333  QStringList acceptedPythonTypes() const override
334  {
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" );
339  }
340 };
341 
350 {
351  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
352  {
353  return new QgsProcessingParameterEnum( name );
354  }
355 
356  QString description() const override
357  {
358  return QCoreApplication::translate( "Processing", "TODO." );
359  }
360 
361  QString name() const override
362  {
363  return QCoreApplication::translate( "Processing", "Enum" );
364  }
365 
366  QString id() const override
367  {
368  return QStringLiteral( "enum" );
369  }
370 
371  QStringList acceptedPythonTypes() const override
372  {
373  return QStringList() << QStringLiteral( "int" )
374  << QObject::tr( "str: as string representation of int, e.g. '1'" )
375  << QStringLiteral( "QgsProperty" );
376  }
377 };
378 
387 {
388  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
389  {
390  return new QgsProcessingParameterExtent( name );
391  }
392 
393  QString description() const override
394  {
395  return QCoreApplication::translate( "Processing", "A map extent parameter." );
396  }
397 
398  QString name() const override
399  {
400  return QCoreApplication::translate( "Processing", "Extent" );
401  }
402 
403  QString id() const override
404  {
405  return QStringLiteral( "extent" );
406  }
407 
408  QStringList acceptedPythonTypes() const override
409  {
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" );
419  }
420 };
421 
430 {
431  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
432  {
433  return new QgsProcessingParameterMatrix( name );
434  }
435 
436  QString description() const override
437  {
438  return QCoreApplication::translate( "Processing", "A table (matrix) parameter for processing algorithms." );
439  }
440 
441  QString name() const override
442  {
443  return QCoreApplication::translate( "Processing", "Matrix" );
444  }
445 
446  QString id() const override
447  {
448  return QStringLiteral( "matrix" );
449  }
450 
451  QStringList acceptedPythonTypes() const override
452  {
453  return QStringList() << QObject::tr( "str: as comma delimited list of values" )
454  << QStringLiteral( "list" )
455  << QStringLiteral( "QgsProperty" );
456  }
457 };
458 
467 {
468  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
469  {
470  return new QgsProcessingParameterFile( name );
471  }
472 
473  QString description() const override
474  {
475  return QCoreApplication::translate( "Processing", "A file or folder parameter, for use with non-map layer file sources or folders." );
476  }
477 
478  QString name() const override
479  {
480  return QCoreApplication::translate( "Processing", "File/Folder" );
481  }
482 
483  QString id() const override
484  {
485  return QStringLiteral( "file" );
486  }
487 
488  QStringList acceptedPythonTypes() const override
489  {
490  return QStringList() << QStringLiteral( "str" )
491  << QStringLiteral( "QgsProperty" );
492  }
493 };
494 
503 {
504  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
505  {
506  return new QgsProcessingParameterField( name );
507  }
508 
509  QString description() const override
510  {
511  return QCoreApplication::translate( "Processing", "A vector field parameter, for selecting an existing field from a vector source." );
512  }
513 
514  QString name() const override
515  {
516  return QCoreApplication::translate( "Processing", "Vector Field" );
517  }
518 
519  QString id() const override
520  {
521  return QStringLiteral( "field" );
522  }
523 
524  QStringList acceptedPythonTypes() const override
525  {
526  return QStringList() << QStringLiteral( "str" )
527  << QStringLiteral( "QgsProperty" );
528  }
529 };
530 
540 {
541  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
542  {
543  return new QgsProcessingParameterVectorDestination( name );
544  }
545 
546  QString description() const override
547  {
548  return QCoreApplication::translate( "Processing", "A vector layer destination parameter." );
549  }
550 
551  QString name() const override
552  {
553  return QCoreApplication::translate( "Processing", "Vector Destination" );
554  }
555 
556  QString id() const override
557  {
558  return QStringLiteral( "vectorDestination" );
559  }
560 
561  ParameterFlags flags() const override
562  {
563  ParameterFlags flags = QgsProcessingParameterType::flags();
564 
565 #if QT_VERSION >= 0x50700
566  flags.setFlag( ParameterFlag::ExposeToModeler, false );
567 #else
569 #endif
570 
571  return flags;
572  }
573 
574  QStringList acceptedPythonTypes() const override
575  {
576  return QStringList() << QStringLiteral( "str" )
577  << QStringLiteral( "QgsProperty" )
578  << QStringLiteral( "QgsProcessingOutputLayerDefinition" );
579  }
580 };
581 
591 {
592  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
593  {
594  return new QgsProcessingParameterFileDestination( name );
595  }
596 
597  QString description() const override
598  {
599  return QCoreApplication::translate( "Processing", "A generic file based destination parameter." );
600  }
601 
602  QString name() const override
603  {
604  return QCoreApplication::translate( "Processing", "File Destination" );
605  }
606 
607  QString id() const override
608  {
609  return QStringLiteral( "fileDestination" );
610  }
611 
612  ParameterFlags flags() const override
613  {
614  ParameterFlags flags = QgsProcessingParameterType::flags();
615 
616 #if QT_VERSION >= 0x50700
617  flags.setFlag( ParameterFlag::ExposeToModeler, false );
618 #else
620 #endif
621 
622  return flags;
623  }
624 
625  QStringList acceptedPythonTypes() const override
626  {
627  return QStringList() << QStringLiteral( "str" )
628  << QStringLiteral( "QgsProperty" );
629  }
630 };
631 
642 {
643  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
644  {
645  return new QgsProcessingParameterFolderDestination( name );
646  }
647 
648  QString description() const override
649  {
650  return QCoreApplication::translate( "Processing", "A folder destination parameter." );
651  }
652 
653  QString name() const override
654  {
655  return QCoreApplication::translate( "Processing", "Folder Destination" );
656  }
657 
658  QString id() const override
659  {
660  return QStringLiteral( "folderDestination" );
661  }
662 
663  ParameterFlags flags() const override
664  {
665  ParameterFlags flags = QgsProcessingParameterType::flags();
666 
667 #if QT_VERSION >= 0x50700
668  flags.setFlag( ParameterFlag::ExposeToModeler, false );
669 #else
671 #endif
672 
673  return flags;
674  }
675 
676  QStringList acceptedPythonTypes() const override
677  {
678  return QStringList() << QStringLiteral( "str" )
679  << QStringLiteral( "QgsProperty" );
680  }
681 };
682 
692 {
693  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
694  {
695  return new QgsProcessingParameterRasterDestination( name );
696  }
697 
698  QString description() const override
699  {
700  return QCoreApplication::translate( "Processing", "A raster layer destination parameter." );
701  }
702 
703  QString name() const override
704  {
705  return QCoreApplication::translate( "Processing", "Raster Destination" );
706  }
707 
708  QString id() const override
709  {
710  return QStringLiteral( "rasterDestination" );
711  }
712 
713  ParameterFlags flags() const override
714  {
715  ParameterFlags flags = QgsProcessingParameterType::flags();
716 
717 #if QT_VERSION >= 0x50700
718  flags.setFlag( ParameterFlag::ExposeToModeler, false );
719 #else
721 #endif
722 
723  return flags;
724  }
725 
726  QStringList acceptedPythonTypes() const override
727  {
728  return QStringList() << QStringLiteral( "str" )
729  << QStringLiteral( "QgsProperty" )
730  << QStringLiteral( "QgsProcessingOutputLayerDefinition" );
731  }
732 };
733 
742 {
743  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
744  {
745  return new QgsProcessingParameterString( name );
746  }
747 
748  QString description() const override
749  {
750  return QCoreApplication::translate( "Processing", "A freeform string parameter." );
751  }
752 
753  QString name() const override
754  {
755  return QCoreApplication::translate( "Processing", "String" );
756  }
757 
758  QString id() const override
759  {
760  return QStringLiteral( "string" );
761  }
762 
763  QStringList acceptedPythonTypes() const override
764  {
765  return QStringList() << QStringLiteral( "str" )
766  << QStringLiteral( "QgsProperty" );
767  }
768 };
769 
778 {
779  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
780  {
781  return new QgsProcessingParameterMultipleLayers( name );
782  }
783 
784  QString description() const override
785  {
786  return QCoreApplication::translate( "Processing", "An input allowing selection of multiple sources, including multiple map layers or file sources." );
787  }
788 
789  QString name() const override
790  {
791  return QCoreApplication::translate( "Processing", "Multiple Input" );
792  }
793 
794  QString id() const override
795  {
796  return QStringLiteral( "multilayer" );
797  }
798 
799  QStringList acceptedPythonTypes() const override
800  {
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" );
806  }
807 };
808 
817 {
818  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
819  {
820  return new QgsProcessingParameterFeatureSource( name );
821  }
822 
823  QString description() const override
824  {
825  return QCoreApplication::translate( "Processing", "A vector feature parameter, e.g. for algorithms which operate on the features within a layer." );
826  }
827 
828  QString name() const override
829  {
830  return QCoreApplication::translate( "Processing", "Vector Features" );
831  }
832 
833  QString id() const override
834  {
835  return QStringLiteral( "source" );
836  }
837 
838  QStringList acceptedPythonTypes() const override
839  {
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" );
846  }
847 };
848 
857 {
858  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
859  {
860  return new QgsProcessingParameterNumber( name );
861  }
862 
863  QString description() const override
864  {
865  return QCoreApplication::translate( "Processing", "A numeric parameter, including float or integer values." );
866  }
867 
868  QString name() const override
869  {
870  return QCoreApplication::translate( "Processing", "Number" );
871  }
872 
873  QString id() const override
874  {
875  return QStringLiteral( "number" );
876  }
877 
878  QStringList acceptedPythonTypes() const override
879  {
880  return QStringList() << QStringLiteral( "int" )
881  << QStringLiteral( "float" )
882  << QStringLiteral( "QgsProperty" );
883  }
884 };
885 
894 {
895  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
896  {
897  return new QgsProcessingParameterDistance( name );
898  }
899 
900  QString description() const override
901  {
902  return QCoreApplication::translate( "Processing", "A numeric parameter representing a distance measure." );
903  }
904 
905  QString name() const override
906  {
907  return QCoreApplication::translate( "Processing", "Distance" );
908  }
909 
910  QString id() const override
911  {
912  return QStringLiteral( "distance" );
913  }
914 
915  QStringList acceptedPythonTypes() const override
916  {
917  return QStringList() << QStringLiteral( "int" )
918  << QStringLiteral( "float" )
919  << QStringLiteral( "QgsProperty" );
920  }
921 
922 };
923 
932 {
933  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
934  {
935  return new QgsProcessingParameterBand( name );
936  }
937 
938  QString description() const override
939  {
940  return QCoreApplication::translate( "Processing", "A raster band parameter, for selecting an existing band from a raster source." );
941  }
942 
943  QString name() const override
944  {
945  return QCoreApplication::translate( "Processing", "Raster Band" );
946  }
947 
948  QString id() const override
949  {
950  return QStringLiteral( "band" );
951  }
952 
953  QStringList acceptedPythonTypes() const override
954  {
955  return QStringList() << QStringLiteral( "int" )
956  << QStringLiteral( "QgsProperty" );
957  }
958 
959 };
960 
969 {
970  QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
971  {
972  return new QgsProcessingParameterFeatureSink( name );
973  }
974 
975  ParameterFlags flags() const override
976  {
977  ParameterFlags flags = QgsProcessingParameterType::flags();
978 
979 #if QT_VERSION >= 0x50700
980  flags.setFlag( ParameterFlag::ExposeToModeler, false );
981 #else
983 #endif
984 
985  return flags;
986  }
987 
988  QString description() const override
989  {
990  return QCoreApplication::translate( "Processing", "A feature sink destination parameter." );
991  }
992 
993  QString name() const override
994  {
995  return QCoreApplication::translate( "Processing", "Feature Sink" );
996  }
997 
998  QString id() const override
999  {
1000  return QStringLiteral( "sink" );
1001  }
1002 
1003  QStringList acceptedPythonTypes() const override
1004  {
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" );
1010  }
1011 
1012 };
1013 
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...
#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 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.