QGIS API Documentation 3.99.0-Master (a8882ad4560)
Loading...
Searching...
No Matches
qgsprocessing.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsprocessing.h
3 ---------------
4 begin : July 2017
5 copyright : (C) 2017 by Nyall Dawson
6 email : nyall dot dawson at gmail dot com
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 QGSPROCESSING_H
19#define QGSPROCESSING_H
20
21#include "qgis.h"
22#include "qgis_core.h"
24#include "qgssettingstree.h"
25
26#include <QString>
27
28//
29// Output definitions
30//
31
40
41class CORE_EXPORT QgsProcessing
42{
43 Q_GADGET
44
45 public:
46
49 {
50 PythonQgsProcessingAlgorithmSubclass,
51 };
52 Q_ENUM( PythonOutputType )
53
54
59 enum class LayerOptionsFlag : int SIP_ENUM_BASETYPE( IntFlag )
60 {
61 SkipIndexGeneration = 1 << 0,
62 };
63 Q_ENUM( LayerOptionsFlag )
65 Q_FLAG( LayerOptionsFlags )
66
72 static QString sourceTypeToString( Qgis::ProcessingSourceType type )
73 {
74 switch ( type )
75 {
77 return u"TypeMapLayer"_s;
79 return u"TypeVectorAnyGeometry"_s;
81 return u"TypeVectorPoint"_s;
83 return u"TypeVectorLine"_s;
85 return u"TypeVectorPolygon"_s;
87 return u"TypeRaster"_s;
89 return u"TypeFile"_s;
91 return u"TypeVector"_s;
93 return u"TypeMesh"_s;
95 return u"TypePlugin"_s;
97 return u"TypePointCloud"_s;
99 return u"TypeAnnotation"_s;
101 return u"TypeVectorTile"_s;
103 return u"TiledScene"_s;
104 }
105 return QString();
106 }
107
113 static QString documentationFlagToString( Qgis::ProcessingAlgorithmDocumentationFlag flag );
114
120 static const QString TEMPORARY_OUTPUT;
121
122#ifndef SIP_RUN
123 static inline QgsSettingsTreeNode *sTreeConfiguration = QgsSettingsTree::sTreeQgis->createChildNode( u"configuration"_s );
124
133#endif
134};
135
136#endif // QGSPROCESSING_H
Provides global constants and enumerations for use throughout the application.
Definition qgis.h:59
@ File
Files (i.e. non map layer sources, such as text files).
Definition qgis.h:3585
@ Plugin
Plugin layers.
Definition qgis.h:3588
@ TiledScene
Tiled scene layers.
Definition qgis.h:3592
@ Annotation
Annotation layers.
Definition qgis.h:3590
@ Vector
Tables (i.e. vector layers with or without geometry). When used for a sink this indicates the sink ha...
Definition qgis.h:3586
@ VectorTile
Vector tile layers.
Definition qgis.h:3591
@ MapLayer
Any map layer type (raster, vector, mesh, point cloud, annotation or plugin layer).
Definition qgis.h:3579
@ Mesh
Mesh layers.
Definition qgis.h:3587
@ Raster
Raster layers.
Definition qgis.h:3584
@ VectorAnyGeometry
Any vector layer with geometry.
Definition qgis.h:3580
@ VectorPoint
Vector point layers.
Definition qgis.h:3581
@ VectorPolygon
Vector polygon layers.
Definition qgis.h:3583
@ VectorLine
Vector line layers.
Definition qgis.h:3582
@ PointCloud
Point cloud layers.
Definition qgis.h:3589
ProcessingAlgorithmDocumentationFlag
Flags describing algorithm behavior for documentation purposes.
Definition qgis.h:3665
Contains enumerations and other constants for use in processing algorithms and parameters.
static const QgsSettingsEntryString * settingsDefaultOutputRasterLayerFormat
Settings entry default output raster layer format.
QFlags< LayerOptionsFlag > LayerOptionsFlags
static const QgsSettingsEntryString * settingsTempPath
Settings entry temp path.
static const QString TEMPORARY_OUTPUT
Constant used to indicate that a Processing algorithm output should be a temporary layer/file.
static const QgsSettingsEntryBool * settingsPreferFilenameAsLayerName
Settings entry prefer filename as layer name.
static QgsSettingsTreeNode * sTreeConfiguration
PythonOutputType
Available Python output types.
static const QgsSettingsEntryString * settingsDefaultOutputVectorLayerExt
Settings entry default output vector layer ext.
static QString sourceTypeToString(Qgis::ProcessingSourceType type)
Converts a source type to a string representation.
LayerOptionsFlag
Layer options flags.
A boolean settings entry.
A string settings entry.
A tree node for the settings tree to help organizing and introspecting the tree.
static QgsSettingsTreeNode * sTreeQgis
#define SIP_ENUM_BASETYPE(type)
Definition qgis_sip.h:275
#define SIP_MONKEYPATCH_SCOPEENUM
Definition qgis_sip.h:267