Class: QgsMeshRendererMeshSettings

Represents a mesh renderer settings for mesh objects.

Note

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

Added in version 3.2.

class qgis.core.QgsMeshRendererMeshSettings[source]

Bases: object

color(self) QColor[source]

Returns color used for rendering

Return type:

QColor

isEnabled(self) bool[source]

Returns whether mesh structure rendering is enabled

Return type:

bool

lineWidth(self) float[source]

Returns line width used for rendering (in millimeters)

Return type:

float

lineWidthUnit(self) Qgis.RenderUnit[source]

Returns units of the width of the mesh frame

Added in version 3.14.

Return type:

Qgis.RenderUnit

readXml(self, elem: QDomElement)[source]

Reads configuration from the given DOM element

Parameters:

elem (QDomElement)

setColor(self, color: QColor | Qt.GlobalColor)[source]

Sets color used for rendering of the mesh

Parameters:

color (Union[QColor, Qt.GlobalColor])

setEnabled(self, enabled: bool)[source]

Sets whether mesh structure rendering is enabled

Parameters:

enabled (bool)

setLineWidth(self, lineWidth: float)[source]

Sets line width used for rendering (in millimeters)

Parameters:

lineWidth (float)

setLineWidthUnit(self, lineWidthUnit: Qgis.RenderUnit)[source]

Sets units of the width of the mesh frame

Added in version 3.14.

Parameters:

lineWidthUnit (Qgis.RenderUnit)

writeXml(self, doc: QDomDocument) QDomElement[source]

Writes configuration to a new DOM element

Parameters:

doc (QDomDocument)

Return type:

QDomElement