Class: QgsMeshRendererScalarSettings

class qgis.core.QgsMeshRendererScalarSettings

Bases: sip.wrapper

Represents a mesh renderer settings for scalar datasets

Note

The API is considered EXPERIMENTAL and can be changed without a notice

Methods

classificationMaximum

Returns max value used for creation of the color ramp shader

classificationMinimum

Returns min value used for creation of the color ramp shader

colorRampShader

Returns color ramp shader function

opacity

Returns opacity

readXml

Reads configuration from the given DOM element

setClassificationMinimumMaximum

Sets min/max values used for creation of the color ramp shader

setColorRampShader

Sets color ramp shader function

setOpacity

Sets opacity

writeXml

Writes configuration to a new DOM element

classificationMaximum(self) → float

Returns max value used for creation of the color ramp shader

Return type

float

classificationMinimum(self) → float

Returns min value used for creation of the color ramp shader

Return type

float

colorRampShader(self) → QgsColorRampShader

Returns color ramp shader function

Return type

QgsColorRampShader

opacity(self) → float

Returns opacity

Return type

float

readXml(self, elem: QDomElement)

Reads configuration from the given DOM element

Parameters

elem (QDomElement) –

setClassificationMinimumMaximum(self, minimum: float, maximum: float)

Sets min/max values used for creation of the color ramp shader

Parameters
  • minimum (float) –

  • maximum (float) –

setColorRampShader(self, shader: QgsColorRampShader)

Sets color ramp shader function

Parameters

shader (QgsColorRampShader) –

setOpacity(self, opacity: float)

Sets opacity

Parameters

opacity (float) –

writeXml(self, doc: QDomDocument) → QDomElement

Writes configuration to a new DOM element

Parameters

doc (QDomDocument) –

Return type

QDomElement