Class: QgsLinePatternFillSymbolLayer¶
A symbol fill consisting of repeated parallel lines.
Class Hierarchy¶
Base classes¶
Base class for fill symbol layers which fill polygons with a repeated image. |
|
Abstract base class for fill symbol layers. |
|
Abstract base class for symbol layers. |
- class qgis.core.QgsLinePatternFillSymbolLayer[source]¶
Bases:
QgsImageFillSymbolLayer- virtual applyBrushTransformFromContext()¶
- virtual applyDataDefinedSettings(self, context: QgsSymbolRenderContext)[source]¶
- Parameters:
context (QgsSymbolRenderContext)
- clipMode(self) Qgis.LineClipMode[source]¶
Returns the line clipping mode, which defines how lines are clipped at the edges of shapes.
See also
Added in version 3.24.
- Return type:
- static create(properties: Dict[str, Any] = {}) QgsSymbolLayer | None[source]¶
Creates a new
QgsLinePatternFillSymbolLayerfrom apropertiesmap. The caller takes ownership of the returned object.- Parameters:
properties (Dict[str, Any] = {})
- Return type:
Optional[QgsSymbolLayer]
- static createFromSld(element: QDomElement) QgsSymbolLayer | None[source]¶
Creates a new
QgsLinePatternFillSymbolLayerfrom a SLDelement. The caller takes ownership of the returned object.- Parameters:
element (QDomElement)
- Return type:
Optional[QgsSymbolLayer]
- distance(self) float[source]¶
Returns the distance between lines in the fill pattern. Units are retrieved by
distanceUnit().See also
See also
- Return type:
float
- distanceMapUnitScale(self) QgsMapUnitScale¶
Returns the map unit scale for the pattern’s line distance.
See also
See also
See also
- Return type:
- distanceUnit(self) Qgis.RenderUnit[source]¶
Returns the units for the distance between lines in the fill pattern.
See also
See also
- Return type:
- lineAngle(self) float[source]¶
Returns the angle for the parallel lines used to fill the symbol.
Angles are in degrees, clockwise from North.
See also
- Return type:
float
- lineWidth(self) float[source]¶
Returns the width of the line subsymbol used to render the parallel lines in the fill.
See also
- Return type:
float
- lineWidthMapUnitScale(self) QgsMapUnitScale¶
Returns the map unit scale for the pattern’s line width.
See also
See also
See also
- Return type:
- lineWidthUnit(self) Qgis.RenderUnit[source]¶
Returns the units for the line’s width.
See also
- Return type:
- offset(self) float[source]¶
Returns the offset distance for lines within the fill, which is the distance to offset the parallel lines from their normal position.
Units are retrieved via
offsetUnit().See also
See also
See also
- Return type:
float
- offsetMapUnitScale(self) QgsMapUnitScale¶
Returns the map unit scale for the pattern’s line offset.
See also
See also
See also
- Return type:
- offsetUnit(self) Qgis.RenderUnit[source]¶
Returns the units for the line pattern’s offset.
See also
- Return type:
- ogrFeatureStyleWidth(self, widthScaleFactor: float) str[source]¶
- Parameters:
widthScaleFactor (float)
- Return type:
str
- setClipMode(self, mode: Qgis.LineClipMode)[source]¶
Sets the line clipping
mode, which defines how lines are clipped at the edges of shapes.See also
Added in version 3.24.
- Parameters:
mode (Qgis.LineClipMode)
- setDistance(self, d: float)[source]¶
Sets the distance between lines in the fill pattern.
- Parameters:
d (float) – distance. Units are specified by
setDistanceUnit()
See also
See also
- setDistanceMapUnitScale(self, scale: QgsMapUnitScale)[source]¶
Sets the map unit
scalefor the pattern’s line distance.See also
See also
See also
- Parameters:
scale (QgsMapUnitScale)
- setDistanceUnit(self, unit: Qgis.RenderUnit)[source]¶
Sets the
unitfor the distance between lines in the fill pattern.See also
See also
- Parameters:
unit (Qgis.RenderUnit)
- setLineAngle(self, a: float)[source]¶
Sets the angle for the parallel lines used to fill the symbol.
Angles are in degrees, clockwise from North.
See also
- Parameters:
a (float)
- setLineWidth(self, w: float)[source]¶
Sets the width of the line subsymbol used to render the parallel lines in the fill.
See also
- Parameters:
w (float)
- setLineWidthMapUnitScale(self, scale: QgsMapUnitScale)[source]¶
Sets the map unit
scalefor the pattern’s line width.See also
See also
See also
- Parameters:
scale (QgsMapUnitScale)
- setLineWidthUnit(self, unit: Qgis.RenderUnit)[source]¶
Sets the
unitfor the line’s width.See also
- Parameters:
unit (Qgis.RenderUnit)
- setOffset(self, offset: float)[source]¶
Sets the
offsetdistance for lines within the fill, which is the distance to offset the parallel lines from their normal position.Units are specified via
setOffsetUnit().See also
See also
See also
- Parameters:
offset (float)
- setOffsetMapUnitScale(self, scale: QgsMapUnitScale)[source]¶
Sets the map unit
scalefor the pattern’s line offset.See also
See also
See also
- Parameters:
scale (QgsMapUnitScale)
- setOffsetUnit(self, unit: Qgis.RenderUnit)[source]¶
Sets the
unitfor the line pattern’s offset.See also
- Parameters:
unit (Qgis.RenderUnit)