Class: QgsProcessingParameterReliefColors¶
A parameter for raster relief colors.
Added in version 4.2.
List of all members, including inherited members
Class Hierarchy¶
Base classes¶
A string parameter for processing algorithms. |
|
Base class for the definition of processing parameters. |
Constructor
Methods
Returns the linked parent layer parameter name. |
|
Returns the parameter value interpreted as a list of raster relief colors. |
Static Methods
Returns a list of raster relief colors encoded as a variant value. |
- class qgis.core.QgsProcessingParameterReliefColors[source]¶
Bases:
QgsProcessingParameterString- __init__(name: str | None, description: str | None = '', parentLayerParameter: str | None = '', optional: bool = True)¶
Constructor for QgsProcessingParameterReliefColors.
- __init__(a0: QgsProcessingParameterReliefColors)
- Parameters:
- static colorsAsVariant(colors: Iterable[QgsRasterReliefColor]) Any[source]¶
Returns a list of raster relief colors encoded as a variant value.
- Parameters:
colors (Iterable[QgsRasterReliefColor])
- Return type:
- parentLayerParameter(self) str[source]¶
Returns the linked parent layer parameter name.
- Return type:
str
- valueAsReliefColors(self, value: Any, context: QgsProcessingContext) list[QgsRasterReliefColor]¶
Returns the parameter value interpreted as a list of raster relief colors.
- Parameters:
value (Any)
context (QgsProcessingContext)
- Return type:
list[QgsRasterReliefColor]