Class: QgsEllipseSymbolLayer

class qgis.core.QgsEllipseSymbolLayer

Bases: QgsMarkerSymbolLayer

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

Methods

bounds

param point

clone

rtype

QgsEllipseSymbolLayer

copyDataDefinedProperties

copyPaintEffect

create

param properties

createFromSld

param element

fillColor

rtype

QColor

layerType

rtype

str

mapUnitScale

rtype

QgsMapUnitScale

markerOffset

markerOffset2

markerOffsetWithWidthAndHeight

outputUnit

rtype

QgsUnitTypes.RenderUnit

penJoinStyle

Gets stroke join style.

properties

rtype

Dict[str, str]

renderPoint

param point

restoreOldDataDefinedProperties

setFillColor

param c

setMapUnitScale

param scale

setOutputUnit

param unit

setPenJoinStyle

Set stroke join style.

setSize

param size

setStrokeColor

param c

setStrokeStyle

param strokeStyle

setStrokeWidth

param w

setStrokeWidthMapUnitScale

param scale

setStrokeWidthUnit

Sets the units for the symbol’s stroke width.

setSymbolHeight

param h

setSymbolHeightMapUnitScale

param scale

setSymbolHeightUnit

Sets the units for the symbol’s height.

setSymbolName

param name

setSymbolWidth

param w

setSymbolWidthMapUnitScale

param scale

setSymbolWidthUnit

Sets the units for the symbol’s width.

startRender

param context

stopRender

param context

strokeColor

rtype

QColor

strokeStyle

rtype

Qt.PenStyle

strokeWidth

rtype

float

strokeWidthMapUnitScale

rtype

QgsMapUnitScale

strokeWidthUnit

Returns the units for the symbol’s stroke width.

symbolHeight

rtype

float

symbolHeightMapUnitScale

rtype

QgsMapUnitScale

symbolHeightUnit

Returns the units for the symbol’s height.

symbolName

rtype

str

symbolWidth

rtype

float

symbolWidthMapUnitScale

rtype

QgsMapUnitScale

symbolWidthUnit

Returns the units for the symbol’s width.

toSld

param doc

writeDxf

param e

writeSldMarker

param doc

bounds(self, point: Union[QPointF, QPoint], context: QgsSymbolRenderContext) → QRectF
Parameters
Return type

QRectF

clone(self) → QgsEllipseSymbolLayer
Return type

QgsEllipseSymbolLayer

copyDataDefinedProperties()
copyPaintEffect()
create(properties: Dict[str, str] = {}) → QgsSymbolLayer
Parameters

properties (Dict[str) –

Return type

QgsSymbolLayer

createFromSld(element: QDomElement) → QgsSymbolLayer
Parameters

element (QDomElement) –

Return type

QgsSymbolLayer

fillColor(self) → QColor
Return type

QColor

layerType(self) → str
Return type

str

mapUnitScale(self) → QgsMapUnitScale
Return type

QgsMapUnitScale

markerOffset()
markerOffset2()
markerOffsetWithWidthAndHeight()
outputUnit(self) → QgsUnitTypes.RenderUnit
Return type

QgsUnitTypes.RenderUnit

penJoinStyle(self) → Qt.PenJoinStyle

Gets stroke join style.

New in version 2.16.

Return type

Qt.PenJoinStyle

properties(self) → Dict[str, str]
Return type

Dict[str, str]

renderPoint(self, point: Union[QPointF, QPoint], context: QgsSymbolRenderContext)
Parameters
restoreOldDataDefinedProperties()
setFillColor(self, c: Union[QColor, Qt.GlobalColor])
Parameters

c (Union[QColor) –

setMapUnitScale(self, scale: QgsMapUnitScale)
Parameters

scale (QgsMapUnitScale) –

setOutputUnit(self, unit: QgsUnitTypes.RenderUnit)
Parameters

unit (QgsUnitTypes.RenderUnit) –

setPenJoinStyle(self, style: Qt.PenJoinStyle)

Set stroke join style.

New in version 2.16.

Parameters

style (Qt.PenJoinStyle) –

setSize(self, size: float)
Parameters

size (float) –

setStrokeColor(self, c: Union[QColor, Qt.GlobalColor])
Parameters

c (Union[QColor) –

setStrokeStyle(self, strokeStyle: Qt.PenStyle)
Parameters

strokeStyle (Qt.PenStyle) –

setStrokeWidth(self, w: float)
Parameters

w (float) –

setStrokeWidthMapUnitScale(self, scale: QgsMapUnitScale)
Parameters

scale (QgsMapUnitScale) –

setStrokeWidthUnit(self, unit: QgsUnitTypes.RenderUnit)

Sets the units for the symbol’s stroke width.

Parameters

unit (QgsUnitTypes.RenderUnit) – symbol units

setSymbolHeight(self, h: float)
Parameters

h (float) –

setSymbolHeightMapUnitScale(self, scale: QgsMapUnitScale)
Parameters

scale (QgsMapUnitScale) –

setSymbolHeightUnit(self, unit: QgsUnitTypes.RenderUnit)

Sets the units for the symbol’s height.

Parameters

unit (QgsUnitTypes.RenderUnit) – symbol units

setSymbolName(self, name: str)
Parameters

name (str) –

setSymbolWidth(self, w: float)
Parameters

w (float) –

setSymbolWidthMapUnitScale(self, scale: QgsMapUnitScale)
Parameters

scale (QgsMapUnitScale) –

setSymbolWidthUnit(self, unit: QgsUnitTypes.RenderUnit)

Sets the units for the symbol’s width.

Parameters

unit (QgsUnitTypes.RenderUnit) – symbol units

startRender(self, context: QgsSymbolRenderContext)
Parameters

context (QgsSymbolRenderContext) –

stopRender(self, context: QgsSymbolRenderContext)
Parameters

context (QgsSymbolRenderContext) –

strokeColor(self) → QColor
Return type

QColor

strokeStyle(self) → Qt.PenStyle
Return type

Qt.PenStyle

strokeWidth(self) → float
Return type

float

strokeWidthMapUnitScale(self) → QgsMapUnitScale
Return type

QgsMapUnitScale

strokeWidthUnit(self) → QgsUnitTypes.RenderUnit

Returns the units for the symbol’s stroke width.

Return type

QgsUnitTypes.RenderUnit

symbolHeight(self) → float
Return type

float

symbolHeightMapUnitScale(self) → QgsMapUnitScale
Return type

QgsMapUnitScale

symbolHeightUnit(self) → QgsUnitTypes.RenderUnit

Returns the units for the symbol’s height.

Return type

QgsUnitTypes.RenderUnit

symbolName(self) → str
Return type

str

symbolWidth(self) → float
Return type

float

symbolWidthMapUnitScale(self) → QgsMapUnitScale
Return type

QgsMapUnitScale

symbolWidthUnit(self) → QgsUnitTypes.RenderUnit

Returns the units for the symbol’s width.

Return type

QgsUnitTypes.RenderUnit

toSld(self, doc: QDomDocument, element: QDomElement, props: Dict[str, str])
Parameters
  • doc (QDomDocument) –

  • element (QDomElement) –

  • props (Dict[str) –

writeDxf(self, e: QgsDxfExport, mmMapUnitScaleFactor: float, layerName: str, context: QgsSymbolRenderContext, shift: Union[QPointF, QPoint] = QPointF(0, 0)) → bool
Parameters
Return type

bool

writeSldMarker(self, doc: QDomDocument, element: QDomElement, props: Dict[str, str])
Parameters
  • doc (QDomDocument) –

  • element (QDomElement) –

  • props (Dict[str) –