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
Returns the units for lengths used in the custom dash pattern.
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.
Sets the units for lengths used in the custom dash pattern.
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.
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¶ 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.
See also
-
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)¶ 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.
See also
-
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¶
-