QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
processing
qgsprocessingparametertype.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsprocessingparametertype.cpp
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
#include "
qgsprocessingparametertype.h
"
19
20
QColor
QgsProcessingParameterType::defaultModelColor
()
21
{
22
return
QColor( 128, 128, 128 );
/* mid gray */
23
}
24
25
Qgis::ProcessingParameterTypeFlags
QgsProcessingParameterType::flags
()
const
26
{
27
return
Qgis::ProcessingParameterTypeFlag::ExposeToModeler
;
28
}
29
30
QVariantMap
QgsProcessingParameterType::metadata
()
const
31
{
32
return
QVariantMap();
33
}
34
35
QStringList
QgsProcessingParameterType::acceptedPythonTypes
()
const
36
{
37
return
QStringList();
38
}
39
40
QStringList
QgsProcessingParameterType::acceptedStringValues
()
const
41
{
42
return
QStringList();
43
}
44
45
QStringList
QgsProcessingParameterType::acceptedParameterTypes
()
const
46
{
47
return
QStringList();
48
}
49
50
QStringList
QgsProcessingParameterType::acceptedOutputTypes
()
const
51
{
52
return
QStringList();
53
}
54
55
QList<int>
QgsProcessingParameterType::acceptedDataTypes
(
const
QgsProcessingParameterDefinition
* )
const
56
{
57
return
QList<int>();
58
}
59
60
QColor
QgsProcessingParameterType::modelColor
()
const
61
{
62
return
defaultModelColor
();
63
}
Qgis::ProcessingParameterTypeFlag::ExposeToModeler
@ ExposeToModeler
Is this parameter available in the modeler. Is set to on by default.
Definition
qgis.h:4000
Qgis::ProcessingParameterTypeFlags
QFlags< ProcessingParameterTypeFlag > ProcessingParameterTypeFlags
Flags which dictate the behavior of Processing parameter types.
Definition
qgis.h:4014
QgsProcessingParameterDefinition
Base class for the definition of processing parameters.
Definition
qgsprocessingparameters.h:435
QgsProcessingParameterType::metadata
virtual QVariantMap metadata() const
Metadata for this parameter type.
Definition
qgsprocessingparametertype.cpp:30
QgsProcessingParameterType::acceptedPythonTypes
virtual QStringList acceptedPythonTypes() const
Returns a list of the Python data types accepted as values for the parameter.
Definition
qgsprocessingparametertype.cpp:35
QgsProcessingParameterType::acceptedOutputTypes
virtual QStringList acceptedOutputTypes() const =0
Returns a list of compatible Processing output types for inputs for this parameter type.
Definition
qgsprocessingparametertype.cpp:50
QgsProcessingParameterType::modelColor
virtual QColor modelColor() const
Returns the color to use for the parameter in model designer windows.
Definition
qgsprocessingparametertype.cpp:60
QgsProcessingParameterType::acceptedDataTypes
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...
Definition
qgsprocessingparametertype.cpp:55
QgsProcessingParameterType::acceptedParameterTypes
virtual QStringList acceptedParameterTypes() const =0
Returns a list of compatible Processing parameter types for inputs for this parameter type.
Definition
qgsprocessingparametertype.cpp:45
QgsProcessingParameterType::flags
virtual Qgis::ProcessingParameterTypeFlags flags() const
Determines if this parameter is available in the modeler.
Definition
qgsprocessingparametertype.cpp:25
QgsProcessingParameterType::acceptedStringValues
virtual QStringList acceptedStringValues() const
Returns a descriptive list of the possible string values acceptable for the parameter.
Definition
qgsprocessingparametertype.cpp:40
QgsProcessingParameterType::defaultModelColor
static QColor defaultModelColor()
Returns the default color for a processing parameter.
Definition
qgsprocessingparametertype.cpp:20
qgsprocessingparametertype.h
Generated on
for QGIS API Documentation by
1.17.0