Class: QgsSimpleFillSymbolLayer

class qgis.core.QgsSimpleFillSymbolLayer(color: Union[QColor, Qt.GlobalColor] = DEFAULT_SIMPLEFILL_COLOR, style: Qt.BrushStyle = DEFAULT_SIMPLEFILL_STYLE, strokeColor: Union[QColor, Qt.GlobalColor] = DEFAULT_SIMPLEFILL_BORDERCOLOR, strokeStyle: Qt.PenStyle = DEFAULT_SIMPLEFILL_BORDERSTYLE, strokeWidth: float = DEFAULT_SIMPLEFILL_BORDERWIDTH, penJoinStyle: Qt.PenJoinStyle = DEFAULT_SIMPLEFILL_JOINSTYLE)

Bases: qgis._core.QgsFillSymbolLayer

QgsSimpleFillSymbolLayer(QgsSimpleFillSymbolLayer)

Enums

Methods

brushStyle
clone
copyDataDefinedProperties
copyPaintEffect
create
createFromSld
dxfAngle
dxfBrushColor
dxfBrushStyle
dxfColor
dxfPenStyle
dxfWidth
estimateMaxBleed
fillColor
layerType
mapUnitScale
offset
offsetMapUnitScale
offsetUnit Returns the units for the fill’s offset.
ogrFeatureStyle
outputUnit
penJoinStyle
properties
renderPolygon
restoreOldDataDefinedProperties
setBrushStyle
setFillColor
setMapUnitScale
setOffset
setOffsetMapUnitScale
setOffsetUnit Sets the units for the fill’s offset.
setOutputUnit
setPenJoinStyle
setStrokeColor
setStrokeStyle
setStrokeWidth
setStrokeWidthMapUnitScale
setStrokeWidthUnit Sets the units for the width of the fill’s stroke.
startRender
stopRender
strokeColor
strokeStyle
strokeWidth
strokeWidthMapUnitScale
strokeWidthUnit Returns the units for the width of the fill’s stroke.
toSld

Signals

Attributes

brushStyle(self) → Qt.BrushStyle
clone(self) → QgsSimpleFillSymbolLayer
copyDataDefinedProperties()
copyPaintEffect()
create(properties: Dict[str, str] = {}) → QgsSymbolLayer
createFromSld(element: QDomElement) → QgsSymbolLayer
dxfAngle(self, context: QgsSymbolRenderContext) → float
dxfBrushColor(self, context: QgsSymbolRenderContext) → QColor
dxfBrushStyle(self) → Qt.BrushStyle
dxfColor(self, context: QgsSymbolRenderContext) → QColor
dxfPenStyle(self) → Qt.PenStyle
dxfWidth(self, e: QgsDxfExport, context: QgsSymbolRenderContext) → float
estimateMaxBleed(self, context: QgsRenderContext) → float
fillColor(self) → QColor
layerType(self) → str
mapUnitScale(self) → QgsMapUnitScale
offset(self) → QPointF
offsetMapUnitScale(self) → QgsMapUnitScale
offsetUnit(self) → QgsUnitTypes.RenderUnit

Returns the units for the fill’s offset.

See also

setOffsetUnit()

ogrFeatureStyle(self, mmScaleFactor: float, mapUnitScaleFactor: float) → str
outputUnit(self) → QgsUnitTypes.RenderUnit
penJoinStyle(self) → Qt.PenJoinStyle
properties(self) → Dict[str, str]
renderPolygon(self, points: QPolygonF, rings: Iterable[QPolygonF], context: QgsSymbolRenderContext)
restoreOldDataDefinedProperties()
setBrushStyle(self, style: Qt.BrushStyle)
setFillColor(self, color: Union[QColor, Qt.GlobalColor])
setMapUnitScale(self, scale: QgsMapUnitScale)
setOffset(self, offset: Union[QPointF, QPoint])
setOffsetMapUnitScale(self, scale: QgsMapUnitScale)
setOffsetUnit(self, unit: QgsUnitTypes.RenderUnit)

Sets the units for the fill’s offset.

Parameters:unit – offset units

See also

offsetUnit()

setOutputUnit(self, unit: QgsUnitTypes.RenderUnit)
setPenJoinStyle(self, style: Qt.PenJoinStyle)
setStrokeColor(self, strokeColor: Union[QColor, Qt.GlobalColor])
setStrokeStyle(self, strokeStyle: Qt.PenStyle)
setStrokeWidth(self, strokeWidth: float)
setStrokeWidthMapUnitScale(self, scale: QgsMapUnitScale)
setStrokeWidthUnit(self, unit: QgsUnitTypes.RenderUnit)

Sets the units for the width of the fill’s stroke.

Parameters:unit – width units
startRender(self, context: QgsSymbolRenderContext)
stopRender(self, context: QgsSymbolRenderContext)
strokeColor(self) → QColor
strokeStyle(self) → Qt.PenStyle
strokeWidth(self) → float
strokeWidthMapUnitScale(self) → QgsMapUnitScale
strokeWidthUnit(self) → QgsUnitTypes.RenderUnit

Returns the units for the width of the fill’s stroke.

toSld(self, doc: QDomDocument, element: QDomElement, props: Dict[str, str])