Class: QgsProcessingParameterMeshLayer¶
- class qgis.core.QgsProcessingParameterMeshLayer¶
Bases:
QgsProcessingParameterDefinition
,QgsFileFilterGenerator
A mesh layer parameter for processing algorithms.
New in version 3.6.
QgsProcessingParameterMeshLayer(name: str, description: str = ‘’, defaultValue: Any = None, optional: bool = False) Constructor for QgsProcessingParameterMeshLayer.
QgsProcessingParameterMeshLayer(
QgsProcessingParameterMeshLayer
)Methods
- param input:
- rtype:
QgsProcessingParameterDefinition
- rtype:
str
Creates a new parameter using the definition from a script code.
- rtype:
str
Returns the type name for the parameter class.
- param value:
- param value:
- param value:
- checkValueIsAcceptable(self, input: Any, context: QgsProcessingContext = None) bool ¶
- Parameters:
input (Any) –
context (
QgsProcessingContext
= None) –
- Return type:
bool
- clone(self) QgsProcessingParameterDefinition ¶
- Return type:
- createFileFilter(self) str ¶
- Return type:
str
- fromScriptCode(name: str, description: str, isOptional: bool, definition: str) QgsProcessingParameterMeshLayer ¶
Creates a new parameter using the definition from a script code.
- Parameters:
name (str) –
description (str) –
isOptional (bool) –
definition (str) –
- Return type:
- type(self) str ¶
- Return type:
str
- typeName() str ¶
Returns the type name for the parameter class.
- Return type:
str
- valueAsJsonObject(self, value: Any, context: QgsProcessingContext) Any ¶
- Parameters:
value (Any) –
context (QgsProcessingContext) –
- Return type:
Any
- valueAsPythonString(self, value: Any, context: QgsProcessingContext) str ¶
- Parameters:
value (Any) –
context (QgsProcessingContext) –
- Return type:
str
- valueAsString(self, value: Any, context: QgsProcessingContext) Tuple[str, bool] ¶
- Parameters:
value (Any) –
context (QgsProcessingContext) –
- Return type:
Tuple[str, bool]