Class: QgsImageFillSymbolLayer¶
-
class
qgis.core.
QgsImageFillSymbolLayer
¶ Bases:
QgsFillSymbolLayer
Base class for polygon renderers generating texture images*
Methods
Custom stroke
Copies all data defined properties of this layer to another symbol layer.
Copies paint effect of this layer to another symbol layer
- param context
- rtype
Qt.PenStyle
- param e
- param context
- rtype
bool
- rtype
QgsMapUnitScale
- rtype
QgsUnitTypes.RenderUnit
- param points
Restores older data defined properties from string map.
- param scale
- param unit
Sets the stroke width map unit
scale
.Sets the
units
fo the symbol’s stroke width.- param symbol
Returns the stroke width map unit scale.
Returns the units for the symbol’s stroke width.
- rtype
QgsSymbol
- param context
-
applyDataDefinedSettings
(self, context: QgsSymbolRenderContext)¶ Custom stroke
- Parameters
context (QgsSymbolRenderContext) –
-
copyDataDefinedProperties
(self, destLayer: QgsSymbolLayer)¶ Copies all data defined properties of this layer to another symbol layer.
- Parameters
destLayer – destination layer
-
copyPaintEffect
(self, destLayer: QgsSymbolLayer)¶ Copies paint effect of this layer to another symbol layer
- Parameters
destLayer – destination layer
New in version 2.9.
-
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
e (QgsDxfExport) –
context (QgsSymbolRenderContext) –
- 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
-
outputUnit
(self) → QgsUnitTypes.RenderUnit¶ - Return type
-
renderPolygon
(self, points: QPolygonF, rings: Iterable[QPolygonF], context: QgsSymbolRenderContext)¶ - Parameters
points (QPolygonF) –
rings (Iterable[QPolygonF]) –
context (QgsSymbolRenderContext) –
-
restoreOldDataDefinedProperties
(self, stringMap: Dict[str, str])¶ Restores older data defined properties from string map.
New in version 3.0.
-
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
.See also
See also
- Parameters
scale (QgsMapUnitScale) –
-
setStrokeWidthUnit
(self, unit: QgsUnitTypes.RenderUnit)¶ Sets the
units
fo the symbol’s stroke width.See also
See also
- Parameters
unit (QgsUnitTypes.RenderUnit) –
-
strokeWidthMapUnitScale
(self) → QgsMapUnitScale¶ Returns the stroke width map unit scale.
See also
See also
New in version 2.16.
- Return type
-
strokeWidthUnit
(self) → QgsUnitTypes.RenderUnit¶ Returns the units for the symbol’s stroke width.
See also
See also
- Return type
-
usedAttributes
(self, context: QgsRenderContext) → Set[str]¶ - Parameters
context (QgsRenderContext) –
- Return type
Set[str]