Class: QgsSimpleFillSymbolLayer¶
Renders polygons using a single fill and stroke color.
Class Hierarchy¶
Base classes¶
Abstract base class for fill symbol layers. |
|
Abstract base class for symbol layers. |
Methods
Returns the offset by which polygons will be translated during rendering. |
|
Returns the map unit scale for the fill's offset. |
|
Returns the units for the fill's offset. |
|
Sets an offset by which polygons will be translated during rendering. |
|
Sets the map unit scale for the fill's offset. |
|
Sets the unit for the fill's offset. |
|
Sets the units for the width of the fill's stroke. |
|
Returns the units for the width of the fill's stroke. |
Static Methods
Creates a new |
|
- class qgis.core.QgsSimpleFillSymbolLayer[source]¶
Bases:
QgsFillSymbolLayer
- static create(properties: Dict[str, Any] = {}) QgsSymbolLayer | None [source]¶
Creates a new
QgsSimpleFillSymbolLayer
using the specifiedproperties
map containing symbol properties (seeproperties()
).Caller takes ownership of the returned symbol layer.
- Parameters:
properties (Dict[str, Any] = {})
- Return type:
Optional[QgsSymbolLayer]
- static createFromSld(element: QDomElement) QgsSymbolLayer | None [source]¶
- Parameters:
element (QDomElement)
- Return type:
Optional[QgsSymbolLayer]
- offset(self) QPointF [source]¶
Returns the offset by which polygons will be translated during rendering.
Units are specified by
offsetUnit()
.See also
See also
- Return type:
QPointF
- offsetMapUnitScale(self) QgsMapUnitScale ¶
Returns the map unit scale for the fill’s offset.
See also
See also
- Return type:
- offsetUnit(self) Qgis.RenderUnit [source]¶
Returns the units for the fill’s offset.
See also
See also
- Return type:
- setOffset(self, offset: QPointF | QPoint)[source]¶
Sets an
offset
by which polygons will be translated during rendering.Units are specified by
offsetUnit()
.See also
See also
- Parameters:
offset (Union[QPointF, QPoint])
- setOffsetMapUnitScale(self, scale: QgsMapUnitScale)[source]¶
Sets the map unit
scale
for the fill’s offset.See also
See also
- Parameters:
scale (QgsMapUnitScale)
- setOffsetUnit(self, unit: Qgis.RenderUnit)[source]¶
Sets the
unit
for the fill’s offset.See also
See also
- Parameters:
unit (Qgis.RenderUnit)
- setStrokeWidthMapUnitScale(self, scale: QgsMapUnitScale)[source]¶
- Parameters:
scale (QgsMapUnitScale)
- setStrokeWidthUnit(self, unit: Qgis.RenderUnit)[source]¶
Sets the units for the width of the fill’s stroke.
- Parameters:
unit (Qgis.RenderUnit) – width units
See also
- strokeWidthMapUnitScale(self) QgsMapUnitScale ¶
- Return type:
- strokeWidthUnit(self) Qgis.RenderUnit [source]¶
Returns the units for the width of the fill’s stroke.
See also
- Return type: