Class: QgsProcessingParameterMeshLayer

class qgis.core.QgsProcessingParameterMeshLayer(name: str, description: str = '', defaultValue: Any = None, optional: bool = False)

Bases: QgsProcessingParameterDefinition, QgsFileFilterGenerator

Constructor for QgsProcessingParameterMeshLayer.

QgsProcessingParameterMeshLayer(QgsProcessingParameterMeshLayer)

A mesh layer parameter for processing algorithms.

New in version 3.6.

Parameters
  • name (str) –

  • description (str = '') –

  • defaultValue (Any = None) –

  • optional

checkValueIsAcceptable(self, input: Any, context: QgsProcessingContext = None)bool
Parameters
Return type

bool

clone(self)QgsProcessingParameterDefinition
Return type

QgsProcessingParameterDefinition

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

QgsProcessingParameterMeshLayer

type(self)str
Return type

str

typeName()str

Returns the type name for the parameter class.

Return type

str

valueAsPythonString(self, value: Any, context: QgsProcessingContext)str
Parameters
Return type

str