Subgroup: Line

Class: QgsLinePatternFillSymbolLayer

class qgis.core.QgsLinePatternFillSymbolLayer

Bases: qgis._core.QgsImageFillSymbolLayer

A symbol fill consisting of repeated parallel lines.

Methods

applyDataDefinedSettings
clone
color
copyDataDefinedProperties
copyPaintEffect
create Creates a new QgsLinePatternFillSymbolLayer from a properties map.
createFromSld Creates a new QgsLinePatternFillSymbolLayer from a SLD element.
distance Returns the distance between lines in the fill pattern.
distanceMapUnitScale Returns the map unit scale for the pattern’s line distance.
distanceUnit Returns the units for the distance between lines in the fill pattern.
estimateMaxBleed
layerType
lineAngle Returns the angle for the parallel lines used to fill the symbol.
lineWidth Returns the width of the line subsymbol used to render the parallel lines in the fill.
lineWidthMapUnitScale Returns the map unit scale for the pattern’s line width.
lineWidthUnit Returns the units for the line’s width.
mapUnitScale
offset Returns the offset distance for lines within the fill, which is the distance to offset the parallel lines from their normal position.
offsetMapUnitScale Returns the map unit scale for the pattern’s line offset.
offsetUnit Returns the units for the line pattern’s offset.
ogrFeatureStyleWidth
outputUnit
properties
restoreOldDataDefinedProperties
setColor
setDistance Sets the distance between lines in the fill pattern.
setDistanceMapUnitScale Sets the map unit scale for the pattern’s line distance.
setDistanceUnit Sets the unit for the distance between lines in the fill pattern.
setLineAngle Sets the angle for the parallel lines used to fill the symbol.
setLineWidth Sets the width of the line subsymbol used to render the parallel lines in the fill.
setLineWidthMapUnitScale Sets the map unit scale for the pattern’s line width.
setLineWidthUnit Sets the unit for the line’s width.
setMapUnitScale
setOffset Sets the offset distance for lines within the fill, which is the distance to offset the parallel lines from their normal position.
setOffsetMapUnitScale Sets the map unit scale for the pattern’s line offset.
setOffsetUnit Sets the unit for the line pattern’s offset.
setOutputUnit
setSubSymbol
startRender
stopRender
subSymbol
toSld
usedAttributes

Signals

Attributes

applyDataDefinedSettings(self, context: QgsSymbolRenderContext)
clone(self) → QgsLinePatternFillSymbolLayer
color(self) → QColor
copyDataDefinedProperties()
copyPaintEffect()
create(properties: Dict[str, str] = {}) → QgsSymbolLayer

Creates a new QgsLinePatternFillSymbolLayer from a properties map. The caller takes ownership of the returned object.

createFromSld(element: QDomElement) → QgsSymbolLayer

Creates a new QgsLinePatternFillSymbolLayer from a SLD element. The caller takes ownership of the returned object.

distance(self) → float

Returns the distance between lines in the fill pattern. Units are retrieved by distanceUnit().

See also

setDistance()

See also

distanceUnit()

distanceMapUnitScale(self) → QgsMapUnitScale

Returns the map unit scale for the pattern’s line distance.

See also

distance()

See also

distanceUnit()

distanceUnit(self) → QgsUnitTypes.RenderUnit

Returns the units for the distance between lines in the fill pattern.

See also

distance()

estimateMaxBleed(self, context: QgsRenderContext) → float
layerType(self) → str
lineAngle(self) → float

Returns the angle for the parallel lines used to fill the symbol.

Angles are in degrees, clockwise from North.

See also

setLineAngle()

lineWidth(self) → float

Returns the width of the line subsymbol used to render the parallel lines in the fill.

See also

setLineWidth()

lineWidthMapUnitScale(self) → QgsMapUnitScale

Returns the map unit scale for the pattern’s line width.

See also

lineWidth()

See also

lineWidthUnit()

lineWidthUnit(self) → QgsUnitTypes.RenderUnit

Returns the units for the line’s width.

mapUnitScale(self) → QgsMapUnitScale
offset(self) → float

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

setOffset()

See also

offsetUnit()

offsetMapUnitScale(self) → QgsMapUnitScale

Returns the map unit scale for the pattern’s line offset.

See also

offset()

See also

offsetUnit()

offsetUnit(self) → QgsUnitTypes.RenderUnit

Returns the units for the line pattern’s offset.

See also

setOffsetUnit()

ogrFeatureStyleWidth(self, widthScaleFactor: float) → str
outputUnit(self) → QgsUnitTypes.RenderUnit
properties(self) → Dict[str, str]
restoreOldDataDefinedProperties()
setColor(self, c: Union[QColor, Qt.GlobalColor])
setDistance(self, d: float)

Sets the distance between lines in the fill pattern.

Parameters:d – distance. Units are specified by setDistanceUnit()

See also

distance()

setDistanceMapUnitScale(self, scale: QgsMapUnitScale)

Sets the map unit scale for the pattern’s line distance.

See also

setDistance()

setDistanceUnit(self, unit: QgsUnitTypes.RenderUnit)

Sets the unit for the distance between lines in the fill pattern.

See also

distanceUnit()

See also

setDistance()

setLineAngle(self, a: float)

Sets the angle for the parallel lines used to fill the symbol.

Angles are in degrees, clockwise from North.

See also

lineAngle()

setLineWidth(self, w: float)

Sets the width of the line subsymbol used to render the parallel lines in the fill.

See also

lineWidth()

setLineWidthMapUnitScale(self, scale: QgsMapUnitScale)

Sets the map unit scale for the pattern’s line width.

See also

setLineWidth()

setLineWidthUnit(self, unit: QgsUnitTypes.RenderUnit)

Sets the unit for the line’s width.

See also

lineWidthUnit()

setMapUnitScale(self, scale: QgsMapUnitScale)
setOffset(self, offset: float)

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

offset()

See also

setOffsetUnit()

setOffsetMapUnitScale(self, scale: QgsMapUnitScale)

Sets the map unit scale for the pattern’s line offset.

See also

setOffset()

See also

setOffsetUnit()

setOffsetUnit(self, unit: QgsUnitTypes.RenderUnit)

Sets the unit for the line pattern’s offset.

See also

offsetUnit()

setOutputUnit(self, unit: QgsUnitTypes.RenderUnit)
setSubSymbol(self, symbol: QgsSymbol) → bool
startRender(self, context: QgsSymbolRenderContext)
stopRender(self, context: QgsSymbolRenderContext)
subSymbol(self) → QgsSymbol
toSld(self, doc: QDomDocument, element: QDomElement, props: Dict[str, str])
usedAttributes(self, context: QgsRenderContext) → Set[str]