Class: QgsProcessingModelOutput¶
Represents a final output created by the model.
Class Hierarchy¶
Base classes¶
Represents a component of a model algorithm.  | 
Methods
Returns the child algorithm ID from which this output is generated.  | 
|
Returns the child algorithm output name from which this output is generated.  | 
|
Returns the default value for the model output parameter.  | 
|
Returns   | 
|
Loads this output from a QVariantMap.  | 
|
Returns the model output name.  | 
|
Sets the child algorithm id from which this output is generated.  | 
|
Sets the child algorithm output name from which this output is generated.  | 
|
Sets the default value for the model output.  | 
|
Sets whether the output is mandatory.  | 
|
Sets the model output name.  | 
|
Saves this output to a QVariant.  | 
- class qgis.core.QgsProcessingModelOutput[source]¶
 Bases:
QgsProcessingModelComponent- __init__(name: str | None = '', description: str | None = '')
 Constructor for QgsProcessingModelOutput with the specified
nameanddescription.- Parameters:
 name (Optional[str] = '')
description (Optional[str] = '')
- __init__(a0: QgsProcessingModelOutput)
 - Parameters:
 
- childId(self) str[source]¶
 Returns the child algorithm ID from which this output is generated.
See also
- Return type:
 str
- childOutputName(self) str[source]¶
 Returns the child algorithm output name from which this output is generated.
See also
setOutputName()- Return type:
 str
- defaultValue(self) Any[source]¶
 Returns the default value for the model output parameter.
See also
Added in version 3.2.
- Return type:
 Any
- isMandatory(self) bool[source]¶
 Returns
Trueif the output is mandatory. This may override the associated child algorithm’s parameter optional status - e.g. allowing an optional output from an algorithm to be mandatory within a model.See also
Added in version 3.2.
- Return type:
 bool
- loadVariant(self, map: Dict[str, Any]) bool[source]¶
 Loads this output from a QVariantMap.
See also
- Parameters:
 map (Dict[str, Any])
- Return type:
 bool
- setChildId(self, id: str | None)[source]¶
 Sets the child algorithm
idfrom which this output is generated.See also
- Parameters:
 id (Optional[str])
- setChildOutputName(self, name: str | None)[source]¶
 Sets the child algorithm output
namefrom which this output is generated.See also
outputName()- Parameters:
 name (Optional[str])
- setDefaultValue(self, value: Any)[source]¶
 Sets the default value for the model output.
See also
Added in version 3.2.
- Parameters:
 value (Any)
- setMandatory(self, mandatory: bool)[source]¶
 Sets whether the output is
mandatory. This may override the associated child algorithm’s parameter optional status - e.g. allowing an optional output from an algorithm to be mandatory within a model.See also
Added in version 3.2.
- Parameters:
 mandatory (bool)
- setName(self, name: str | None)[source]¶
 Sets the model output
name.See also
- Parameters:
 name (Optional[str])