Subgroup: Simple
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)
Methods
clone
color
The fill color. copyDataDefinedProperties
copyPaintEffect
create
createFromSld
customDashPatternMapUnitScale
customDashPatternUnit
Returns the units for lengths used in the custom dash pattern. customDashVector
dataDefinedProperties
Returns a reference to the symbol layer’s property collection, used for data defined overrides. drawInsidePolygon
drawPreviewIcon
dxfAngle
get angle dxfBrushColor
get brush/fill color dxfBrushStyle
get brush/fill style dxfColor
dxfCustomDashPattern
dxfOffset
dxfPenStyle
dxfWidth
enabled
Returns true if symbol layer is enabled and will be drawn. estimateMaxBleed
fillColor
Get fill color. isCompatibleWithSymbol
Returns if the layer can be used below the specified symbol isLocked
layerType
mapUnitScale
offset
offsetMapUnitScale
offsetUnit
Returns the units for the line’s offset. ogrFeatureStyle
outputUnit
paintEffect
Returns the current paint effect for the layer. penCapStyle
penJoinStyle
penStyle
prepareExpressions
Prepares all data defined property expressions for evaluation. properties
propertyDefinitions
Returns the symbol layer property definitions. renderPolygonStroke
renderPolyline
renderingPass
restoreOldDataDefinedProperties
setColor
The fill color. setCustomDashPatternMapUnitScale
setCustomDashPatternUnit
Sets the units for lengths used in the custom dash pattern. setCustomDashVector
setDataDefinedProperties
Sets the symbol layer’s property collection, used for data defined overrides. setDataDefinedProperty
Sets a data defined property for the layer. setDrawInsidePolygon
setEnabled
Sets whether symbol layer is enabled and should be drawn. setFillColor
Set fill color. setLocked
setMapUnitScale
setOffset
setOffsetMapUnitScale
setOffsetUnit
Sets the units for the line’s offset. setOutputUnit
setPaintEffect
Sets the current paint effect for the layer. setPenCapStyle
setPenJoinStyle
setPenStyle
setRenderingPass
setStrokeColor
Set stroke color. setSubSymbol
set layer’s subsymbol. takes ownership of the passed symbol setUseCustomDashPattern
setWidth
setWidthMapUnitScale
setWidthUnit
Sets the units for the line’s width. startRender
stopRender
strokeColor
Get stroke color. subSymbol
Returns the symbol’s sub symbol, if present. toSld
type
useCustomDashPattern
usedAttributes
Returns the set of attributes referenced by the layer. width
widthMapUnitScale
widthUnit
Returns the units for the line’s width. writeDxf
write as DXF Attributes
PropertyAngle
PropertyArrowHeadLength
PropertyArrowHeadThickness
PropertyArrowHeadType
PropertyArrowStartWidth
PropertyArrowType
PropertyArrowWidth
PropertyBlurRadius
PropertyCapStyle
PropertyCharacter
PropertyCoordinateMode
PropertyCustomDash
PropertyDisplacementX
PropertyDisplacementY
PropertyDistanceX
PropertyDistanceY
PropertyFile
PropertyFillColor
PropertyFillStyle
PropertyGradientReference1IsCentroid
PropertyGradientReference1X
PropertyGradientReference1Y
PropertyGradientReference2IsCentroid
PropertyGradientReference2X
PropertyGradientReference2Y
PropertyGradientSpread
PropertyGradientType
PropertyHeight
PropertyHorizontalAnchor
PropertyInterval
PropertyJoinStyle
PropertyLayerEnabled
PropertyLineAngle
PropertyLineDistance
PropertyName
PropertyOffset
PropertyOffsetAlongLine
PropertyOpacity
PropertyPlacement
PropertyPreserveAspectRatio
PropertySecondaryColor
PropertyShapeburstIgnoreRings
PropertyShapeburstMaxDistance
PropertyShapeburstUseWholeShape
PropertySize
PropertyStrokeColor
PropertyStrokeStyle
PropertyStrokeWidth
PropertyVerticalAnchor
PropertyWidth
-
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.
See also
-
customDashVector
(self) → List[float]¶
-
drawInsidePolygon
(self) → bool¶
-
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 See also
-
setCustomDashVector
(self, vector: Iterable[float])¶
-
setDrawInsidePolygon
(self, drawInsidePolygon: bool)¶
-
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¶
-