Subgroup: Mesh

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)
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)
writeXml Writes configuration to a new DOM element

Signals

Attributes

color(self) → QColor

Returns color used for rendering

isEnabled(self) → bool

Returns whether mesh structure rendering is enabled

lineWidth(self) → float

Returns line width used for rendering (in millimeters)

readXml(self, elem: QDomElement)

Reads configuration from the given DOM element

setColor(self, color: Union[QColor, Qt.GlobalColor, QGradient])

Sets color used for rendering of the mesh

setEnabled(self, enabled: bool)

Sets whether mesh structure rendering is enabled

setLineWidth(self, lineWidth: float)

Sets line width used for rendering (in millimeters)

writeXml(self, doc: QDomDocument) → QDomElement

Writes configuration to a new DOM element