Class: QgsEllipseSymbolLayer

class qgis.core.QgsEllipseSymbolLayer

Bases: qgis._core.QgsMarkerSymbolLayer

A symbol layer for rendering objects with major and minor axis (e.g. ellipse, rectangle )*

Methods

bounds
clone
copyDataDefinedProperties
copyPaintEffect
create
createFromSld
fillColor
layerType
mapUnitScale
markerOffset
markerOffset2
markerOffsetWithWidthAndHeight
outputUnit
penJoinStyle Gets stroke join style.
properties
renderPoint
restoreOldDataDefinedProperties
setFillColor
setMapUnitScale
setOutputUnit
setPenJoinStyle Set stroke join style.
setStrokeColor
setStrokeStyle
setStrokeWidth
setStrokeWidthMapUnitScale
setStrokeWidthUnit Sets the units for the symbol’s stroke width.
setSymbolHeight
setSymbolHeightMapUnitScale
setSymbolHeightUnit Sets the units for the symbol’s height.
setSymbolName
setSymbolWidth
setSymbolWidthMapUnitScale
setSymbolWidthUnit Sets the units for the symbol’s width.
startRender
stopRender
strokeColor
strokeStyle
strokeWidth
strokeWidthMapUnitScale
strokeWidthUnit Returns the units for the symbol’s stroke width.
symbolHeight
symbolHeightMapUnitScale
symbolHeightUnit Returns the units for the symbol’s height.
symbolName
symbolWidth
symbolWidthMapUnitScale
symbolWidthUnit Returns the units for the symbol’s width.
toSld
writeDxf
writeSldMarker

Signals

Attributes

bounds(self, point: Union[QPointF, QPoint], context: QgsSymbolRenderContext) → QRectF
clone(self) → QgsEllipseSymbolLayer
copyDataDefinedProperties()
copyPaintEffect()
create(properties: Dict[str, str] = {}) → QgsSymbolLayer
createFromSld(element: QDomElement) → QgsSymbolLayer
fillColor(self) → QColor
layerType(self) → str
mapUnitScale(self) → QgsMapUnitScale
markerOffset()
markerOffset2()
markerOffsetWithWidthAndHeight()
outputUnit(self) → QgsUnitTypes.RenderUnit
penJoinStyle(self) → Qt.PenJoinStyle

Gets stroke join style.

New in version 2.16.

properties(self) → Dict[str, str]
renderPoint(self, point: Union[QPointF, QPoint], context: QgsSymbolRenderContext)
restoreOldDataDefinedProperties()
setFillColor(self, c: Union[QColor, Qt.GlobalColor])
setMapUnitScale(self, scale: QgsMapUnitScale)
setOutputUnit(self, unit: QgsUnitTypes.RenderUnit)
setPenJoinStyle(self, style: Qt.PenJoinStyle)

Set stroke join style.

New in version 2.16.

setStrokeColor(self, c: Union[QColor, Qt.GlobalColor])
setStrokeStyle(self, strokeStyle: Qt.PenStyle)
setStrokeWidth(self, w: float)
setStrokeWidthMapUnitScale(self, scale: QgsMapUnitScale)
setStrokeWidthUnit(self, unit: QgsUnitTypes.RenderUnit)

Sets the units for the symbol’s stroke width.

Parameters:unit – symbol units
setSymbolHeight(self, h: float)
setSymbolHeightMapUnitScale(self, scale: QgsMapUnitScale)
setSymbolHeightUnit(self, unit: QgsUnitTypes.RenderUnit)

Sets the units for the symbol’s height.

Parameters:unit – symbol units
setSymbolName(self, name: str)
setSymbolWidth(self, w: float)
setSymbolWidthMapUnitScale(self, scale: QgsMapUnitScale)
setSymbolWidthUnit(self, unit: QgsUnitTypes.RenderUnit)

Sets the units for the symbol’s width.

Parameters:unit – symbol units
startRender(self, context: QgsSymbolRenderContext)
stopRender(self, context: QgsSymbolRenderContext)
strokeColor(self) → QColor
strokeStyle(self) → Qt.PenStyle
strokeWidth(self) → float
strokeWidthMapUnitScale(self) → QgsMapUnitScale
strokeWidthUnit(self) → QgsUnitTypes.RenderUnit

Returns the units for the symbol’s stroke width.

symbolHeight(self) → float
symbolHeightMapUnitScale(self) → QgsMapUnitScale
symbolHeightUnit(self) → QgsUnitTypes.RenderUnit

Returns the units for the symbol’s height.

symbolName(self) → str
symbolWidth(self) → float
symbolWidthMapUnitScale(self) → QgsMapUnitScale
symbolWidthUnit(self) → QgsUnitTypes.RenderUnit

Returns the units for the symbol’s width.

toSld(self, doc: QDomDocument, element: QDomElement, props: Dict[str, str])
writeDxf(self, e: QgsDxfExport, mmMapUnitScaleFactor: float, layerName: str, context: QgsSymbolRenderContext, shift: Union[QPointF, QPoint] = QPointF(0, 0)) → bool
writeSldMarker(self, doc: QDomDocument, element: QDomElement, props: Dict[str, str])