Subgroup: Line

Class: QgsLinePatternFillSymbolLayer

class qgis.core.QgsLinePatternFillSymbolLayer

Bases: qgis._core.QgsImageFillSymbolLayer

Methods

applyDataDefinedSettings Offset perpendicular to line direction
clone
color
copyDataDefinedProperties
copyPaintEffect
create
createFromSld
distance Returns the distance between lines in the fill pattern.
distanceMapUnitScale
distanceUnit Returns the units for the distance between lines in the fill pattern.
estimateMaxBleed
layerType
lineAngle
lineWidth
lineWidthMapUnitScale
lineWidthUnit Returns the units for the line’s width.
mapUnitScale
offset
offsetMapUnitScale
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
setDistanceUnit Sets the units for the distance between lines in the fill pattern.
setLineAngle
setLineWidth
setLineWidthMapUnitScale
setLineWidthUnit Sets the units for the line’s width.
setMapUnitScale
setOffset
setOffsetMapUnitScale
setOffsetUnit Sets the units for the line pattern’s offset.
setOutputUnit
setSubSymbol
startRender
stopRender
subSymbol
toSld
usedAttributes

Signals

Attributes

applyDataDefinedSettings(self, context: QgsSymbolRenderContext)

Offset perpendicular to line direction

clone(self) → QgsLinePatternFillSymbolLayer
color(self) → QColor
copyDataDefinedProperties()
copyPaintEffect()
create(properties: Dict[str, str] = {}) → QgsSymbolLayer
createFromSld(element: QDomElement) → QgsSymbolLayer
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
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
lineWidth(self) → float
lineWidthMapUnitScale(self) → QgsMapUnitScale
lineWidthUnit(self) → QgsUnitTypes.RenderUnit

Returns the units for the line’s width.

mapUnitScale(self) → QgsMapUnitScale
offset(self) → float
offsetMapUnitScale(self) → QgsMapUnitScale
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)
setDistanceUnit(self, unit: QgsUnitTypes.RenderUnit)

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

Parameters:unit – distance units

See also

distanceUnit()

See also

setDistance()

setLineAngle(self, a: float)
setLineWidth(self, w: float)
setLineWidthMapUnitScale(self, scale: QgsMapUnitScale)
setLineWidthUnit(self, unit: QgsUnitTypes.RenderUnit)

Sets the units for the line’s width.

Parameters:unit – width units

See also

lineWidthUnit()

setMapUnitScale(self, scale: QgsMapUnitScale)
setOffset(self, offset: float)
setOffsetMapUnitScale(self, scale: QgsMapUnitScale)
setOffsetUnit(self, unit: QgsUnitTypes.RenderUnit)

Sets the units for the line pattern’s offset.

Parameters:unit – offset units

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]