Class: QgsProcessingParameterMeshDatasetGroups

class qgis.core.QgsProcessingParameterMeshDatasetGroups(name: str, description: str = '', meshLayerParameterName: str = '', supportedDataType: object = QSet<int>(), optional: bool = False)

Bases: QgsProcessingParameterDefinition

Constructor

Parameters
  • name (str) – name of the parameter

  • description (str = '') – description of the parameter

  • meshLayerParameterName (str = '') – name of the associated mesh layer parameter

  • supportedDataType (object = QSet<int>()) – a set of QgsMeshDatasetGroupMetadata.DataType values for data types supported by the parameter

  • optional (bool = False) – whether the parameter is optional

QgsProcessingParameterMeshDatasetGroups(QgsProcessingParameterMeshDatasetGroups)

A parameter for processing algorithms that need a list of mesh dataset groups A valid value for this parameter is a list (QVariantList) of dataset groups index in the mesh layer scope Dataset group index can be evaluated with the method valueAsDatasetGroup()

Note

This parameter is dependent on a mesh layer parameter (see QgsProcessingParameterMeshLayer)

Methods

asPythonString

param outputType

checkValueIsAcceptable

param input

clone

rtype

QgsProcessingParameterDefinition

dependsOnOtherParameters

rtype

List[str]

isDataTypeSupported

Returns whether the data type is supported by the parameter

meshLayerParameterName

Returns the name of the mesh layer parameter

type

rtype

str

typeName

Returns the type name for the parameter class.

valueAsDatasetGroup

Returns the value as a list if dataset group indexes

valueAsPythonString

param value

asPythonString(self, outputType: QgsProcessing.PythonOutputType = QgsProcessing.PythonQgsProcessingAlgorithmSubclass) → str
Parameters

outputType (QgsProcessing.PythonOutputType = QgsProcessing.PythonQgsProcessingAlgorithmSubclass) –

Return type

str

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

bool

clone(self)QgsProcessingParameterDefinition
Return type

QgsProcessingParameterDefinition

dependsOnOtherParameters(self) → List[str]
Return type

List[str]

isDataTypeSupported(self, dataType: QgsMeshDatasetGroupMetadata.DataType) → bool

Returns whether the data type is supported by the parameter

Parameters

dataType (QgsMeshDatasetGroupMetadata.DataType) –

Return type

bool

meshLayerParameterName(self) → str

Returns the name of the mesh layer parameter

Return type

str

type(self) → str
Return type

str

typeName() → str

Returns the type name for the parameter class.

Return type

str

valueAsDatasetGroup(value: Any) → List[int]

Returns the value as a list if dataset group indexes

Parameters

value (Any) –

Return type

List[int]

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

str