QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
processing
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"
23
#include "
qgssettingsentryimpl.h
"
24
#include "
qgssettingstree.h
"
25
26
#include <QString>
27
28
using namespace
Qt::StringLiterals;
29
30
//
31
// Output definitions
32
//
33
42
43
class
CORE_EXPORT
QgsProcessing
44
{
45
Q_GADGET
46
47
public
:
49
enum class
PythonOutputType
SIP_MONKEYPATCH_SCOPEENUM
50
{
51
PythonQgsProcessingAlgorithmSubclass,
52
};
53
Q_ENUM( PythonOutputType )
54
55
60
enum class
LayerOptionsFlag
:
int
SIP_ENUM_BASETYPE
( IntFlag )
61
{
62
SkipIndexGeneration = 1 << 0,
63
};
64
Q_ENUM( LayerOptionsFlag )
65
Q_DECLARE_FLAGS(
LayerOptionsFlags
,
LayerOptionsFlag
)
66
Q_FLAG(
LayerOptionsFlags
)
67
73
static QString
sourceTypeToString
(
Qgis
::ProcessingSourceType type )
74
{
75
switch
( type )
76
{
77
case
Qgis::ProcessingSourceType::MapLayer
:
78
return
u
"TypeMapLayer"
_s;
79
case
Qgis::ProcessingSourceType::VectorAnyGeometry
:
80
return
u
"TypeVectorAnyGeometry"
_s;
81
case
Qgis::ProcessingSourceType::VectorPoint
:
82
return
u
"TypeVectorPoint"
_s;
83
case
Qgis::ProcessingSourceType::VectorLine
:
84
return
u
"TypeVectorLine"
_s;
85
case
Qgis::ProcessingSourceType::VectorPolygon
:
86
return
u
"TypeVectorPolygon"
_s;
87
case
Qgis::ProcessingSourceType::Raster
:
88
return
u
"TypeRaster"
_s;
89
case
Qgis::ProcessingSourceType::File
:
90
return
u
"TypeFile"
_s;
91
case
Qgis::ProcessingSourceType::Vector
:
92
return
u
"TypeVector"
_s;
93
case
Qgis::ProcessingSourceType::Mesh
:
94
return
u
"TypeMesh"
_s;
95
case
Qgis::ProcessingSourceType::Plugin
:
96
return
u
"TypePlugin"
_s;
97
case
Qgis::ProcessingSourceType::PointCloud
:
98
return
u
"TypePointCloud"
_s;
99
case
Qgis::ProcessingSourceType::Annotation
:
100
return
u
"TypeAnnotation"
_s;
101
case
Qgis::ProcessingSourceType::VectorTile
:
102
return
u
"TypeVectorTile"
_s;
103
case
Qgis::ProcessingSourceType::TiledScene
:
104
return
u
"TiledScene"
_s;
105
}
106
return
QString();
107
}
108
114
static
QString documentationFlagToString(
Qgis::ProcessingAlgorithmDocumentationFlag
flag );
115
121
static
const
QString
TEMPORARY_OUTPUT
;
122
128
static
const
QString
MODEL_PROVIDER_ID
;
129
135
static
const
QString
PROJECT_PROVIDER_ID
;
136
137
#ifndef SIP_RUN
138
static
inline
QgsSettingsTreeNode
*
sTreeConfiguration
=
QgsSettingsTree::sTreeQgis
->createChildNode( u
"configuration"
_s );
139
141
static
const
QgsSettingsEntryBool
*
settingsPreferFilenameAsLayerName
;
143
static
const
QgsSettingsEntryString
*
settingsTempPath
;
145
static
const
QgsSettingsEntryString
*
settingsDefaultOutputVectorLayerExt
;
147
static
const
QgsSettingsEntryString
*
settingsDefaultOutputRasterLayerFormat
;
149
static
const
QgsSettingsEntryVariant
*
settingsDefaultGuiParam
;
150
#endif
151
};
152
153
#endif
// QGSPROCESSING_H
Qgis
Provides global constants and enumerations for use throughout the application.
Definition
qgis.h:62
Qgis::ProcessingSourceType::File
@ File
Files (i.e. non map layer sources, such as text files).
Definition
qgis.h:3776
Qgis::ProcessingSourceType::Plugin
@ Plugin
Plugin layers.
Definition
qgis.h:3779
Qgis::ProcessingSourceType::TiledScene
@ TiledScene
Tiled scene layers.
Definition
qgis.h:3783
Qgis::ProcessingSourceType::Annotation
@ Annotation
Annotation layers.
Definition
qgis.h:3781
Qgis::ProcessingSourceType::Vector
@ Vector
Tables (i.e. vector layers with or without geometry). When used for a sink this indicates the sink ha...
Definition
qgis.h:3777
Qgis::ProcessingSourceType::VectorTile
@ VectorTile
Vector tile layers.
Definition
qgis.h:3782
Qgis::ProcessingSourceType::MapLayer
@ MapLayer
Any map layer type (raster, vector, mesh, point cloud, annotation or plugin layer).
Definition
qgis.h:3770
Qgis::ProcessingSourceType::Mesh
@ Mesh
Mesh layers.
Definition
qgis.h:3778
Qgis::ProcessingSourceType::Raster
@ Raster
Raster layers.
Definition
qgis.h:3775
Qgis::ProcessingSourceType::VectorAnyGeometry
@ VectorAnyGeometry
Any vector layer with geometry.
Definition
qgis.h:3771
Qgis::ProcessingSourceType::VectorPoint
@ VectorPoint
Vector point layers.
Definition
qgis.h:3772
Qgis::ProcessingSourceType::VectorPolygon
@ VectorPolygon
Vector polygon layers.
Definition
qgis.h:3774
Qgis::ProcessingSourceType::VectorLine
@ VectorLine
Vector line layers.
Definition
qgis.h:3773
Qgis::ProcessingSourceType::PointCloud
@ PointCloud
Point cloud layers.
Definition
qgis.h:3780
Qgis::ProcessingAlgorithmDocumentationFlag
ProcessingAlgorithmDocumentationFlag
Flags describing algorithm behavior for documentation purposes.
Definition
qgis.h:3857
QgsProcessing
Contains enumerations and other constants for use in processing algorithms and parameters.
Definition
qgsprocessing.h:44
QgsProcessing::settingsDefaultOutputRasterLayerFormat
static const QgsSettingsEntryString * settingsDefaultOutputRasterLayerFormat
Settings entry default output raster layer format.
Definition
qgsprocessing.h:147
QgsProcessing::LayerOptionsFlags
QFlags< LayerOptionsFlag > LayerOptionsFlags
Definition
qgsprocessing.h:65
QgsProcessing::MODEL_PROVIDER_ID
static const QString MODEL_PROVIDER_ID
Constant used for the model provider's ID.
Definition
qgsprocessing.h:128
QgsProcessing::settingsTempPath
static const QgsSettingsEntryString * settingsTempPath
Settings entry temp path.
Definition
qgsprocessing.h:143
QgsProcessing::TEMPORARY_OUTPUT
static const QString TEMPORARY_OUTPUT
Constant used to indicate that a Processing algorithm output should be a temporary layer/file.
Definition
qgsprocessing.h:121
QgsProcessing::settingsPreferFilenameAsLayerName
static const QgsSettingsEntryBool * settingsPreferFilenameAsLayerName
Settings entry prefer filename as layer name.
Definition
qgsprocessing.h:141
QgsProcessing::sTreeConfiguration
static QgsSettingsTreeNode * sTreeConfiguration
Definition
qgsprocessing.h:138
QgsProcessing::settingsDefaultGuiParam
static const QgsSettingsEntryVariant * settingsDefaultGuiParam
Settings entry default GUI parameter value (per algorithm id and parameter name).
Definition
qgsprocessing.h:149
QgsProcessing::PythonOutputType
PythonOutputType
Available Python output types.
Definition
qgsprocessing.h:50
QgsProcessing::settingsDefaultOutputVectorLayerExt
static const QgsSettingsEntryString * settingsDefaultOutputVectorLayerExt
Settings entry default output vector layer ext.
Definition
qgsprocessing.h:145
QgsProcessing::sourceTypeToString
static QString sourceTypeToString(Qgis::ProcessingSourceType type)
Converts a source type to a string representation.
Definition
qgsprocessing.h:73
QgsProcessing::LayerOptionsFlag
LayerOptionsFlag
Layer options flags.
Definition
qgsprocessing.h:61
QgsProcessing::PROJECT_PROVIDER_ID
static const QString PROJECT_PROVIDER_ID
Constant used for the project model provider's ID.
Definition
qgsprocessing.h:135
QgsSettingsEntryBool
A boolean settings entry.
Definition
qgssettingsentryimpl.h:298
QgsSettingsEntryString
A string settings entry.
Definition
qgssettingsentryimpl.h:123
QgsSettingsEntryVariant
A variant settings entry.
Definition
qgssettingsentryimpl.h:29
QgsSettingsTreeNode
A tree node for the settings tree to help organizing and introspecting the tree.
Definition
qgssettingstreenode.h:48
QgsSettingsTree::sTreeQgis
static QgsSettingsTreeNode * sTreeQgis
Definition
qgssettingstree.h:70
qgis.h
SIP_ENUM_BASETYPE
#define SIP_ENUM_BASETYPE(type)
Definition
qgis_sip.h:277
SIP_MONKEYPATCH_SCOPEENUM
#define SIP_MONKEYPATCH_SCOPEENUM
Definition
qgis_sip.h:269
qgssettingsentryimpl.h
qgssettingstree.h
Generated on
for QGIS API Documentation by
1.17.0