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:
QgsLineSymbolLayer
QgsSimpleLineSymbolLayer(
QgsSimpleLineSymbolLayer
)- Parameters
color (Union[QColor) –
width (float = DEFAULT_SIMPLELINE_WIDTH) –
penStyle –
-
clone
(self) → QgsSimpleLineSymbolLayer¶ - Return type
-
copyDataDefinedProperties
()¶
-
copyPaintEffect
()¶
-
create
(properties: Dict[str, str] = {}) → QgsSymbolLayer¶ - Parameters
properties (Dict[str) –
- Return type
-
createFromSld
(element: QDomElement) → QgsSymbolLayer¶ - Parameters
element (QDomElement) –
- Return type
-
customDashPatternMapUnitScale
(self) → QgsMapUnitScale¶ - Return type
-
customDashPatternUnit
(self) → QgsUnitTypes.RenderUnit¶ Returns the units for lengths used in the custom dash pattern.
See also
- Return type
-
customDashVector
(self) → List[float]¶ - Return type
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
- Return type
bool
-
dxfColor
(self, context: QgsSymbolRenderContext) → QColor¶ - Parameters
context (QgsSymbolRenderContext) –
- Return type
QColor
-
dxfCustomDashPattern
(self) → Tuple[List[float], QgsUnitTypes.RenderUnit]¶ - Return type
Tuple[List[float], QgsUnitTypes.RenderUnit]
-
dxfOffset
(self, e: QgsDxfExport, context: QgsSymbolRenderContext) → float¶ - Parameters
e (QgsDxfExport) –
context (QgsSymbolRenderContext) –
- Return type
float
-
dxfPenStyle
(self) → Qt.PenStyle¶ - Return type
Qt.PenStyle
-
dxfWidth
(self, e: QgsDxfExport, context: QgsSymbolRenderContext) → float¶ - Parameters
e (QgsDxfExport) –
context (QgsSymbolRenderContext) –
- Return type
float
-
estimateMaxBleed
(self, context: QgsRenderContext) → float¶ - Parameters
context (QgsRenderContext) –
- Return type
float
-
layerType
(self) → str¶ - Return type
str
-
mapUnitScale
(self) → QgsMapUnitScale¶ - Return type
-
ogrFeatureStyle
(self, mmScaleFactor: float, mapUnitScaleFactor: float) → str¶ - Parameters
mmScaleFactor (float) –
mapUnitScaleFactor (float) –
- Return type
str
-
outputUnit
(self) → QgsUnitTypes.RenderUnit¶ - Return type
-
penCapStyle
(self) → Qt.PenCapStyle¶ - Return type
Qt.PenCapStyle
-
penJoinStyle
(self) → Qt.PenJoinStyle¶ - Return type
Qt.PenJoinStyle
-
penStyle
(self) → Qt.PenStyle¶ - Return type
Qt.PenStyle
-
properties
(self) → Dict[str, str]¶ - Return type
Dict[str, str]
-
renderPolygonStroke
(self, points: QPolygonF, rings: Iterable[QPolygonF], context: QgsSymbolRenderContext)¶ - Parameters
points (QPolygonF) –
rings (Iterable[QPolygonF]) –
context (QgsSymbolRenderContext) –
-
renderPolyline
(self, points: QPolygonF, context: QgsSymbolRenderContext)¶ - Parameters
points (QPolygonF) –
context (QgsSymbolRenderContext) –
-
restoreOldDataDefinedProperties
()¶
-
setCustomDashPatternMapUnitScale
(self, scale: QgsMapUnitScale)¶ - Parameters
scale (QgsMapUnitScale) –
-
setCustomDashPatternUnit
(self, unit: QgsUnitTypes.RenderUnit)¶ Sets the units for lengths used in the custom dash pattern.
- Parameters
unit (QgsUnitTypes.RenderUnit) – length units
See also
-
setCustomDashVector
(self, vector: Iterable[float])¶ - Parameters
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
- Parameters
drawInsidePolygon (bool) –
-
setMapUnitScale
(self, scale: QgsMapUnitScale)¶ - Parameters
scale (QgsMapUnitScale) –
-
setOutputUnit
(self, unit: QgsUnitTypes.RenderUnit)¶ - Parameters
unit (QgsUnitTypes.RenderUnit) –
-
setPenCapStyle
(self, style: Qt.PenCapStyle)¶ - Parameters
style (Qt.PenCapStyle) –
-
setPenJoinStyle
(self, style: Qt.PenJoinStyle)¶ - Parameters
style (Qt.PenJoinStyle) –
-
setPenStyle
(self, style: Qt.PenStyle)¶ - Parameters
style (Qt.PenStyle) –
-
setUseCustomDashPattern
(self, b: bool)¶ - Parameters
b (bool) –
-
startRender
(self, context: QgsSymbolRenderContext)¶ - Parameters
context (QgsSymbolRenderContext) –
-
stopRender
(self, context: QgsSymbolRenderContext)¶ - Parameters
context (QgsSymbolRenderContext) –
-
toSld
(self, doc: QDomDocument, element: QDomElement, props: Dict[str, str])¶ - Parameters
doc (QDomDocument) –
element (QDomElement) –
props (Dict[str) –
-
useCustomDashPattern
(self) → bool¶ - Return type
bool