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.
Methods
Returns color used for rendering |
|
Returns whether mesh structure rendering is enabled |
|
Returns line width used for rendering (in millimeters) |
|
Returns units of the width of the mesh frame |
|
Reads configuration from the given DOM element |
|
Sets color used for rendering of the mesh |
|
Sets whether mesh structure rendering is enabled |
|
Sets line width used for rendering (in millimeters) |
|
Sets units of the width of the mesh frame |
|
Writes configuration to a new DOM element |
- class qgis.core.QgsMeshRendererMeshSettings[source]¶
Bases:
object
- 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:
- 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)