QGIS API Documentation 3.43.0-Master (e737cc10456)
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 : matthias@opengis.ch
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 pythonImportString() const override
53 {
54 return QStringLiteral( "from qgis.core import QgsProcessingParameterRasterLayer" );
55 }
56
57 QString className() const override
58 {
59 return QStringLiteral( "QgsProcessingParameterRasterLayer" );
60 }
61
62 QString id() const override
63 {
64 return QStringLiteral( "raster" );
65 }
66
67 QStringList acceptedPythonTypes() const override
68 {
69 return QStringList() << QObject::tr( "str: layer ID" )
70 << QObject::tr( "str: layer name" )
71 << QObject::tr( "str: layer source" )
72 << QStringLiteral( "QgsProperty" )
73 << QStringLiteral( "QgsRasterLayer" );
74 }
75
76 QStringList acceptedStringValues() const override
77 {
78 return QStringList() << QObject::tr( "Path to a raster layer" );
79 }
80
81 QStringList acceptedParameterTypes() const override
82 {
83 return QStringList()
88 }
89
90 QStringList acceptedOutputTypes() const override
91 {
92 return QStringList()
98 }
99};
100
109{
110 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
111 {
112 return new QgsProcessingParameterMeshLayer( name );
113 }
114
115 QString description() const override
116 {
117 return QCoreApplication::translate( "Processing", "A mesh layer parameter." );
118 }
119
120 QString name() const override
121 {
122 return QCoreApplication::translate( "Processing", "Mesh Layer" );
123 }
124
125 QString pythonImportString() const override
126 {
127 return QStringLiteral( "from qgis.core import QgsProcessingParameterMeshLayer" );
128 }
129
130 QString className() const override
131 {
132 return QStringLiteral( "QgsProcessingParameterMeshLayer" );
133 }
134
135 QString id() const override
136 {
137 return QStringLiteral( "mesh" );
138 }
139
140 QStringList acceptedPythonTypes() const override
141 {
142 return QStringList() << QObject::tr( "str: layer ID" )
143 << QObject::tr( "str: layer name" )
144 << QObject::tr( "str: layer source" )
145 << QStringLiteral( "QgsMeshLayer" );
146 }
147
148 QStringList acceptedStringValues() const override
149 {
150 return QStringList() << QObject::tr( "Path to a mesh layer" );
151 }
152
153 QStringList acceptedParameterTypes() const override
154 {
155 return QStringList()
160 }
161
162 QStringList acceptedOutputTypes() const override
163 {
164 return QStringList()
166 // TODO << QgsProcessingOutputMeshLayer::typeName()
170 }
171};
172
181{
182 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
183 {
184 return new QgsProcessingParameterVectorLayer( name );
185 }
186
187 QString description() const override
188 {
189 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." );
190 }
191
192 QString name() const override
193 {
194 return QCoreApplication::translate( "Processing", "Vector Layer" );
195 }
196
197 QString pythonImportString() const override
198 {
199 return QStringLiteral( "from qgis.core import QgsProcessingParameterVectorLayer" );
200 }
201
202 QString className() const override
203 {
204 return QStringLiteral( "QgsProcessingParameterVectorLayer" );
205 }
206
207 QString id() const override
208 {
209 return QStringLiteral( "vector" );
210 }
211
212 QStringList acceptedPythonTypes() const override
213 {
214 return QStringList() << QObject::tr( "str: layer ID" )
215 << QObject::tr( "str: layer name" )
216 << QObject::tr( "str: layer source" )
217 << QStringLiteral( "QgsProperty" )
218 << QStringLiteral( "QgsVectorLayer" );
219 }
220
221 QStringList acceptedStringValues() const override
222 {
223 return QStringList() << QObject::tr( "Path to a vector layer" );
224 }
225
226 QStringList acceptedParameterTypes() const override
227 {
228 return QStringList()
233 }
234
235 QStringList acceptedOutputTypes() const override
236 {
237 return QStringList()
243 }
244
245 QList<int> acceptedDataTypes( const QgsProcessingParameterDefinition *parameter ) const override
246 {
247 if ( const QgsProcessingParameterVectorLayer *param = dynamic_cast<const QgsProcessingParameterVectorLayer *>( parameter ) )
248 return param->dataTypes();
249 else
250 return QList<int>();
251 }
252};
253
262{
263 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
264 {
265 return new QgsProcessingParameterMapLayer( name );
266 }
267
268 QString description() const override
269 {
270 return QCoreApplication::translate( "Processing", "A generic map layer parameter, which accepts either vector or raster layers." );
271 }
272
273 QString name() const override
274 {
275 return QCoreApplication::translate( "Processing", "Map Layer" );
276 }
277
278 QString id() const override
279 {
280 return QStringLiteral( "layer" );
281 }
282
283 QString pythonImportString() const override
284 {
285 return QStringLiteral( "from qgis.core import QgsProcessingParameterMapLayer" );
286 }
287
288 QString className() const override
289 {
290 return QStringLiteral( "QgsProcessingParameterMapLayer" );
291 }
292
293 QStringList acceptedPythonTypes() const override
294 {
295 return QStringList() << QObject::tr( "str: layer ID" )
296 << QObject::tr( "str: layer name" )
297 << QObject::tr( "str: layer source" )
298 << QStringLiteral( "QgsMapLayer" )
299 << QStringLiteral( "QgsProperty" )
300 << QStringLiteral( "QgsRasterLayer" )
301 << QStringLiteral( "QgsVectorLayer" );
302 }
303
304 QStringList acceptedStringValues() const override
305 {
306 return QStringList() << QObject::tr( "Path to a vector, raster or mesh layer" );
307 }
308
309 QStringList acceptedParameterTypes() const override
310 {
311 return QStringList()
320 }
321
322 QStringList acceptedOutputTypes() const override
323 {
324 return QStringList()
331 }
332};
333
342{
343 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
344 {
345 return new QgsProcessingParameterBoolean( name );
346 }
347
348 QString description() const override
349 {
350 return QCoreApplication::translate( "Processing", "A boolean parameter, for true/false values." );
351 }
352
353 QString name() const override
354 {
355 return QCoreApplication::translate( "Processing", "Boolean" );
356 }
357
358 QString id() const override
359 {
360 return QStringLiteral( "boolean" );
361 }
362
363 QString pythonImportString() const override
364 {
365 return QStringLiteral( "from qgis.core import QgsProcessingParameterBoolean" );
366 }
367
368 QString className() const override
369 {
370 return QStringLiteral( "QgsProcessingParameterBoolean" );
371 }
372
373 QStringList acceptedPythonTypes() const override
374 {
375 return QStringList() << QStringLiteral( "bool" )
376 << QStringLiteral( "int" )
377 << QStringLiteral( "str" )
378 << QStringLiteral( "QgsProperty" );
379 }
380
381 QStringList acceptedStringValues() const override
382 {
383 return QStringList() << QObject::tr( "1 for true/yes" )
384 << QObject::tr( "0 for false/no" )
385 << QObject::tr( "field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
386 << QObject::tr( "expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
387 }
388
389 QStringList acceptedParameterTypes() const override
390 {
391 //pretty much everything is compatible here and can be converted to a bool!
392 return QStringList() << QgsProcessingParameterBoolean::typeName()
411 }
412 QStringList acceptedOutputTypes() const override
413 {
414 return QStringList() << QgsProcessingOutputNumber::typeName()
422 }
423};
424
433{
434 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
435 {
436 return new QgsProcessingParameterExpression( name );
437 }
438
439 QString description() const override
440 {
441 return QCoreApplication::translate( "Processing", "An expression parameter, to add custom expressions based on layer fields." );
442 }
443
444 QString name() const override
445 {
446 return QCoreApplication::translate( "Processing", "Expression" );
447 }
448
449 QString id() const override
450 {
451 return QStringLiteral( "expression" );
452 }
453
454 QString pythonImportString() const override
455 {
456 return QStringLiteral( "from qgis.core import QgsProcessingParameterExpression" );
457 }
458
459 QString className() const override
460 {
461 return QStringLiteral( "QgsProcessingParameterExpression" );
462 }
463
464 QStringList acceptedPythonTypes() const override
465 {
466 return QStringList() << QStringLiteral( "str" )
467 << QStringLiteral( "QgsProperty" );
468 }
469
470 QStringList acceptedStringValues() const override
471 {
472 return QStringList() << QObject::tr( "A valid QGIS expression string, e.g \"road_name\" = 'MAIN RD'" );
473 }
474
475 QStringList acceptedParameterTypes() const override
476 {
477 return QStringList()
486 }
487
488 QStringList acceptedOutputTypes() const override
489 {
490 return QStringList()
494 }
495};
496
505{
506 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
507 {
508 return new QgsProcessingParameterCrs( name );
509 }
510
511 QString description() const override
512 {
513 return QCoreApplication::translate( "Processing", "A coordinate reference system (CRS) input parameter." );
514 }
515
516 QString name() const override
517 {
518 return QCoreApplication::translate( "Processing", "CRS" );
519 }
520
521 QString id() const override
522 {
523 return QStringLiteral( "crs" );
524 }
525
526 QString pythonImportString() const override
527 {
528 return QStringLiteral( "from qgis.core import QgsProcessingParameterCrs" );
529 }
530
531 QString className() const override
532 {
533 return QStringLiteral( "QgsProcessingParameterCrs" );
534 }
535
536 QStringList acceptedPythonTypes() const override
537 {
538 return QStringList()
539 << QStringLiteral( "str: 'ProjectCrs'" )
540 << QObject::tr( "str: CRS auth ID (e.g. 'EPSG:3111')" )
541 << QObject::tr( "str: CRS PROJ4 (e.g. 'PROJ4:…')" )
542 << QObject::tr( "str: CRS WKT (e.g. 'WKT:…')" )
543 << QObject::tr( "str: layer ID. CRS of layer is used." )
544 << QObject::tr( "str: layer name. CRS of layer is used." )
545 << QObject::tr( "str: layer source. CRS of layer is used." )
546 << QObject::tr( "QgsCoordinateReferenceSystem" )
547 << QObject::tr( "QgsMapLayer: CRS of layer is used" )
548 << QObject::tr( "QgsProcessingFeatureSourceDefinition: CRS of source is used" )
549 << QStringLiteral( "QgsProperty" );
550 }
551
552 QStringList acceptedStringValues() const override
553 {
554 return QStringList() << QObject::tr( "CRS as an auth ID (e.g. 'EPSG:3111')" )
555 << QObject::tr( "CRS as a PROJ4 string (e.g. 'PROJ4:…')" )
556 << QObject::tr( "CRS as a WKT string (e.g. 'WKT:…')" )
557 << QObject::tr( "Path to a layer. The CRS of the layer is used." ) ;
558 }
559
560 QStringList acceptedParameterTypes() const override
561 {
562 return QStringList()
572 }
573
574 QStringList acceptedOutputTypes() const override
575 {
576 return QStringList() << QgsProcessingOutputVectorLayer::typeName()
581 }
582};
583
592{
593 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
594 {
595 return new QgsProcessingParameterRange( name );
596 }
597
598 QString description() const override
599 {
600 return QCoreApplication::translate( "Processing", "A numeric range parameter for processing algorithms." );
601 }
602
603 QString name() const override
604 {
605 return QCoreApplication::translate( "Processing", "Range" );
606 }
607
608 QString id() const override
609 {
610 return QStringLiteral( "range" );
611 }
612
613 QString pythonImportString() const override
614 {
615 return QStringLiteral( "from qgis.core import QgsProcessingParameterRange" );
616 }
617
618 QString className() const override
619 {
620 return QStringLiteral( "QgsProcessingParameterRange" );
621 }
622
623 QStringList acceptedPythonTypes() const override
624 {
625 return QStringList() << QObject::tr( "list[float]: list of 2 float values" )
626 << QObject::tr( "list[str]: list of strings representing floats" )
627 << QObject::tr( "str: as two comma delimited floats, e.g. '1,10'" )
628 << QStringLiteral( "QgsProperty" );
629 }
630
631 QStringList acceptedStringValues() const override
632 {
633 return QStringList() << QObject::tr( "Two comma separated numeric values, e.g. '1,10'" );
634 }
635
636 QStringList acceptedParameterTypes() const override
637 {
638 return QStringList()
641 }
642
643 QStringList acceptedOutputTypes() const override
644 {
645 return QStringList() << QgsProcessingOutputString::typeName()
647 }
648};
649
658{
659 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
660 {
661 return new QgsProcessingParameterPoint( name );
662 }
663
664 QString description() const override
665 {
666 return QCoreApplication::translate( "Processing", "A point geometry parameter." );
667 }
668
669 QString name() const override
670 {
671 return QCoreApplication::translate( "Processing", "Point" );
672 }
673
674 QString id() const override
675 {
676 return QStringLiteral( "point" );
677 }
678
679 QString pythonImportString() const override
680 {
681 return QStringLiteral( "from qgis.core import QgsProcessingParameterPoint" );
682 }
683
684 QString className() const override
685 {
686 return QStringLiteral( "QgsProcessingParameterPoint" );
687 }
688
689 QStringList acceptedPythonTypes() const override
690 {
691 return QStringList() << QObject::tr( "str: as an 'x,y' string, e.g. '1.5,10.1'" )
692 << QStringLiteral( "QgsPointXY" )
693 << QStringLiteral( "QgsProperty" )
694 << QStringLiteral( "QgsReferencedPointXY" )
695 << QStringLiteral( "QgsGeometry: centroid of geometry is used" );
696 }
697
698 QStringList acceptedStringValues() const override
699 {
700 return QStringList() << QObject::tr( "Point coordinate as an 'x,y' string, e.g. '1.5,10.1'" );
701 }
702
703 QStringList acceptedParameterTypes() const override
704 {
705 return QStringList()
708 }
709
710 QStringList acceptedOutputTypes() const override
711 {
712 return QStringList()
715 }
716};
717
726{
727 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
728 {
729 return new QgsProcessingParameterGeometry( name );
730 }
731
732 QString description() const override
733 {
734 return QCoreApplication::translate( "Processing", "A geometry parameter." );
735 }
736
737 QString name() const override
738 {
739 return QCoreApplication::translate( "Processing", "Geometry" );
740 }
741
742 QString id() const override
743 {
744 return QStringLiteral( "geometry" );
745 }
746
747 QString pythonImportString() const override
748 {
749 return QStringLiteral( "from qgis.core import QgsProcessingParameterGeometry" );
750 }
751
752 QString className() const override
753 {
754 return QStringLiteral( "QgsProcessingParameterGeometry" );
755 }
756
757 QStringList acceptedPythonTypes() const override
758 {
759 return QStringList() << QObject::tr( "str: as Well-Known Text string (WKT)" )
760 << QStringLiteral( "QgsGeometry" )
761 << QStringLiteral( "QgsProperty" );
762 }
763
764 QStringList acceptedStringValues() const override
765 {
766 return QStringList() << QObject::tr( "Well-Known Text string (WKT)" );
767 }
768
769 QStringList acceptedParameterTypes() const override
770 {
771 return QStringList()
776 }
777
778 QStringList acceptedOutputTypes() const override
779 {
780 return QStringList()
783 }
784};
785
794{
795 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
796 {
797 return new QgsProcessingParameterEnum( name );
798 }
799
800 QString description() const override
801 {
802 return QCoreApplication::translate( "Processing", "An enumerated type parameter." );
803 }
804
805 QString name() const override
806 {
807 return QCoreApplication::translate( "Processing", "Enum" );
808 }
809
810 QString id() const override
811 {
812 return QStringLiteral( "enum" );
813 }
814
815 QString pythonImportString() const override
816 {
817 return QStringLiteral( "from qgis.core import QgsProcessingParameterEnum" );
818 }
819
820 QString className() const override
821 {
822 return QStringLiteral( "QgsProcessingParameterEnum" );
823 }
824
825 QStringList acceptedPythonTypes() const override
826 {
827 return QStringList() << QStringLiteral( "int" )
828 << QObject::tr( "str: as string representation of int, e.g. '1'" )
829 << QStringLiteral( "QgsProperty" );
830 }
831
832 QStringList acceptedStringValues() const override
833 {
834 return QStringList() << QObject::tr( "Number of selected option, e.g. '1'" )
835 << QObject::tr( "Comma separated list of options, e.g. '1,3'" );
836 }
837
838 QStringList acceptedParameterTypes() const override
839 {
840 return QStringList()
844 }
845
846 QStringList acceptedOutputTypes() const override
847 {
848 return QStringList()
852 }
853};
854
863{
864 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
865 {
866 return new QgsProcessingParameterExtent( name );
867 }
868
869 QString description() const override
870 {
871 return QCoreApplication::translate( "Processing", "A map extent parameter." );
872 }
873
874 QString name() const override
875 {
876 return QCoreApplication::translate( "Processing", "Extent" );
877 }
878
879 QString id() const override
880 {
881 return QStringLiteral( "extent" );
882 }
883
884 QString pythonImportString() const override
885 {
886 return QStringLiteral( "from qgis.core import QgsProcessingParameterExtent" );
887 }
888
889 QString className() const override
890 {
891 return QStringLiteral( "QgsProcessingParameterExtent" );
892 }
893
894 QStringList acceptedPythonTypes() const override
895 {
896 return QStringList() << QObject::tr( "str: as comma delimited list of x min, x max, y min, y max. E.g. '4,10,101,105'" )
897 << QObject::tr( "str: layer ID. Extent of layer is used." )
898 << QObject::tr( "str: layer name. Extent of layer is used." )
899 << QObject::tr( "str: layer source. Extent of layer is used." )
900 << QObject::tr( "QgsMapLayer: Extent of layer is used" )
901 << QObject::tr( "QgsProcessingFeatureSourceDefinition: Extent of source is used" )
902 << QStringLiteral( "QgsProperty" )
903 << QStringLiteral( "QgsRectangle" )
904 << QStringLiteral( "QgsReferencedRectangle" )
905 << QStringLiteral( "QgsGeometry: bounding box of geometry is used" );
906 }
907
908 QStringList acceptedStringValues() const override
909 {
910 return QStringList() << QObject::tr( "A comma delimited string of x min, x max, y min, y max. E.g. '4,10,101,105'" )
911 << QObject::tr( "Path to a layer. The extent of the layer is used." ) ;
912 }
913
914 QStringList acceptedParameterTypes() const override
915 {
916 return QStringList()
926 }
927
928 QStringList acceptedOutputTypes() const override
929 {
930 return QStringList()
936 }
937};
938
947{
948 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
949 {
950 return new QgsProcessingParameterMatrix( name );
951 }
952
953 QString description() const override
954 {
955 return QCoreApplication::translate( "Processing", "A table (matrix) parameter for processing algorithms." );
956 }
957
958 QString name() const override
959 {
960 return QCoreApplication::translate( "Processing", "Matrix" );
961 }
962
963 QString id() const override
964 {
965 return QStringLiteral( "matrix" );
966 }
967
968 QString pythonImportString() const override
969 {
970 return QStringLiteral( "from qgis.core import QgsProcessingParameterMatrix" );
971 }
972
973 QString className() const override
974 {
975 return QStringLiteral( "QgsProcessingParameterMatrix" );
976 }
977
978 QStringList acceptedPythonTypes() const override
979 {
980 return QStringList() << QObject::tr( "str: as comma delimited list of values" )
981 << QStringLiteral( "list" )
982 << QStringLiteral( "QgsProperty" );
983 }
984
985 QStringList acceptedStringValues() const override
986 {
987 return QStringList() << QObject::tr( "A comma delimited list of values" );
988 }
989
990 QStringList acceptedParameterTypes() const override
991 {
992 return QStringList()
994 }
995
996 QStringList acceptedOutputTypes() const override
997 {
998 return QStringList();
999 }
1000};
1001
1010{
1011 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
1012 {
1013 return new QgsProcessingParameterFile( name );
1014 }
1015
1016 QString description() const override
1017 {
1018 return QCoreApplication::translate( "Processing", "A file or folder parameter, for use with non-map layer file sources or folders." );
1019 }
1020
1021 QString name() const override
1022 {
1023 return QCoreApplication::translate( "Processing", "File/Folder" );
1024 }
1025
1026 QString id() const override
1027 {
1028 return QStringLiteral( "file" );
1029 }
1030
1031 QString pythonImportString() const override
1032 {
1033 return QStringLiteral( "from qgis.core import QgsProcessingParameterFile" );
1034 }
1035
1036 QString className() const override
1037 {
1038 return QStringLiteral( "QgsProcessingParameterFile" );
1039 }
1040
1041 QStringList acceptedPythonTypes() const override
1042 {
1043 return QStringList() << QStringLiteral( "str" )
1044 << QStringLiteral( "QgsProperty" );
1045 }
1046
1047 QStringList acceptedStringValues() const override
1048 {
1049 return QStringList() << QObject::tr( "Path to a file" );
1050 }
1051
1052 QStringList acceptedParameterTypes() const override
1053 {
1054 return QStringList()
1057 }
1058
1059 QStringList acceptedOutputTypes() const override
1060 {
1061 return QStringList() << QgsProcessingOutputFile::typeName()
1068 }
1069};
1070
1079{
1080 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
1081 {
1082 return new QgsProcessingParameterField( name );
1083 }
1084
1085 QString description() const override
1086 {
1087 return QCoreApplication::translate( "Processing", "A vector field parameter, for selecting an existing field from a vector source." );
1088 }
1089
1090 QString name() const override
1091 {
1092 return QCoreApplication::translate( "Processing", "Vector Field" );
1093 }
1094
1095 QString id() const override
1096 {
1097 return QStringLiteral( "field" );
1098 }
1099
1100 QString pythonImportString() const override
1101 {
1102 return QStringLiteral( "from qgis.core import QgsProcessingParameterField" );
1103 }
1104
1105 QString className() const override
1106 {
1107 return QStringLiteral( "QgsProcessingParameterField" );
1108 }
1109
1110 QStringList acceptedPythonTypes() const override
1111 {
1112 return QStringList() << QStringLiteral( "str" )
1113 << QStringLiteral( "QgsProperty" );
1114 }
1115
1116 QStringList acceptedStringValues() const override
1117 {
1118 return QStringList() << QObject::tr( "The name of an existing field" )
1119 << QObject::tr( "; delimited list of existing field names" );
1120 }
1121
1122 QStringList acceptedParameterTypes() const override
1123 {
1124 return QStringList()
1127 }
1128
1129 QStringList acceptedOutputTypes() const override
1130 {
1131 return QStringList()
1134 }
1135};
1136
1137
1167
1177{
1178 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
1179 {
1180 return new QgsProcessingParameterVectorDestination( name );
1181 }
1182
1183 QString description() const override
1184 {
1185 return QCoreApplication::translate( "Processing", "A vector layer destination parameter." );
1186 }
1187
1188 QString name() const override
1189 {
1190 return QCoreApplication::translate( "Processing", "Vector Destination" );
1191 }
1192
1193 QString id() const override
1194 {
1195 return QStringLiteral( "vectorDestination" );
1196 }
1197
1198 QString pythonImportString() const override
1199 {
1200 return QStringLiteral( "from qgis.core import QgsProcessingParameterVectorDestination" );
1201 }
1202
1203 QString className() const override
1204 {
1205 return QStringLiteral( "QgsProcessingParameterVectorDestination" );
1206 }
1207
1209 {
1212 return flags;
1213 }
1214
1215 QStringList acceptedPythonTypes() const override
1216 {
1217 return QStringList() << QStringLiteral( "str" )
1218 << QStringLiteral( "QgsProperty" )
1219 << QStringLiteral( "QgsProcessingOutputLayerDefinition" );
1220 }
1221
1222 QStringList acceptedStringValues() const override
1223 {
1224 return QStringList() << QObject::tr( "Path for new vector layer" );
1225 }
1226};
1227
1237{
1238 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
1239 {
1240 return new QgsProcessingParameterFileDestination( name );
1241 }
1242
1243 QString description() const override
1244 {
1245 return QCoreApplication::translate( "Processing", "A generic file based destination parameter." );
1246 }
1247
1248 QString name() const override
1249 {
1250 return QCoreApplication::translate( "Processing", "File Destination" );
1251 }
1252
1253 QString id() const override
1254 {
1255 return QStringLiteral( "fileDestination" );
1256 }
1257
1258 QString pythonImportString() const override
1259 {
1260 return QStringLiteral( "from qgis.core import QgsProcessingParameterFileDestination" );
1261 }
1262
1263 QString className() const override
1264 {
1265 return QStringLiteral( "QgsProcessingParameterFileDestination" );
1266 }
1267
1269 {
1272 return flags;
1273 }
1274
1275 QStringList acceptedPythonTypes() const override
1276 {
1277 return QStringList() << QStringLiteral( "str" )
1278 << QStringLiteral( "QgsProperty" );
1279 }
1280
1281 QStringList acceptedStringValues() const override
1282 {
1283 return QStringList() << QObject::tr( "Path for new file" );
1284 }
1285
1286 QStringList acceptedParameterTypes() const override
1287 {
1288 return QStringList()
1291 }
1292
1293 QStringList acceptedOutputTypes() const override
1294 {
1295 return QStringList() << QgsProcessingOutputFile::typeName()
1301 }
1302};
1303
1314{
1315 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
1316 {
1317 return new QgsProcessingParameterFolderDestination( name );
1318 }
1319
1320 QString description() const override
1321 {
1322 return QCoreApplication::translate( "Processing", "A folder destination parameter." );
1323 }
1324
1325 QString name() const override
1326 {
1327 return QCoreApplication::translate( "Processing", "Folder Destination" );
1328 }
1329
1330 QString id() const override
1331 {
1332 return QStringLiteral( "folderDestination" );
1333 }
1334
1335 QString pythonImportString() const override
1336 {
1337 return QStringLiteral( "from qgis.core import QgsProcessingParameterFolderDestination" );
1338 }
1339
1340 QString className() const override
1341 {
1342 return QStringLiteral( "QgsProcessingParameterFolderDestination" );
1343 }
1344
1346 {
1349 return flags;
1350 }
1351
1352 QStringList acceptedPythonTypes() const override
1353 {
1354 return QStringList() << QStringLiteral( "str" )
1355 << QStringLiteral( "QgsProperty" );
1356 }
1357
1358 QStringList acceptedStringValues() const override
1359 {
1360 return QStringList() << QObject::tr( "Path for an existing or new folder" );
1361 }
1362
1363 QStringList acceptedParameterTypes() const override
1364 {
1365 return QStringList()
1368 }
1369
1370 QStringList acceptedOutputTypes() const override
1371 {
1372 return QStringList() << QgsProcessingOutputFile::typeName()
1376 }
1377};
1378
1388{
1389 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
1390 {
1391 return new QgsProcessingParameterRasterDestination( name );
1392 }
1393
1394 QString description() const override
1395 {
1396 return QCoreApplication::translate( "Processing", "A raster layer destination parameter." );
1397 }
1398
1399 QString name() const override
1400 {
1401 return QCoreApplication::translate( "Processing", "Raster Destination" );
1402 }
1403
1404 QString id() const override
1405 {
1406 return QStringLiteral( "rasterDestination" );
1407 }
1408
1409 QString pythonImportString() const override
1410 {
1411 return QStringLiteral( "from qgis.core import QgsProcessingParameterRasterDestination" );
1412 }
1413
1414 QString className() const override
1415 {
1416 return QStringLiteral( "QgsProcessingParameterRasterDestination" );
1417 }
1418
1420 {
1423 return flags;
1424 }
1425
1426 QStringList acceptedPythonTypes() const override
1427 {
1428 return QStringList() << QStringLiteral( "str" )
1429 << QStringLiteral( "QgsProperty" )
1430 << QStringLiteral( "QgsProcessingOutputLayerDefinition" );
1431 }
1432
1433 QStringList acceptedStringValues() const override
1434 {
1435 return QStringList() << QObject::tr( "Path for new raster layer" );
1436 }
1437};
1438
1447{
1448 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
1449 {
1450 return new QgsProcessingParameterString( name );
1451 }
1452
1453 QString description() const override
1454 {
1455 return QCoreApplication::translate( "Processing", "A freeform string parameter." );
1456 }
1457
1458 QString name() const override
1459 {
1460 return QCoreApplication::translate( "Processing", "String" );
1461 }
1462
1463 QString id() const override
1464 {
1465 return QStringLiteral( "string" );
1466 }
1467
1468 QString pythonImportString() const override
1469 {
1470 return QStringLiteral( "from qgis.core import QgsProcessingParameterString" );
1471 }
1472
1473 QString className() const override
1474 {
1475 return QStringLiteral( "QgsProcessingParameterString" );
1476 }
1477
1478 QStringList acceptedPythonTypes() const override
1479 {
1480 return QStringList() << QStringLiteral( "str" )
1481 << QStringLiteral( "QgsProperty" );
1482 }
1483
1484 QStringList acceptedStringValues() const override
1485 {
1486 return QStringList() << QObject::tr( "String value" )
1487 << QObject::tr( "field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
1488 << QObject::tr( "expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
1489 }
1490
1491 QStringList acceptedParameterTypes() const override
1492 {
1493 return QStringList()
1507 }
1508
1509 QStringList acceptedOutputTypes() const override
1510 {
1511 return QStringList() << QgsProcessingOutputNumber::typeName()
1516 }
1517};
1518
1527{
1528 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
1529 {
1530 return new QgsProcessingParameterAuthConfig( name );
1531 }
1532
1533 QString description() const override
1534 {
1535 return QCoreApplication::translate( "Processing", "An authentication configuration parameter." );
1536 }
1537
1538 QString name() const override
1539 {
1540 return QCoreApplication::translate( "Processing", "Authentication Configuration" );
1541 }
1542
1543 QString id() const override
1544 {
1545 return QStringLiteral( "authcfg" );
1546 }
1547
1548 QString pythonImportString() const override
1549 {
1550 return QStringLiteral( "from qgis.core import QgsProcessingParameterAuthConfig" );
1551 }
1552
1553 QString className() const override
1554 {
1555 return QStringLiteral( "QgsProcessingParameterAuthConfig" );
1556 }
1557
1558 QStringList acceptedPythonTypes() const override
1559 {
1560 return QStringList() << QStringLiteral( "str" );
1561 }
1562
1563 QStringList acceptedStringValues() const override
1564 {
1565 return QStringList() << QObject::tr( "An existing QGIS authentication ID string" );
1566 }
1567
1568 QStringList acceptedParameterTypes() const override
1569 {
1570 return QStringList()
1574 }
1575
1576 QStringList acceptedOutputTypes() const override
1577 {
1578 return QStringList() << QgsProcessingOutputString::typeName()
1580 }
1581};
1582
1591{
1592 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
1593 {
1594 return new QgsProcessingParameterMultipleLayers( name );
1595 }
1596
1597 QString description() const override
1598 {
1599 return QCoreApplication::translate( "Processing", "An input allowing selection of multiple sources, including multiple map layers or file sources." );
1600 }
1601
1602 QString name() const override
1603 {
1604 return QCoreApplication::translate( "Processing", "Multiple Input" );
1605 }
1606
1607 QString id() const override
1608 {
1609 return QStringLiteral( "multilayer" );
1610 }
1611
1612 QString pythonImportString() const override
1613 {
1614 return QStringLiteral( "from qgis.core import QgsProcessingParameterMultipleLayers" );
1615 }
1616
1617 QString className() const override
1618 {
1619 return QStringLiteral( "QgsProcessingParameterMultipleLayers" );
1620 }
1621
1622 QStringList acceptedPythonTypes() const override
1623 {
1624 return QStringList() << QObject::tr( "list[str]: list of layer IDs" )
1625 << QObject::tr( "list[str]: list of layer names" )
1626 << QObject::tr( "list[str]: list of layer sources" )
1627 << QStringLiteral( "list[QgsMapLayer]" )
1628 << QStringLiteral( "QgsProperty" );
1629 }
1630
1631 QStringList acceptedParameterTypes() const override
1632 {
1633 return QStringList()
1642 }
1643 QStringList acceptedOutputTypes() const override
1644 {
1645 return QStringList()
1653 }
1654};
1655
1664{
1665 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
1666 {
1667 return new QgsProcessingParameterFeatureSource( name );
1668 }
1669
1670 QString description() const override
1671 {
1672 return QCoreApplication::translate( "Processing", "A vector feature parameter, e.g. for algorithms which operate on the features within a layer." );
1673 }
1674
1675 QString name() const override
1676 {
1677 return QCoreApplication::translate( "Processing", "Vector Features" );
1678 }
1679
1680 QString id() const override
1681 {
1682 return QStringLiteral( "source" );
1683 }
1684
1685 QString pythonImportString() const override
1686 {
1687 return QStringLiteral( "from qgis.core import QgsProcessingParameterFeatureSource" );
1688 }
1689
1690 QString className() const override
1691 {
1692 return QStringLiteral( "QgsProcessingParameterFeatureSource" );
1693 }
1694
1695 QStringList acceptedPythonTypes() const override
1696 {
1697 return QStringList() << QObject::tr( "str: layer ID" )
1698 << QObject::tr( "str: layer name" )
1699 << QObject::tr( "str: layer source" )
1700 << QStringLiteral( "QgsProcessingFeatureSourceDefinition" )
1701 << QStringLiteral( "QgsProperty" )
1702 << QStringLiteral( "QgsVectorLayer" );
1703 }
1704
1705 QStringList acceptedStringValues() const override
1706 {
1707 return QStringList() << QObject::tr( "Path to a vector layer" );
1708 }
1709
1710 QStringList acceptedParameterTypes() const override
1711 {
1712 return QStringList()
1718 }
1719
1720 QStringList acceptedOutputTypes() const override
1721 {
1722 return QStringList()
1728 }
1729
1730 QList<int> acceptedDataTypes( const QgsProcessingParameterDefinition *parameter ) const override
1731 {
1732 if ( const QgsProcessingParameterFeatureSource *param = dynamic_cast<const QgsProcessingParameterFeatureSource *>( parameter ) )
1733 return param->dataTypes();
1734 else
1735 return QList<int>();
1736 }
1737};
1738
1747{
1748 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
1749 {
1750 return new QgsProcessingParameterNumber( name );
1751 }
1752
1753 QString description() const override
1754 {
1755 return QCoreApplication::translate( "Processing", "A numeric parameter, including float or integer values." );
1756 }
1757
1758 QString name() const override
1759 {
1760 return QCoreApplication::translate( "Processing", "Number" );
1761 }
1762
1763 QString id() const override
1764 {
1765 return QStringLiteral( "number" );
1766 }
1767
1768 QString pythonImportString() const override
1769 {
1770 return QStringLiteral( "from qgis.core import QgsProcessingParameterNumber" );
1771 }
1772
1773 QString className() const override
1774 {
1775 return QStringLiteral( "QgsProcessingParameterNumber" );
1776 }
1777
1778 QStringList acceptedPythonTypes() const override
1779 {
1780 return QStringList() << QStringLiteral( "int" )
1781 << QStringLiteral( "float" )
1782 << QStringLiteral( "QgsProperty" );
1783 }
1784
1785 QStringList acceptedStringValues() const override
1786 {
1787 return QStringList() << QObject::tr( "A numeric value" )
1788 << QObject::tr( "field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
1789 << QObject::tr( "expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
1790 }
1791
1792 QStringList acceptedParameterTypes() const override
1793 {
1794 return QStringList()
1801 }
1802
1803 QStringList acceptedOutputTypes() const override
1804 {
1805 return QStringList() << QgsProcessingOutputNumber::typeName()
1808 }
1809};
1810
1819{
1820 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
1821 {
1822 return new QgsProcessingParameterDistance( name );
1823 }
1824
1825 QString description() const override
1826 {
1827 return QCoreApplication::translate( "Processing", "A numeric parameter representing a distance measure." );
1828 }
1829
1830 QString name() const override
1831 {
1832 return QCoreApplication::translate( "Processing", "Distance" );
1833 }
1834
1835 QString id() const override
1836 {
1837 return QStringLiteral( "distance" );
1838 }
1839
1840 QString pythonImportString() const override
1841 {
1842 return QStringLiteral( "from qgis.core import QgsProcessingParameterDistance" );
1843 }
1844
1845 QString className() const override
1846 {
1847 return QStringLiteral( "QgsProcessingParameterDistance" );
1848 }
1849
1850 QStringList acceptedPythonTypes() const override
1851 {
1852 return QStringList() << QStringLiteral( "int" )
1853 << QStringLiteral( "float" )
1854 << QStringLiteral( "QgsProperty" );
1855 }
1856
1857 QStringList acceptedStringValues() const override
1858 {
1859 return QStringList() << QObject::tr( "A numeric value" )
1860 << QObject::tr( "field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
1861 << QObject::tr( "expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
1862 }
1863};
1864
1865
1874{
1875 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
1876 {
1877 return new QgsProcessingParameterArea( name );
1878 }
1879
1880 QString description() const override
1881 {
1882 return QCoreApplication::translate( "Processing", "A numeric parameter representing an area measure." );
1883 }
1884
1885 QString name() const override
1886 {
1887 return QCoreApplication::translate( "Processing", "Area" );
1888 }
1889
1890 QString id() const override
1891 {
1892 return QStringLiteral( "area" );
1893 }
1894
1895 QString pythonImportString() const override
1896 {
1897 return QStringLiteral( "from qgis.core import QgsProcessingParameterArea" );
1898 }
1899
1900 QString className() const override
1901 {
1902 return QStringLiteral( "QgsProcessingParameterArea" );
1903 }
1904
1905 QStringList acceptedPythonTypes() const override
1906 {
1907 return QStringList() << QStringLiteral( "int" )
1908 << QStringLiteral( "float" )
1909 << QStringLiteral( "QgsProperty" );
1910 }
1911
1912 QStringList acceptedStringValues() const override
1913 {
1914 return QStringList() << QObject::tr( "A numeric value" )
1915 << QObject::tr( "field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
1916 << QObject::tr( "expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
1917 }
1918};
1919
1920
1929{
1930 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
1931 {
1932 return new QgsProcessingParameterVolume( name );
1933 }
1934
1935 QString description() const override
1936 {
1937 return QCoreApplication::translate( "Processing", "A numeric parameter representing a volume measure." );
1938 }
1939
1940 QString name() const override
1941 {
1942 return QCoreApplication::translate( "Processing", "Volume" );
1943 }
1944
1945 QString id() const override
1946 {
1947 return QStringLiteral( "volume" );
1948 }
1949
1950 QString pythonImportString() const override
1951 {
1952 return QStringLiteral( "from qgis.core import QgsProcessingParameterVolume" );
1953 }
1954
1955 QString className() const override
1956 {
1957 return QStringLiteral( "QgsProcessingParameterVolume" );
1958 }
1959
1960 QStringList acceptedPythonTypes() const override
1961 {
1962 return QStringList() << QStringLiteral( "int" )
1963 << QStringLiteral( "float" )
1964 << QStringLiteral( "QgsProperty" );
1965 }
1966
1967 QStringList acceptedStringValues() const override
1968 {
1969 return QStringList() << QObject::tr( "A numeric value" )
1970 << QObject::tr( "field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
1971 << QObject::tr( "expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
1972 }
1973};
1974
1975
1976
1985{
1986 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
1987 {
1988 return new QgsProcessingParameterDuration( name );
1989 }
1990
1991 QString description() const override
1992 {
1993 return QCoreApplication::translate( "Processing", "A numeric parameter representing a duration measure." );
1994 }
1995
1996 QString name() const override
1997 {
1998 return QCoreApplication::translate( "Processing", "Duration" );
1999 }
2000
2001 QString id() const override
2002 {
2003 return QStringLiteral( "duration" );
2004 }
2005
2006 QString pythonImportString() const override
2007 {
2008 return QStringLiteral( "from qgis.core import QgsProcessingParameterDuration" );
2009 }
2010
2011 QString className() const override
2012 {
2013 return QStringLiteral( "QgsProcessingParameterDuration" );
2014 }
2015
2016 QStringList acceptedPythonTypes() const override
2017 {
2018 return QStringList() << QStringLiteral( "int" )
2019 << QStringLiteral( "float" )
2020 << QStringLiteral( "QgsProperty" );
2021 }
2022
2023 QStringList acceptedStringValues() const override
2024 {
2025 return QStringList() << QObject::tr( "A numeric value (unit type set by algorithms)" )
2026 << QObject::tr( "field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
2027 << QObject::tr( "expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
2028 }
2029};
2030
2039{
2040 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
2041 {
2042 return new QgsProcessingParameterScale( name );
2043 }
2044
2045 QString description() const override
2046 {
2047 return QCoreApplication::translate( "Processing", "A numeric parameter representing a map scale." );
2048 }
2049
2050 QString name() const override
2051 {
2052 return QCoreApplication::translate( "Processing", "Scale" );
2053 }
2054
2055 QString id() const override
2056 {
2057 return QStringLiteral( "scale" );
2058 }
2059
2060 QString pythonImportString() const override
2061 {
2062 return QStringLiteral( "from qgis.core import QgsProcessingParameterScale" );
2063 }
2064
2065 QString className() const override
2066 {
2067 return QStringLiteral( "QgsProcessingParameterScale" );
2068 }
2069
2070 QStringList acceptedPythonTypes() const override
2071 {
2072 return QStringList() << QStringLiteral( "int: scale denominator" )
2073 << QStringLiteral( "float: scale denominator" )
2074 << QStringLiteral( "QgsProperty" );
2075 }
2076
2077 QStringList acceptedStringValues() const override
2078 {
2079 return QStringList() << QObject::tr( "A numeric value representing the scale denominator" );
2080 }
2081};
2082
2091{
2092 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
2093 {
2094 return new QgsProcessingParameterBand( name );
2095 }
2096
2097 QString description() const override
2098 {
2099 return QCoreApplication::translate( "Processing", "A raster band parameter, for selecting an existing band from a raster source." );
2100 }
2101
2102 QString name() const override
2103 {
2104 return QCoreApplication::translate( "Processing", "Raster Band" );
2105 }
2106
2107 QString id() const override
2108 {
2109 return QStringLiteral( "band" );
2110 }
2111
2112 QString pythonImportString() const override
2113 {
2114 return QStringLiteral( "from qgis.core import QgsProcessingParameterBand" );
2115 }
2116
2117 QString className() const override
2118 {
2119 return QStringLiteral( "QgsProcessingParameterBand" );
2120 }
2121
2122 QStringList acceptedPythonTypes() const override
2123 {
2124 return QStringList() << QStringLiteral( "int" )
2125 << QStringLiteral( "QgsProperty" );
2126 }
2127
2128 QStringList acceptedStringValues() const override
2129 {
2130 return QStringList() << QObject::tr( "Integer value representing an existing raster band number" );
2131 }
2132
2133 QStringList acceptedParameterTypes() const override
2134 {
2135 return QStringList()
2138 }
2139
2140 QStringList acceptedOutputTypes() const override
2141 {
2142 return QStringList()
2145 }
2146};
2147
2156{
2157 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
2158 {
2159 return new QgsProcessingParameterFeatureSink( name );
2160 }
2161
2163 {
2166 return flags;
2167 }
2168
2169 QString description() const override
2170 {
2171 return QCoreApplication::translate( "Processing", "A feature sink destination parameter." );
2172 }
2173
2174 QString name() const override
2175 {
2176 return QCoreApplication::translate( "Processing", "Feature Sink" );
2177 }
2178
2179 QString id() const override
2180 {
2181 return QStringLiteral( "sink" );
2182 }
2183
2184 QString pythonImportString() const override
2185 {
2186 return QStringLiteral( "from qgis.core import QgsProcessingParameterFeatureSink" );
2187 }
2188
2189 QString className() const override
2190 {
2191 return QStringLiteral( "QgsProcessingParameterFeatureSink" );
2192 }
2193
2194 QStringList acceptedPythonTypes() const override
2195 {
2196 return QStringList() << QObject::tr( "str: destination vector file, e.g. 'd:/test.shp'" )
2197 << QObject::tr( "str: 'memory:' to store result in temporary memory layer" )
2198 << QObject::tr( "str: using vector provider ID prefix and destination URI, e.g. 'postgres:…' to store result in PostGIS table" )
2199 << QStringLiteral( "QgsProcessingOutputLayerDefinition" )
2200 << QStringLiteral( "QgsProperty" );
2201 }
2202
2203 QStringList acceptedStringValues() const override
2204 {
2205 return QStringList() << QObject::tr( "Path for new vector layer" );
2206 }
2207};
2208
2217{
2218 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
2219 {
2220 return new QgsProcessingParameterLayout( name );
2221 }
2222
2223 QString description() const override
2224 {
2225 return QCoreApplication::translate( "Processing", "A print layout parameter." );
2226 }
2227
2228 QString name() const override
2229 {
2230 return QCoreApplication::translate( "Processing", "Print Layout" );
2231 }
2232
2233 QString id() const override
2234 {
2235 return QStringLiteral( "layout" );
2236 }
2237
2238 QString pythonImportString() const override
2239 {
2240 return QStringLiteral( "from qgis.core import QgsProcessingParameterLayout" );
2241 }
2242
2243 QString className() const override
2244 {
2245 return QStringLiteral( "QgsProcessingParameterLayout" );
2246 }
2247
2248 QStringList acceptedPythonTypes() const override
2249 {
2250 return QStringList() << QObject::tr( "str: name of print layout in current project" )
2251 << QStringLiteral( "QgsProperty" );
2252 }
2253
2254 QStringList acceptedStringValues() const override
2255 {
2256 return QStringList() << QObject::tr( "Name of print layout in current project" );
2257 }
2258
2259 QStringList acceptedParameterTypes() const override
2260 {
2261 return QStringList()
2264 }
2265
2266 QStringList acceptedOutputTypes() const override
2267 {
2268 return QStringList()
2271 }
2272};
2273
2282{
2283 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
2284 {
2285 return new QgsProcessingParameterLayoutItem( name );
2286 }
2287
2288 QString description() const override
2289 {
2290 return QCoreApplication::translate( "Processing", "A print layout item parameter." );
2291 }
2292
2293 QString name() const override
2294 {
2295 return QCoreApplication::translate( "Processing", "Print Layout Item" );
2296 }
2297
2298 QString id() const override
2299 {
2300 return QStringLiteral( "layoutitem" );
2301 }
2302
2303 QString pythonImportString() const override
2304 {
2305 return QStringLiteral( "from qgis.core import QgsProcessingParameterLayoutItem" );
2306 }
2307
2308 QString className() const override
2309 {
2310 return QStringLiteral( "QgsProcessingParameterLayoutItem" );
2311 }
2312
2313 QStringList acceptedPythonTypes() const override
2314 {
2315 return QStringList() << QObject::tr( "str: UUID of print layout item" )
2316 << QObject::tr( "str: id of print layout item" )
2317 << QStringLiteral( "QgsProperty" );
2318 }
2319
2320 QStringList acceptedStringValues() const override
2321 {
2322 return QStringList() << QObject::tr( "UUID or item id of layout item" );
2323 }
2324
2325 QStringList acceptedParameterTypes() const override
2326 {
2327 return QStringList()
2330 }
2331
2332 QStringList acceptedOutputTypes() const override
2333 {
2334 return QStringList()
2337 }
2338};
2339
2348{
2349 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
2350 {
2351 return new QgsProcessingParameterColor( name );
2352 }
2353
2354 QString description() const override
2355 {
2356 return QCoreApplication::translate( "Processing", "A color parameter." );
2357 }
2358
2359 QString name() const override
2360 {
2361 return QCoreApplication::translate( "Processing", "Color" );
2362 }
2363
2364 QString id() const override
2365 {
2366 return QStringLiteral( "color" );
2367 }
2368
2369 QString pythonImportString() const override
2370 {
2371 return QStringLiteral( "from qgis.core import QgsProcessingParameterColor" );
2372 }
2373
2374 QString className() const override
2375 {
2376 return QStringLiteral( "QgsProcessingParameterColor" );
2377 }
2378
2379 QStringList acceptedPythonTypes() const override
2380 {
2381 return QStringList() << QObject::tr( "str: string representation of color, e.g #ff0000 or rgba(200,100,50,0.8)" )
2382 << QStringLiteral( "QColor" )
2383 << QStringLiteral( "QgsProperty" );
2384 }
2385
2386 QStringList acceptedStringValues() const override
2387 {
2388 return QStringList() << QObject::tr( "String representation of color, e.g #ff0000 or rgba(200,100,50,0.8)" )
2389 << QObject::tr( "field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
2390 << QObject::tr( "expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
2391 }
2392
2393 QStringList acceptedParameterTypes() const override
2394 {
2395 return QStringList()
2398 }
2399
2400 QStringList acceptedOutputTypes() const override
2401 {
2402 return QStringList()
2405 }
2406};
2407
2416{
2417 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
2418 {
2420 }
2421
2422 QString description() const override
2423 {
2424 return QCoreApplication::translate( "Processing", "A coordinate operation parameter." );
2425 }
2426
2427 QString name() const override
2428 {
2429 return QCoreApplication::translate( "Processing", "Coordinate Operation" );
2430 }
2431
2432 QString id() const override
2433 {
2434 return QStringLiteral( "coordinateoperation" );
2435 }
2436
2437 QString pythonImportString() const override
2438 {
2439 return QStringLiteral( "from qgis.core import QgsProcessingParameterCoordinateOperation" );
2440 }
2441
2442 QString className() const override
2443 {
2444 return QStringLiteral( "QgsProcessingParameterCoordinateOperation" );
2445 }
2446
2447 QStringList acceptedPythonTypes() const override
2448 {
2449 return QStringList() << QObject::tr( "str: string representation of a Proj coordinate operation" );
2450 }
2451
2452 QStringList acceptedStringValues() const override
2453 {
2454 return QStringList() << QObject::tr( "String representation of Proj coordinate operation" );
2455 }
2456
2457 QStringList acceptedParameterTypes() const override
2458 {
2459 return QStringList()
2462 }
2463
2464 QStringList acceptedOutputTypes() const override
2465 {
2466 return QStringList()
2469 }
2470};
2471
2480{
2481 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
2482 {
2483 return new QgsProcessingParameterMapTheme( name );
2484 }
2485
2486 QString description() const override
2487 {
2488 return QCoreApplication::translate( "Processing", "A map theme parameter." );
2489 }
2490
2491 QString name() const override
2492 {
2493 return QCoreApplication::translate( "Processing", "Map Theme" );
2494 }
2495
2496 QString id() const override
2497 {
2498 return QStringLiteral( "maptheme" );
2499 }
2500
2501 QString pythonImportString() const override
2502 {
2503 return QStringLiteral( "from qgis.core import QgsProcessingParameterMapTheme" );
2504 }
2505
2506 QString className() const override
2507 {
2508 return QStringLiteral( "QgsProcessingParameterMapTheme" );
2509 }
2510
2511 QStringList acceptedPythonTypes() const override
2512 {
2513 return QStringList() << QObject::tr( "str: name of an existing map theme" )
2514 << QStringLiteral( "QgsProperty" );
2515 }
2516
2517 QStringList acceptedStringValues() const override
2518 {
2519 return QStringList() << QObject::tr( "Name of an existing map theme" );
2520 }
2521
2522 QStringList acceptedParameterTypes() const override
2523 {
2524 return QStringList()
2527 }
2528
2529 QStringList acceptedOutputTypes() const override
2530 {
2531 return QStringList()
2534 }
2535};
2536
2545{
2546 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
2547 {
2548 return new QgsProcessingParameterDateTime( name );
2549 }
2550
2551 QString description() const override
2552 {
2553 return QCoreApplication::translate( "Processing", "A datetime parameter, including datetime, date or time values." );
2554 }
2555
2556 QString name() const override
2557 {
2558 return QCoreApplication::translate( "Processing", "Datetime" );
2559 }
2560
2561 QString id() const override
2562 {
2563 return QStringLiteral( "datetime" );
2564 }
2565
2566 QString pythonImportString() const override
2567 {
2568 return QStringLiteral( "from qgis.core import QgsProcessingParameterDateTime" );
2569 }
2570
2571 QString className() const override
2572 {
2573 return QStringLiteral( "QgsProcessingParameterDateTime" );
2574 }
2575
2576 QStringList acceptedPythonTypes() const override
2577 {
2578 return QStringList() << QStringLiteral( "str" )
2579 << QStringLiteral( "QDateTime" )
2580 << QStringLiteral( "QDate" )
2581 << QStringLiteral( "QTime" )
2582 << QStringLiteral( "QgsProperty" );
2583 }
2584
2585 QStringList acceptedStringValues() const override
2586 {
2587 return QStringList() << QObject::tr( "A datetime value in ISO format" )
2588 << QObject::tr( "field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" )
2589 << QObject::tr( "expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" );
2590 }
2591
2592 QStringList acceptedParameterTypes() const override
2593 {
2594 return QStringList()
2597 }
2598
2599 QStringList acceptedOutputTypes() const override
2600 {
2601 return QStringList()
2604 }
2605};
2606
2615{
2616 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
2617 {
2618 return new QgsProcessingParameterProviderConnection( name, QString(), QString() );
2619 }
2620
2621 QString description() const override
2622 {
2623 return QCoreApplication::translate( "Processing", "A connection name parameter, for registered database connections." );
2624 }
2625
2626 QString name() const override
2627 {
2628 return QCoreApplication::translate( "Processing", "Connection Name" );
2629 }
2630
2631 QString id() const override
2632 {
2633 return QStringLiteral( "providerconnection" );
2634 }
2635
2636 QString pythonImportString() const override
2637 {
2638 return QStringLiteral( "from qgis.core import QgsProcessingParameterProviderConnection" );
2639 }
2640
2641 QString className() const override
2642 {
2643 return QStringLiteral( "QgsProcessingParameterProviderConnection" );
2644 }
2645
2646 QStringList acceptedPythonTypes() const override
2647 {
2648 return QStringList() << QStringLiteral( "str" )
2649 << QStringLiteral( "QgsProperty" );
2650 }
2651
2652 QStringList acceptedStringValues() const override
2653 {
2654 return QStringList() << QObject::tr( "Name of registered database connection" );
2655 }
2656
2657 QStringList acceptedParameterTypes() const override
2658 {
2659 return QStringList()
2663 }
2664
2665 QStringList acceptedOutputTypes() const override
2666 {
2667 return QStringList()
2670 }
2671};
2672
2681{
2682 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
2683 {
2684 return new QgsProcessingParameterDatabaseSchema( name, QString(), QString() );
2685 }
2686
2687 QString description() const override
2688 {
2689 return QCoreApplication::translate( "Processing", "A database schema parameter." );
2690 }
2691
2692 QString name() const override
2693 {
2694 return QCoreApplication::translate( "Processing", "Database Schema" );
2695 }
2696
2697 QString id() const override
2698 {
2699 return QStringLiteral( "databaseschema" );
2700 }
2701
2702 QString pythonImportString() const override
2703 {
2704 return QStringLiteral( "from qgis.core import QgsProcessingParameterDatabaseSchema" );
2705 }
2706
2707 QString className() const override
2708 {
2709 return QStringLiteral( "QgsProcessingParameterDatabaseSchema" );
2710 }
2711
2712 QStringList acceptedPythonTypes() const override
2713 {
2714 return QStringList() << QStringLiteral( "str" )
2715 << QStringLiteral( "QgsProperty" );
2716 }
2717
2718 QStringList acceptedStringValues() const override
2719 {
2720 return QStringList() << QObject::tr( "Name of existing database schema" );
2721 }
2722
2723 QStringList acceptedParameterTypes() const override
2724 {
2725 return QStringList()
2729 }
2730
2731 QStringList acceptedOutputTypes() const override
2732 {
2733 return QStringList()
2736 }
2737};
2738
2747{
2748 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
2749 {
2750 return new QgsProcessingParameterDatabaseTable( name, QString(), QString(), QString() );
2751 }
2752
2753 QString description() const override
2754 {
2755 return QCoreApplication::translate( "Processing", "A database table parameter." );
2756 }
2757
2758 QString name() const override
2759 {
2760 return QCoreApplication::translate( "Processing", "Database Table" );
2761 }
2762
2763 QString id() const override
2764 {
2765 return QStringLiteral( "databasetable" );
2766 }
2767
2768 QString pythonImportString() const override
2769 {
2770 return QStringLiteral( "from qgis.core import QgsProcessingParameterDatabaseTable" );
2771 }
2772
2773 QString className() const override
2774 {
2775 return QStringLiteral( "QgsProcessingParameterDatabaseTable" );
2776 }
2777
2778 QStringList acceptedPythonTypes() const override
2779 {
2780 return QStringList() << QStringLiteral( "str" )
2781 << QStringLiteral( "QgsProperty" );
2782 }
2783
2784 QStringList acceptedStringValues() const override
2785 {
2786 return QStringList() << QObject::tr( "Name of existing database table" );
2787 }
2788
2789 QStringList acceptedParameterTypes() const override
2790 {
2791 return QStringList()
2795 }
2796
2797 QStringList acceptedOutputTypes() const override
2798 {
2799 return QStringList()
2802 }
2803};
2804
2813{
2814 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
2815 {
2816 return new QgsProcessingParameterPointCloudLayer( name );
2817 }
2818
2819 QString description() const override
2820 {
2821 return QCoreApplication::translate( "Processing", "A point cloud layer parameter." );
2822 }
2823
2824 QString name() const override
2825 {
2826 return QCoreApplication::translate( "Processing", "Point Cloud Layer" );
2827 }
2828
2829 QString pythonImportString() const override
2830 {
2831 return QStringLiteral( "from qgis.core import QgsProcessingParameterPointCloudLayer" );
2832 }
2833
2834 QString className() const override
2835 {
2836 return QStringLiteral( "QgsProcessingParameterPointCloudLayer" );
2837 }
2838
2839 QString id() const override
2840 {
2841 return QStringLiteral( "pointcloud" );
2842 }
2843
2844 QStringList acceptedPythonTypes() const override
2845 {
2846 return QStringList() << QObject::tr( "str: layer ID" )
2847 << QObject::tr( "str: layer name" )
2848 << QObject::tr( "str: layer source" )
2849 << QStringLiteral( "QgsPointCloudLayer" );
2850 }
2851
2852 QStringList acceptedStringValues() const override
2853 {
2854 return QStringList() << QObject::tr( "Path to a point cloud layer" );
2855 }
2856
2857 QStringList acceptedParameterTypes() const override
2858 {
2859 return QStringList()
2864 }
2865
2866 QStringList acceptedOutputTypes() const override
2867 {
2868 return QStringList()
2874 }
2875};
2876
2885{
2886 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
2887 {
2888 return new QgsProcessingParameterAnnotationLayer( name );
2889 }
2890
2891 QString description() const override
2892 {
2893 return QCoreApplication::translate( "Processing", "An annotation layer parameter." );
2894 }
2895
2896 QString name() const override
2897 {
2898 return QCoreApplication::translate( "Processing", "Annotation Layer" );
2899 }
2900
2901 QString pythonImportString() const override
2902 {
2903 return QStringLiteral( "from qgis.core import QgsProcessingParameterAnnotationLayer" );
2904 }
2905
2906 QString className() const override
2907 {
2908 return QStringLiteral( "QgsProcessingParameterAnnotationLayer" );
2909 }
2910
2911 QString id() const override
2912 {
2913 return QStringLiteral( "annotation" );
2914 }
2915
2916 QStringList acceptedPythonTypes() const override
2917 {
2918 return QStringList() << QObject::tr( "str: layer ID" )
2919 << QObject::tr( "str: layer name" )
2920 << QObject::tr( "\"main\": main annotation layer for a project" )
2921 << QStringLiteral( "QgsAnnotationLayer" );
2922 }
2923
2924 QStringList acceptedStringValues() const override
2925 {
2926 return QStringList() << QObject::tr( "Layer ID for an annotation layer, or \"main\" for the main annotation layer in a project." );
2927 }
2928
2929 QStringList acceptedParameterTypes() const override
2930 {
2931 return QStringList()
2936 }
2937
2938 QStringList acceptedOutputTypes() const override
2939 {
2940 return QStringList()
2944 }
2945};
2946
2956{
2957 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
2958 {
2960 }
2961
2962 QString description() const override
2963 {
2964 return QCoreApplication::translate( "Processing", "A point cloud layer destination parameter." );
2965 }
2966
2967 QString name() const override
2968 {
2969 return QCoreApplication::translate( "Processing", "Point Cloud Destination" );
2970 }
2971
2972 QString id() const override
2973 {
2974 return QStringLiteral( "pointCloudDestination" );
2975 }
2976
2977 QString pythonImportString() const override
2978 {
2979 return QStringLiteral( "from qgis.core import QgsProcessingParameterPointCloudDestination" );
2980 }
2981
2982 QString className() const override
2983 {
2984 return QStringLiteral( "QgsProcessingParameterPointCloudDestination" );
2985 }
2986
2988 {
2991 return flags;
2992 }
2993
2994 QStringList acceptedPythonTypes() const override
2995 {
2996 return QStringList() << QStringLiteral( "str" )
2997 << QStringLiteral( "QgsProperty" )
2998 << QStringLiteral( "QgsProcessingOutputLayerDefinition" );
2999 }
3000
3001 QStringList acceptedStringValues() const override
3002 {
3003 return QStringList() << QObject::tr( "Path for new point cloud layer" );
3004 }
3005};
3006
3015{
3016 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
3017 {
3019 }
3020
3021 QString description() const override
3022 {
3023 return QCoreApplication::translate( "Processing", "A point cloud attribute parameter, for selecting an attribute from a point cloud source." );
3024 }
3025
3026 QString name() const override
3027 {
3028 return QCoreApplication::translate( "Processing", "Point Cloud Attribute" );
3029 }
3030
3031 QString id() const override
3032 {
3033 return QStringLiteral( "attribute" );
3034 }
3035
3036 QString pythonImportString() const override
3037 {
3038 return QStringLiteral( "from qgis.core import QgsProcessingParameterPointCloudAttribute" );
3039 }
3040
3041 QString className() const override
3042 {
3043 return QStringLiteral( "QgsProcessingParameterPointCloudAttribute" );
3044 }
3045
3046 QStringList acceptedPythonTypes() const override
3047 {
3048 return QStringList() << QStringLiteral( "str" )
3049 << QStringLiteral( "QgsProperty" );
3050 }
3051
3052 QStringList acceptedStringValues() const override
3053 {
3054 return QStringList() << QObject::tr( "The name of an attribute" )
3055 << QObject::tr( "; delimited list of attribute names" );
3056 }
3057
3058 QStringList acceptedParameterTypes() const override
3059 {
3060 return QStringList()
3063 }
3064
3065 QStringList acceptedOutputTypes() const override
3066 {
3067 return QStringList()
3070 }
3071};
3072
3082{
3083 QgsProcessingParameterDefinition *create( const QString &name ) const override SIP_FACTORY
3084 {
3086 }
3087
3088 QString description() const override
3089 {
3090 return QCoreApplication::translate( "Processing", "A vector tiles layer destination parameter." );
3091 }
3092
3093 QString name() const override
3094 {
3095 return QCoreApplication::translate( "Processing", "Vector Tile Destination" );
3096 }
3097
3098 QString id() const override
3099 {
3100 return QStringLiteral( "vectorTileDestination" );
3101 }
3102
3103 QString pythonImportString() const override
3104 {
3105 return QStringLiteral( "from qgis.core import QgsProcessingParameterVectorTileDestination" );
3106 }
3107
3108 QString className() const override
3109 {
3110 return QStringLiteral( "QgsProcessingParameterVectorTileDestination" );
3111 }
3112
3114 {
3117 return flags;
3118 }
3119
3120 QStringList acceptedPythonTypes() const override
3121 {
3122 return QStringList() << QStringLiteral( "str" )
3123 << QStringLiteral( "QgsProperty" )
3124 << QStringLiteral( "QgsProcessingOutputLayerDefinition" );
3125 }
3126
3127 QStringList acceptedStringValues() const override
3128 {
3129 return QStringList() << QObject::tr( "Path for new vector tile layer" );
3130 }
3131};
3132
3133#endif // QGSPROCESSINGPARAMETERTYPEIMPL_H
@ ExposeToModeler
Is this parameter available in the modeler. Is set to on by default.
QFlags< ProcessingParameterTypeFlag > ProcessingParameterTypeFlags
Flags which dictate the behavior of Processing parameter types.
Definition qgis.h:3617
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
static QString typeName()
Returns the type name for the output class.
An annotation layer parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A double numeric parameter for area values.
static QString typeName()
Returns the type name for the parameter class.
A string parameter for authentication configuration ID values.
static QString typeName()
Returns the type name for the parameter class.
A raster band parameter for Processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A boolean parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A color parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A coordinate operation parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A coordinate reference system parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A database schema parameter for processing algorithms, allowing users to select from existing schemas...
static QString typeName()
Returns the type name for the parameter class.
A database table name parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A datetime (or pure date or time) parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
Base class for the definition of processing parameters.
A double numeric parameter for distance values.
static QString typeName()
Returns the type name for the parameter class.
A double numeric parameter for duration values.
static QString typeName()
Returns the type name for the parameter class.
An enum based parameter for processing algorithms, allowing for selection from predefined values.
static QString typeName()
Returns the type name for the parameter class.
An expression parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A rectangular map extent parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A feature sink output for processing algorithms.
An input feature source (such as vector layers) parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A vector layer or feature source field parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A generic file based destination parameter, for specifying the destination path for a file (non-map l...
An input file or folder parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A folder destination parameter, for specifying the destination path for a folder created by the algor...
A geometry parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A print layout item parameter, allowing users to select a particular item from a print layout.
static QString typeName()
Returns the type name for the parameter class.
A print layout parameter, allowing users to select a print layout.
static QString typeName()
Returns the type name for the parameter class.
A map layer parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A map theme parameter for processing algorithms, allowing users to select an existing map theme from ...
A table (matrix) parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A mesh layer parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A parameter for processing algorithms which accepts multiple map layers.
static QString typeName()
Returns the type name for the parameter class.
A numeric parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A point cloud layer attribute parameter for Processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A point cloud layer destination parameter, for specifying the destination path for a point cloud laye...
A point cloud layer parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A point parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A data provider connection parameter for processing algorithms, allowing users to select from availab...
static QString typeName()
Returns the type name for the parameter class.
A numeric range parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A raster layer destination parameter, for specifying the destination path for a raster layer created ...
A raster layer parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A double numeric parameter for map scale values.
static QString typeName()
Returns the type name for the parameter class.
A string parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
An annotation layer parameter for processing algorithms.
An area parameter for processing algorithms.
An authentication configuration parameter for processing algorithms.
A raster band parameter for Processing algorithms.
A boolean parameter for processing algorithms.
A color parameter for Processing algorithms.
A coordinate operation parameter for Processing algorithms.
A crs parameter for processing algorithms.
A database schema name parameter for processing algorithms.
A database table name parameter for processing algorithms.
A datetime parameter for processing algorithms.
A common generic type for destination parameter, for specifying the destination path for a vector lay...
A distance parameter for processing algorithms.
A duration parameter for processing algorithms.
An enum based parameter for processing algorithms, allowing for selection from predefined values.
An expression parameter for processing algorithms.
A rectangular map extent parameter for processing algorithms.
A feature sink parameter for Processing algorithms.
An input feature source (such as vector layers) parameter for processing algorithms.
A vector layer or feature source field parameter for processing algorithms.
A generic file based destination parameter, for specifying the destination path for a file (non-map l...
An input file or folder parameter for processing algorithms.
A folder destination parameter, for specifying the destination path for a folder created by the algor...
A geometry parameter for processing algorithms.
A print layout item parameter for Processing algorithms.
A print layout parameter for Processing algorithms.
A generic map layer parameter for processing algorithms.
A map theme parameter for Processing algorithms.
A table (matrix) parameter for processing algorithms.
A mesh layer parameter for processing algorithms.
A parameter for processing algorithms which accepts multiple map layers.
A numeric parameter for processing algorithms.
A point cloud layer attribute parameter for Processing algorithms.
A pointcloud layer destination parameter, for specifying the destination path for a point cloud layer...
A point cloud layer parameter for processing algorithms.
A point parameter for processing algorithms.
A provider connection name parameter for processing algorithms.
A numeric range parameter for processing algorithms.
A raster layer destination parameter, for specifying the destination path for a raster layer created ...
A raster layer parameter for processing algorithms.
A scale parameter for processing algorithms.
A string parameter for processing algorithms.
A vector layer destination parameter, for specifying the destination path for a vector layer created ...
A vector layer parameter for processing algorithms.
A vector tile layer destination parameter, for specifying the destination path for a vector tile laye...
A volume parameter for processing algorithms.
Makes metadata of processing parameters available.
virtual QString name() const =0
A human readable and translatable short name for this parameter type.
virtual QStringList acceptedPythonTypes() const
Returns a list of the Python data types accepted as values for the parameter.
virtual QgsProcessingParameterDefinition * create(const QString &name) const =0
Creates a new parameter of this type.
virtual QString description() const =0
A human readable and translatable description for this parameter type.
virtual QStringList acceptedOutputTypes() const =0
Returns a list of compatible Processing output types for inputs for this parameter type.
virtual QString id() const =0
A static id for this type which will be used for storing this parameter type.
virtual QString className() const
Returns the corresponding class name for the parameter type.
virtual QList< int > acceptedDataTypes(const QgsProcessingParameterDefinition *parameter) const
Returns a list of compatible Processing data types for inputs for this parameter type for the specifi...
virtual QStringList acceptedParameterTypes() const =0
Returns a list of compatible Processing parameter types for inputs for this parameter type.
virtual Qgis::ProcessingParameterTypeFlags flags() const
Determines if this parameter is available in the modeler.
virtual QStringList acceptedStringValues() const
Returns a descriptive list of the possible string values acceptable for the parameter.
virtual QString pythonImportString() const
Returns a valid Python import string for importing the corresponding parameter type,...
A vector layer destination parameter, for specifying the destination path for a vector layer created ...
A vector layer (with or without geometry) parameter for processing algorithms.
static QString typeName()
Returns the type name for the parameter class.
A vector tile layer destination parameter, for specifying the destination path for a vector tile laye...
A double numeric parameter for volume values.
static QString typeName()
Returns the type name for the parameter class.
#define SIP_FACTORY
Definition qgis_sip.h:76