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
copyDataDefinedProperties
copyPaintEffect
create
createFromSld
customDashPatternMapUnitScale
customDashPatternUnit
Returns the units for lengths used in the custom dash pattern. customDashVector
drawInsidePolygon
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
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.
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¶
-