Class: QgsImageFillSymbolLayer¶
- class qgis.core.QgsImageFillSymbolLayer¶
Bases:
QgsFillSymbolLayer
Base class for polygon renderers generating texture images
Methods
Returns
True
if the image brush should be transformed using the render context's texture origin.Applies data defined settings prior to generating the fill symbol brush.
Returns the coordinate reference mode for fill which controls how the top left corner of the image fill is positioned relative to the feature.
Copies all data defined properties of this layer to another symbol layer.
Copies paint effect of this layer to another symbol layer
- rtype
Qt.PenStyle
- param e
- rtype
QgsMapUnitScale
- rtype
QgsUnitTypes.RenderUnit
- rtype
Dict[str, Any]
- param points
Restores older data defined properties from string map.
Sets the coordinate reference mode for fill which controls how the top left corner of the image fill is positioned relative to the feature.
- param scale
- param unit
Sets the stroke width map unit
scale
.Sets the
units
fo the symbol's stroke width.Returns the stroke width map unit scale.
Returns the units for the symbol's stroke width.
- applyBrushTransformFromContext(self, context: QgsSymbolRenderContext = None) bool ¶
Returns
True
if the image brush should be transformed using the render context’s texture origin.New in version 3.16.
- Parameters
context (
QgsSymbolRenderContext
= None) –- Return type
bool
- applyDataDefinedSettings(self, context: QgsSymbolRenderContext)¶
Applies data defined settings prior to generating the fill symbol brush.
- Parameters
context (QgsSymbolRenderContext) –
- coordinateReference(self) Qgis.SymbolCoordinateReference ¶
Returns the coordinate reference mode for fill which controls how the top left corner of the image fill is positioned relative to the feature.
- Return type
- Returns
coordinate reference mode
See also
New in version 3.24.
- 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.
- dxfPenStyle(self) Qt.PenStyle ¶
- Return type
Qt.PenStyle
- dxfWidth(self, e: QgsDxfExport, context: QgsSymbolRenderContext) float ¶
- Parameters
e (QgsDxfExport) –
context (QgsSymbolRenderContext) –
- Return type
float
- mapUnitScale(self) QgsMapUnitScale ¶
- Return type
- outputUnit(self) QgsUnitTypes.RenderUnit ¶
- Return type
- properties(self) Dict[str, Any] ¶
- Return type
Dict[str, Any]
- renderPolygon(self, points: QPolygonF, rings: Iterable[QPolygonF], context: QgsSymbolRenderContext)¶
- Parameters
points (QPolygonF) –
rings (Iterable[QPolygonF]) –
context (QgsSymbolRenderContext) –
- restoreOldDataDefinedProperties(self, stringMap: Dict[str, Any])¶
Restores older data defined properties from string map.
New in version 3.0.
- setCoordinateReference(self, coordinateReference: Qgis.SymbolCoordinateReference)¶
Sets the coordinate reference mode for fill which controls how the top left corner of the image fill is positioned relative to the feature.
- Parameters
coordinateReference (Qgis.SymbolCoordinateReference) – coordinate reference mode
See also
New in version 3.24.
- 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