Subgroup: Mesh

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

New in version 3.2: Methods

maxColor Returns color representing maximum scalar value in the dataset
maxValue Returns max scalar value that represents maxColor()
minColor Returns color representing minimum scalar value in the dataset
minValue Returns min scalar value that represents minColor()
setMaxColor Sets color representing maximum scalar value in the dataset
setMaxValue Sets min scalar value that represents minColor()
setMinColor Sets color representing maximum scalar value in the dataset
setMinValue Sets min scalar value that represents minColor()

Signals

Attributes

maxColor(self) → QColor

Returns color representing maximum scalar value in the dataset

maxValue(self) → float

Returns max scalar value that represents maxColor()

if set to numerical_limits<double>.quiet_NaN(), value for maxColor() is taken from maximum value of active scalar dataset

minColor(self) → QColor

Returns color representing minimum scalar value in the dataset

minValue(self) → float

Returns min scalar value that represents minColor()

if set to numerical_limits<double>.quiet_NaN(), value for minColor() is taken from minimum value of active scalar dataset

setMaxColor(self, maxColor: Union[QColor, Qt.GlobalColor, QGradient])

Sets color representing maximum scalar value in the dataset

setMaxValue(self, maxValue: float)

Sets min scalar value that represents minColor()

setMinColor(self, minColor: Union[QColor, Qt.GlobalColor, QGradient])

Sets color representing maximum scalar value in the dataset

setMinValue(self, minValue: float)

Sets min scalar value that represents minColor()