Class: QgsSimpleLineSymbolLayer

class qgis.core.QgsSimpleLineSymbolLayer(color: Union[QColor, Qt.GlobalColor] = DEFAULT_SIMPLELINE_COLOR, width: float = DEFAULT_SIMPLELINE_WIDTH, penStyle: Qt.PenStyle = DEFAULT_SIMPLELINE_PENSTYLE)

Bases: qgis._core.QgsLineSymbolLayer

QgsSimpleLineSymbolLayer(QgsSimpleLineSymbolLayer)

Enums

Methods

clone

copyDataDefinedProperties

copyPaintEffect

create

createFromSld

customDashPatternMapUnitScale

customDashPatternUnit

Returns the units for lengths used in the custom dash pattern.

customDashVector

drawInsidePolygon

Returns true if the line should only be drawn inside polygons, and any portion of the line which falls outside the polygon should be clipped away.

dxfColor

dxfCustomDashPattern

dxfOffset

dxfPenStyle

dxfWidth

estimateMaxBleed

layerType

mapUnitScale

ogrFeatureStyle

outputUnit

penCapStyle

penJoinStyle

penStyle

properties

renderPolygonStroke

renderPolyline

restoreOldDataDefinedProperties

setCustomDashPatternMapUnitScale

setCustomDashPatternUnit

Sets the units for lengths used in the custom dash pattern.

setCustomDashVector

setDrawInsidePolygon

Sets whether the line should only be drawn inside polygons, and any portion of the line which falls outside the polygon should be clipped away.

setMapUnitScale

setOutputUnit

setPenCapStyle

setPenJoinStyle

setPenStyle

setUseCustomDashPattern

startRender

stopRender

toSld

useCustomDashPattern

Signals

Attributes

clone(self) → QgsSimpleLineSymbolLayer
copyDataDefinedProperties()
copyPaintEffect()
create(properties: Dict[str, str] = {}) → QgsSymbolLayer
createFromSld(element: QDomElement) → QgsSymbolLayer
customDashPatternMapUnitScale(self) → QgsMapUnitScale
customDashPatternUnit(self) → QgsUnitTypes.RenderUnit

Returns the units for lengths used in the custom dash pattern.

customDashVector(self) → List[float]
drawInsidePolygon(self) → bool

Returns true if the line should only be drawn inside polygons, and any portion of the line which falls outside the polygon should be clipped away.

This setting only has an effect when the line symbol is being used to render polygon rings.

dxfColor(self, context: QgsSymbolRenderContext) → QColor
dxfCustomDashPattern(self) → Tuple[List[float], QgsUnitTypes.RenderUnit]
dxfOffset(self, e: QgsDxfExport, context: QgsSymbolRenderContext) → float
dxfPenStyle(self) → Qt.PenStyle
dxfWidth(self, e: QgsDxfExport, context: QgsSymbolRenderContext) → float
estimateMaxBleed(self, context: QgsRenderContext) → float
layerType(self) → str
mapUnitScale(self) → QgsMapUnitScale
ogrFeatureStyle(self, mmScaleFactor: float, mapUnitScaleFactor: float) → str
outputUnit(self) → QgsUnitTypes.RenderUnit
penCapStyle(self) → Qt.PenCapStyle
penJoinStyle(self) → Qt.PenJoinStyle
penStyle(self) → Qt.PenStyle
properties(self) → Dict[str, str]
renderPolygonStroke(self, points: QPolygonF, rings: Iterable[QPolygonF], context: QgsSymbolRenderContext)
renderPolyline(self, points: QPolygonF, context: QgsSymbolRenderContext)
restoreOldDataDefinedProperties()
setCustomDashPatternMapUnitScale(self, scale: QgsMapUnitScale)
setCustomDashPatternUnit(self, unit: QgsUnitTypes.RenderUnit)

Sets the units for lengths used in the custom dash pattern.

Parameters

unit – length units

setCustomDashVector(self, vector: Iterable[float])
setDrawInsidePolygon(self, drawInsidePolygon: bool)

Sets whether the line should only be drawn inside polygons, and any portion of the line which falls outside the polygon should be clipped away.

This setting only has an effect when the line symbol is being used to render polygon rings.

setMapUnitScale(self, scale: QgsMapUnitScale)
setOutputUnit(self, unit: QgsUnitTypes.RenderUnit)
setPenCapStyle(self, style: Qt.PenCapStyle)
setPenJoinStyle(self, style: Qt.PenJoinStyle)
setPenStyle(self, style: Qt.PenStyle)
setUseCustomDashPattern(self, b: bool)
startRender(self, context: QgsSymbolRenderContext)
stopRender(self, context: QgsSymbolRenderContext)
toSld(self, doc: QDomDocument, element: QDomElement, props: Dict[str, str])
useCustomDashPattern(self) → bool