QGIS API Documentation 3.99.0-Master (26c88405ac0)
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 QStringLiteral( "TypeMapLayer" );
79 return QStringLiteral( "TypeVectorAnyGeometry" );
81 return QStringLiteral( "TypeVectorPoint" );
83 return QStringLiteral( "TypeVectorLine" );
85 return QStringLiteral( "TypeVectorPolygon" );
87 return QStringLiteral( "TypeRaster" );
89 return QStringLiteral( "TypeFile" );
91 return QStringLiteral( "TypeVector" );
93 return QStringLiteral( "TypeMesh" );
95 return QStringLiteral( "TypePlugin" );
97 return QStringLiteral( "TypePointCloud" );
99 return QStringLiteral( "TypeAnnotation" );
101 return QStringLiteral( "TypeVectorTile" );
103 return QStringLiteral( "TiledScene" );
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( QStringLiteral( "configuration" ) );
124
133#endif
134};
135
136#endif // QGSPROCESSING_H
Provides global constants and enumerations for use throughout the application.
Definition qgis.h:56
@ File
Files (i.e. non map layer sources, such as text files).
Definition qgis.h:3538
@ Plugin
Plugin layers.
Definition qgis.h:3541
@ TiledScene
Tiled scene layers.
Definition qgis.h:3545
@ Annotation
Annotation layers.
Definition qgis.h:3543
@ Vector
Tables (i.e. vector layers with or without geometry). When used for a sink this indicates the sink ha...
Definition qgis.h:3539
@ VectorTile
Vector tile layers.
Definition qgis.h:3544
@ MapLayer
Any map layer type (raster, vector, mesh, point cloud, annotation or plugin layer).
Definition qgis.h:3532
@ Mesh
Mesh layers.
Definition qgis.h:3540
@ Raster
Raster layers.
Definition qgis.h:3537
@ VectorAnyGeometry
Any vector layer with geometry.
Definition qgis.h:3533
@ VectorPoint
Vector point layers.
Definition qgis.h:3534
@ VectorPolygon
Vector polygon layers.
Definition qgis.h:3536
@ VectorLine
Vector line layers.
Definition qgis.h:3535
@ PointCloud
Point cloud layers.
Definition qgis.h:3542
ProcessingAlgorithmDocumentationFlag
Flags describing algorithm behavior for documentation purposes.
Definition qgis.h:3618
Contains enumerations and other constants for use in processing algorithms and parameters.
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 * settingsDefaultOutputRasterLayerExt
Settings entry default output raster layer ext.
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