Class: QgsImageFillSymbolLayer

class qgis.core.QgsImageFillSymbolLayer

Bases: QgsFillSymbolLayer

Base class for polygon renderers generating texture images*

Methods

applyDataDefinedSettings

Custom stroke

copyDataDefinedProperties

copyPaintEffect

dxfColor

param context

dxfPenStyle

rtype

Qt.PenStyle

dxfWidth

param e

estimateMaxBleed

param context

hasDataDefinedProperties

rtype

bool

mapUnitScale

rtype

QgsMapUnitScale

outputUnit

rtype

QgsUnitTypes.RenderUnit

renderPolygon

param points

restoreOldDataDefinedProperties

setMapUnitScale

param scale

setOutputUnit

param unit

setStrokeWidthMapUnitScale

Sets the stroke width map unit scale.

setStrokeWidthUnit

Sets the units fo the symbol’s stroke width.

setSubSymbol

param symbol

strokeWidthMapUnitScale

Returns the stroke width map unit scale.

strokeWidthUnit

Returns the units for the symbol’s stroke width.

subSymbol

rtype

QgsSymbol

usedAttributes

param context

applyDataDefinedSettings(self, context: QgsSymbolRenderContext)

Custom stroke

Parameters

context (QgsSymbolRenderContext) –

copyDataDefinedProperties()
copyPaintEffect()
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

hasDataDefinedProperties(self) → bool
Return type

bool

mapUnitScale(self)QgsMapUnitScale
Return type

QgsMapUnitScale

outputUnit(self) → QgsUnitTypes.RenderUnit
Return type

QgsUnitTypes.RenderUnit

renderPolygon(self, points: QPolygonF, rings: Iterable[QPolygonF], context: QgsSymbolRenderContext)
Parameters
restoreOldDataDefinedProperties()
setMapUnitScale(self, scale: QgsMapUnitScale)
Parameters

scale (QgsMapUnitScale) –

setOutputUnit(self, unit: QgsUnitTypes.RenderUnit)
Parameters

unit (QgsUnitTypes.RenderUnit) –

setStrokeWidthMapUnitScale(self, scale: QgsMapUnitScale)

Sets the stroke width map unit scale.

Parameters

scale (QgsMapUnitScale) –

setStrokeWidthUnit(self, unit: QgsUnitTypes.RenderUnit)

Sets the units fo the symbol’s stroke width.

Parameters

unit (QgsUnitTypes.RenderUnit) –

setSubSymbol(self, symbol: QgsSymbol) → bool
Parameters

symbol (QgsSymbol) –

Return type

bool

strokeWidthMapUnitScale(self)QgsMapUnitScale

Returns the stroke width map unit scale.

New in version 2.16.

Return type

QgsMapUnitScale

strokeWidthUnit(self) → QgsUnitTypes.RenderUnit

Returns the units for the symbol’s stroke width.

Return type

QgsUnitTypes.RenderUnit

subSymbol(self)QgsSymbol
Return type

QgsSymbol

usedAttributes(self, context: QgsRenderContext) → Set[str]
Parameters

context (QgsRenderContext) –

Return type

Set[str]