Class: QgsMarkerLineSymbolLayer

class qgis.core.QgsMarkerLineSymbolLayer(rotateMarker: bool = DEFAULT_MARKERLINE_ROTATE, interval: float = DEFAULT_MARKERLINE_INTERVAL)

Bases: qgis._core.QgsTemplatedLineSymbolLayerBase

Constructor for QgsMarkerLineSymbolLayer. Creates a marker line with a default marker symbol, placed at the specified interval (in millimeters).

The rotateMarker argument specifies whether individual marker symbols should be rotated to match the line segment alignment.

Line symbol layer type which draws repeating marker symbols along a line feature.

Enums

Methods

clone

color

copyDataDefinedProperties

copyPaintEffect

copyTemplateSymbolProperties

create

Creates a new QgsMarkerLineSymbolLayer, using the settings serialized in the properties map (corresponding to the output from QgsMarkerLineSymbolLayer.properties() ).

createFromSld

Creates a new QgsMarkerLineSymbolLayer from an SLD XML DOM element.

estimateMaxBleed

hasDataDefinedProperties

layerType

renderSymbol

restoreOldDataDefinedProperties

rotateMarker

Shall the marker be rotated.

setColor

setCommonProperties

setDataDefinedProperty

setOutputUnit

setRotateMarker

Shall the marker be rotated.

setSubSymbol

setSymbolAngle

setSymbolLineAngle

setWidth

startRender

stopRender

subSymbol

symbolAngle

toSld

usedAttributes

width

width(self, context: QgsRenderContext) -> float

Signals

Attributes

CentralPoint

CurvePoint

FirstVertex

Interval

LastVertex

Vertex

CentralPoint = 4
CurvePoint = 5
FirstVertex = 3
Interval = 0
LastVertex = 2
Vertex = 1
clone(self) → QgsMarkerLineSymbolLayer
color(self) → QColor
copyDataDefinedProperties()
copyPaintEffect()
copyTemplateSymbolProperties()
create(properties: Dict[str, str] = {}) → QgsSymbolLayer

Creates a new QgsMarkerLineSymbolLayer, using the settings serialized in the properties map (corresponding to the output from QgsMarkerLineSymbolLayer.properties() ).

createFromSld(element: QDomElement) → QgsSymbolLayer

Creates a new QgsMarkerLineSymbolLayer from an SLD XML DOM element.

estimateMaxBleed(self, context: QgsRenderContext) → float
hasDataDefinedProperties(self) → bool
layerType(self) → str
renderSymbol(self, point: Union[QPointF, QPoint], feature: QgsFeature, context: QgsRenderContext, layer: int = -1, selected: bool = False)
restoreOldDataDefinedProperties()
rotateMarker(self) → bool

Shall the marker be rotated.

Returns

True if the marker should be rotated.

Deprecated since version Use: rotateSymbols() instead.

setColor(self, color: Union[QColor, Qt.GlobalColor])
setCommonProperties()
setDataDefinedProperty(self, key: QgsSymbolLayer.Property, property: QgsProperty)
setOutputUnit(self, unit: QgsUnitTypes.RenderUnit)
setRotateMarker(self, rotate: bool)

Shall the marker be rotated.

Deprecated since version Use: setRotateSymbols() instead.

setSubSymbol(self, symbol: QgsSymbol) → bool
setSymbolAngle(self, angle: float)
setSymbolLineAngle(self, angle: float)
setWidth(self, width: float)
startRender(self, context: QgsSymbolRenderContext)
stopRender(self, context: QgsSymbolRenderContext)
subSymbol(self) → QgsSymbol
symbolAngle(self) → float
toSld(self, doc: QDomDocument, element: QDomElement, props: Dict[str, str])
usedAttributes(self, context: QgsRenderContext) → Set[str]
width(self) → float

width(self, context: QgsRenderContext) -> float