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. |
Methods
Returns the line clipping mode, which defines how lines are clipped at the edges of shapes. |
|
Returns the distance between lines in the fill pattern. |
|
Returns the map unit scale for the pattern's line distance. |
|
Returns the units for the distance between lines in the fill pattern. |
|
Returns the angle for the parallel lines used to fill the symbol. |
|
Returns the width of the line subsymbol used to render the parallel lines in the fill. |
|
Returns the map unit scale for the pattern's line width. |
|
Returns the units for the line's width. |
|
Returns the offset distance for lines within the fill, which is the distance to offset the parallel lines from their normal position. |
|
Returns the map unit scale for the pattern's line offset. |
|
Returns the units for the line pattern's offset. |
|
Sets the line clipping mode, which defines how lines are clipped at the edges of shapes. |
|
Sets the distance between lines in the fill pattern. |
|
Sets the map unit scale for the pattern's line distance. |
|
Sets the unit for the distance between lines in the fill pattern. |
|
Sets the angle for the parallel lines used to fill the symbol. |
|
Sets the width of the line subsymbol used to render the parallel lines in the fill. |
|
Sets the map unit scale for the pattern's line width. |
|
Sets the unit for the line's width. |
|
Sets the offset distance for lines within the fill, which is the distance to offset the parallel lines from their normal position. |
|
Sets the map unit scale for the pattern's line offset. |
|
Sets the unit for the line pattern's offset. |
Virtual Methods
In PyQGIS, only methods marked as virtual
can be safely overridden in a Python subclass of QgsLinePatternFillSymbolLayer. See the FAQ for more details.
Static Methods
Creates a new |
|
Creates a new |
- 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
QgsLinePatternFillSymbolLayer
from aproperties
map. 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
QgsLinePatternFillSymbolLayer
from 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
scale
for the pattern’s line distance.See also
See also
See also
- Parameters:
scale (QgsMapUnitScale)
- setDistanceUnit(self, unit: Qgis.RenderUnit)[source]¶
Sets the
unit
for 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
scale
for the pattern’s line width.See also
See also
See also
- Parameters:
scale (QgsMapUnitScale)
- setLineWidthUnit(self, unit: Qgis.RenderUnit)[source]¶
Sets the
unit
for the line’s width.See also
- Parameters:
unit (Qgis.RenderUnit)
- setOffset(self, offset: float)[source]¶
Sets the
offset
distance 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
scale
for the pattern’s line offset.See also
See also
See also
- Parameters:
scale (QgsMapUnitScale)
- setOffsetUnit(self, unit: Qgis.RenderUnit)[source]¶
Sets the
unit
for the line pattern’s offset.See also
- Parameters:
unit (Qgis.RenderUnit)