QGIS API Documentation 3.43.0-Master (ac9f54ad1f7)
|
Makes metadata of processing parameters available. More...
#include <qgsprocessingparametertype.h>
Public Member Functions | |
virtual | ~QgsProcessingParameterType ()=default |
virtual QList< int > | acceptedDataTypes (const QgsProcessingParameterDefinition *parameter) const |
Returns a list of compatible Processing data types for inputs for this parameter type for the specified parameter. | |
virtual QStringList | acceptedOutputTypes () const =0 |
Returns a list of compatible Processing output types for inputs for this parameter type. | |
virtual QStringList | acceptedParameterTypes () const =0 |
Returns a list of compatible Processing parameter types for inputs for this parameter type. | |
virtual QStringList | acceptedPythonTypes () const |
Returns a list of the Python data types accepted as values for the parameter. | |
virtual QStringList | acceptedStringValues () const |
Returns a descriptive list of the possible string values acceptable for the parameter. | |
virtual QString | className () const |
Returns the corresponding class name for the parameter type. | |
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 Qgis::ProcessingParameterTypeFlags | flags () const |
Determines if this parameter is available in the modeler. | |
virtual QString | id () const =0 |
A static id for this type which will be used for storing this parameter type. | |
virtual QVariantMap | metadata () const |
Metadata for this parameter type. | |
virtual QString | name () const =0 |
A human readable and translatable short name for this parameter type. | |
virtual QString | pythonImportString () const |
Returns a valid Python import string for importing the corresponding parameter type, e.g. | |
Makes metadata of processing parameters available.
Definition at line 33 of file qgsprocessingparametertype.h.
|
virtualdefault |
|
virtual |
Returns a list of compatible Processing data types for inputs for this parameter type for the specified parameter.
In order to determine the available sources for the parameter in a model the types returned by this method are checked. The returned list corresponds to the various available values from QgsProcessing::SourceType.
Subclasses should return a list of all QgsProcessing::SourceType values which can be used as values for the parameter.
Definition at line 50 of file qgsprocessingparametertype.cpp.
|
pure virtual |
Returns a list of compatible Processing output types for inputs for this parameter type.
In order to determine the available sources for the parameter in a model the types returned by this method are checked. The returned list corresponds to the various available values for QgsProcessingOutputDefinition::type().
Subclasses should return a list of all QgsProcessingOutputDefinition::type() values which can be used as values for the parameter.
Definition at line 45 of file qgsprocessingparametertype.cpp.
|
pure virtual |
Returns a list of compatible Processing parameter types for inputs for this parameter type.
In order to determine the available sources for the parameter in a model the types returned by this method are checked. The returned list corresponds to the various available values for QgsProcessingParameterDefinition::type().
Subclasses should return a list of all QgsProcessingParameterDefinition::type() values which can be used as input values for the parameter.
Definition at line 40 of file qgsprocessingparametertype.cpp.
|
virtual |
Returns a list of the Python data types accepted as values for the parameter.
E.g. "str", "QgsVectorLayer", "QgsMapLayer", etc.
These values should should match the Python types exactly (e.g. "str" not "string", "bool" not "boolean"). Extra explanatory help can be used (which must be translated), eg "str: as comma delimited list of numbers".
Definition at line 30 of file qgsprocessingparametertype.cpp.
|
virtual |
Returns a descriptive list of the possible string values acceptable for the parameter.
E.g. for a QgsProcessingParameterVectorLayer this may include "Path to a vector layer", for QgsProcessingParameterBoolean "1 for true, 0 for false" etc.
Extra explanatory help can be used (which must be translated), eg "a comma delimited list of numbers".
Definition at line 35 of file qgsprocessingparametertype.cpp.
|
inlinevirtual |
Returns the corresponding class name for the parameter type.
Definition at line 76 of file qgsprocessingparametertype.h.
|
pure virtual |
Creates a new parameter of this type.
|
pure virtual |
A human readable and translatable description for this parameter type.
This can be a longer description suitable for tooltips and other elements that give the user context for a given parameter.
|
virtual |
Determines if this parameter is available in the modeler.
The default implementation returns true
.
Definition at line 20 of file qgsprocessingparametertype.cpp.
|
pure virtual |
A static id for this type which will be used for storing this parameter type.
|
virtual |
Metadata for this parameter type.
Can be used for example to define custom widgets. The default implementation returns an empty map.
Definition at line 25 of file qgsprocessingparametertype.cpp.
|
pure virtual |
A human readable and translatable short name for this parameter type.
This will be used in comboboxes and list widgets.
|
inlinevirtual |
Returns a valid Python import string for importing the corresponding parameter type, e.g.
"from qgis.core import QgsProcessingParameterBoolean".
Definition at line 66 of file qgsprocessingparametertype.h.