Class: QgsMeshRendererMeshSettings

class qgis.core.QgsMeshRendererMeshSettings

Bases: sip.wrapper

Represents a mesh renderer settings for mesh object

Note

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

New in version 3.2:

Methods

color

Returns color used for rendering

isEnabled

Returns whether mesh structure rendering is enabled

lineWidth

Returns line width used for rendering (in millimeters)

lineWidthUnit

Returns units of the width of the mesh frame

readXml

Reads configuration from the given DOM element

setColor

Sets color used for rendering of the mesh

setEnabled

Sets whether mesh structure rendering is enabled

setLineWidth

Sets line width used for rendering (in millimeters)

setLineWidthUnit

Sets units of the width of the mesh frame

writeXml

Writes configuration to a new DOM element

color(self) QColor

Returns color used for rendering

Return type:

QColor

isEnabled(self) bool

Returns whether mesh structure rendering is enabled

Return type:

bool

lineWidth(self) float

Returns line width used for rendering (in millimeters)

Return type:

float

lineWidthUnit(self) QgsUnitTypes.RenderUnit

Returns units of the width of the mesh frame

New in version 3.14.

Return type:

QgsUnitTypes.RenderUnit

readXml(self, elem: QDomElement)

Reads configuration from the given DOM element

Parameters:

elem (QDomElement) –

setColor(self, color: QColor | Qt.GlobalColor | QGradient)

Sets color used for rendering of the mesh

Parameters:

color (Union[QColor) –

setEnabled(self, enabled: bool)

Sets whether mesh structure rendering is enabled

Parameters:

enabled (bool) –

setLineWidth(self, lineWidth: float)

Sets line width used for rendering (in millimeters)

Parameters:

lineWidth (float) –

setLineWidthUnit(self, lineWidthUnit: QgsUnitTypes.RenderUnit)

Sets units of the width of the mesh frame

New in version 3.14.

Parameters:

lineWidthUnit (QgsUnitTypes.RenderUnit) –

writeXml(self, doc: QDomDocument) QDomElement

Writes configuration to a new DOM element

Parameters:

doc (QDomDocument) –

Return type:

QDomElement