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: QgsFillSymbolLayer

Parameters
  • color (Union[QColor) –

  • style (Qt.BrushStyle = DEFAULT_SIMPLEFILL_STYLE) –

  • strokeColor (Union[QColor) –

  • strokeStyle (Qt.PenStyle = DEFAULT_SIMPLEFILL_BORDERSTYLE) –

  • strokeWidth (float = DEFAULT_SIMPLEFILL_BORDERWIDTH) –

  • penJoinStyle

brushStyle(self) → Qt.BrushStyle
Return type

Qt.BrushStyle

clone(self) → QgsSimpleFillSymbolLayer
Return type

QgsSimpleFillSymbolLayer

copyDataDefinedProperties()
copyPaintEffect()
create(properties: Dict[str, str] = {}) → QgsSymbolLayer

Creates a new QgsSimpleFillSymbolLayer using the specified properties map containing symbol properties (see properties()).

Caller takes ownership of the returned symbol layer.

Parameters

properties (Dict[str) –

Return type

QgsSymbolLayer

createFromSld(element: QDomElement) → QgsSymbolLayer
Parameters

element (QDomElement) –

Return type

QgsSymbolLayer

dxfAngle(self, context: QgsSymbolRenderContext) → float
Parameters

context (QgsSymbolRenderContext) –

Return type

float

dxfBrushColor(self, context: QgsSymbolRenderContext) → QColor
Parameters

context (QgsSymbolRenderContext) –

Return type

QColor

dxfBrushStyle(self) → Qt.BrushStyle
Return type

Qt.BrushStyle

dxfColor(self, context: QgsSymbolRenderContext) → QColor
Parameters

context (QgsSymbolRenderContext) –

Return type

QColor

dxfPenStyle(self) → Qt.PenStyle
Return type

Qt.PenStyle

dxfWidth(self, e: QgsDxfExport, context: QgsSymbolRenderContext) → float
Parameters
Return type

float

estimateMaxBleed(self, context: QgsRenderContext) → float
Parameters

context (QgsRenderContext) –

Return type

float

fillColor(self) → QColor
Return type

QColor

layerType(self) → str
Return type

str

mapUnitScale(self) → QgsMapUnitScale
Return type

QgsMapUnitScale

offset(self) → QPointF
Return type

QPointF

offsetMapUnitScale(self) → QgsMapUnitScale
Return type

QgsMapUnitScale

offsetUnit(self) → QgsUnitTypes.RenderUnit

Returns the units for the fill’s offset.

See also

setOffsetUnit()

Return type

QgsUnitTypes.RenderUnit

ogrFeatureStyle(self, mmScaleFactor: float, mapUnitScaleFactor: float) → str
Parameters
  • mmScaleFactor (float) –

  • mapUnitScaleFactor (float) –

Return type

str

outputUnit(self) → QgsUnitTypes.RenderUnit
Return type

QgsUnitTypes.RenderUnit

penJoinStyle(self) → Qt.PenJoinStyle
Return type

Qt.PenJoinStyle

properties(self) → Dict[str, str]
Return type

Dict[str, str]

renderPolygon(self, points: QPolygonF, rings: Iterable[QPolygonF], context: QgsSymbolRenderContext)
Parameters
restoreOldDataDefinedProperties()
setBrushStyle(self, style: Qt.BrushStyle)
Parameters

style (Qt.BrushStyle) –

setFillColor(self, color: Union[QColor, Qt.GlobalColor])
Parameters

color (Union[QColor) –

setMapUnitScale(self, scale: QgsMapUnitScale)
Parameters

scale (QgsMapUnitScale) –

setOffset(self, offset: Union[QPointF, QPoint])
Parameters

offset (Union[QPointF) –

setOffsetMapUnitScale(self, scale: QgsMapUnitScale)
Parameters

scale (QgsMapUnitScale) –

setOffsetUnit(self, unit: QgsUnitTypes.RenderUnit)

Sets the units for the fill’s offset.

Parameters

unit (QgsUnitTypes.RenderUnit) – offset units

See also

offsetUnit()

setOutputUnit(self, unit: QgsUnitTypes.RenderUnit)
Parameters

unit (QgsUnitTypes.RenderUnit) –

setPenJoinStyle(self, style: Qt.PenJoinStyle)
Parameters

style (Qt.PenJoinStyle) –

setStrokeColor(self, strokeColor: Union[QColor, Qt.GlobalColor])
Parameters

strokeColor (Union[QColor) –

setStrokeStyle(self, strokeStyle: Qt.PenStyle)
Parameters

strokeStyle (Qt.PenStyle) –

setStrokeWidth(self, strokeWidth: float)
Parameters

strokeWidth (float) –

setStrokeWidthMapUnitScale(self, scale: QgsMapUnitScale)
Parameters

scale (QgsMapUnitScale) –

setStrokeWidthUnit(self, unit: QgsUnitTypes.RenderUnit)

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

Parameters

unit (QgsUnitTypes.RenderUnit) – width units

startRender(self, context: QgsSymbolRenderContext)
Parameters

context (QgsSymbolRenderContext) –

stopRender(self, context: QgsSymbolRenderContext)
Parameters

context (QgsSymbolRenderContext) –

strokeColor(self) → QColor
Return type

QColor

strokeStyle(self) → Qt.PenStyle
Return type

Qt.PenStyle

strokeWidth(self) → float
Return type

float

strokeWidthMapUnitScale(self) → QgsMapUnitScale
Return type

QgsMapUnitScale

strokeWidthUnit(self) → QgsUnitTypes.RenderUnit

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

Return type

QgsUnitTypes.RenderUnit

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

  • element (QDomElement) –

  • props (Dict[str) –