Subgroup: Ellipse

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

angle Returns the rotation angle for the marker, in degrees clockwise from north.
bounds
clone
color The fill color.
copyDataDefinedProperties
copyPaintEffect
create
createFromSld
dataDefinedProperties Returns a reference to the symbol layer’s property collection, used for data defined overrides.
drawPreviewIcon
dxfAngle get angle
dxfBrushColor get brush/fill color
dxfBrushStyle get brush/fill style
dxfColor get color
dxfCustomDashPattern get dash pattern
dxfOffset get offset
dxfPenStyle get pen style
dxfWidth get line width
enabled Returns true if symbol layer is enabled and will be drawn.
estimateMaxBleed Returns the estimated maximum distance which the layer style will bleed outside the drawn shape when drawn in the specified /a context.
fillColor
horizontalAnchorPoint Returns the horizontal anchor point for positioning the symbol.
isCompatibleWithSymbol Returns if the layer can be used below the specified symbol
isLocked
layerType
mapUnitScale
markerOffset
markerOffset2
markerOffsetWithWidthAndHeight
offset Returns the marker’s offset, which is the horizontal and vertical displacement which the rendered marker will have from the original feature’s geometry.
offsetMapUnitScale Returns the map unit scale for the symbol’s offset.
offsetUnit Returns the units for the symbol’s offset.
ogrFeatureStyle
outputUnit
paintEffect Returns the current paint effect for the layer.
penJoinStyle Get stroke join style.
prepareExpressions Prepares all data defined property expressions for evaluation.
properties
propertyDefinitions Returns the symbol layer property definitions.
renderPoint
renderingPass
restoreOldDataDefinedProperties
scaleMethod Returns the method to use for scaling the marker’s size.
setAngle Sets the rotation angle for the marker.
setColor The fill color.
setDataDefinedProperties Sets the symbol layer’s property collection, used for data defined overrides.
setDataDefinedProperty Sets a data defined property for the layer.
setEnabled Sets whether symbol layer is enabled and should be drawn.
setFillColor
setHorizontalAnchorPoint Sets the horizontal anchor point for positioning the symbol.
setLineAngle Sets the line angle modification for the symbol’s angle.
setLocked
setMapUnitScale
setOffset Sets the marker’s offset, which is the horizontal and vertical displacement which the rendered marker should have from the original feature’s geometry.
setOffsetMapUnitScale Sets the map unit scale for the symbol’s offset.
setOffsetUnit Sets the units for the symbol’s offset.
setOutputUnit
setPaintEffect Sets the current paint effect for the layer.
setPenJoinStyle Set stroke join style.
setRenderingPass
setScaleMethod Sets the method to use for scaling the marker’s size.
setSize Sets the symbol size.
setSizeMapUnitScale Sets the map unit scale for the symbol’s size.
setSizeUnit Sets the units for the symbol’s size.
setStrokeColor
setStrokeStyle
setStrokeWidth
setStrokeWidthMapUnitScale
setStrokeWidthUnit Sets the units for the symbol’s stroke width.
setSubSymbol set layer’s subsymbol. takes ownership of the passed symbol
setSymbolHeight
setSymbolHeightMapUnitScale
setSymbolHeightUnit Sets the units for the symbol’s height.
setSymbolName
setSymbolWidth
setSymbolWidthMapUnitScale
setSymbolWidthUnit Sets the units for the symbol’s width.
setVerticalAnchorPoint Sets the vertical anchor point for positioning the symbol.
size Returns the symbol size.
sizeMapUnitScale Returns the map unit scale for the symbol’s size.
sizeUnit Returns the units for the symbol’s size.
startRender
stopRender
strokeColor
strokeStyle
strokeWidth
strokeWidthMapUnitScale
strokeWidthUnit Returns the units for the symbol’s stroke width.
subSymbol Returns the symbol’s sub symbol, if present.
symbolHeight
symbolHeightMapUnitScale
symbolHeightUnit Returns the units for the symbol’s height.
symbolName
symbolWidth
symbolWidthMapUnitScale
symbolWidthUnit Returns the units for the symbol’s width.
toSld
type
usedAttributes Returns the set of attributes referenced by the layer.
verticalAnchorPoint Returns the vertical anchor point for positioning the symbol.
writeDxf
writeSldMarker

Attributes

Bottom
HCenter
Left
PropertyAngle
PropertyArrowHeadLength
PropertyArrowHeadThickness
PropertyArrowHeadType
PropertyArrowStartWidth
PropertyArrowType
PropertyArrowWidth
PropertyBlurRadius
PropertyCapStyle
PropertyCharacter
PropertyCoordinateMode
PropertyCustomDash
PropertyDisplacementX
PropertyDisplacementY
PropertyDistanceX
PropertyDistanceY
PropertyFile
PropertyFillColor
PropertyFillStyle
PropertyGradientReference1IsCentroid
PropertyGradientReference1X
PropertyGradientReference1Y
PropertyGradientReference2IsCentroid
PropertyGradientReference2X
PropertyGradientReference2Y
PropertyGradientSpread
PropertyGradientType
PropertyHeight
PropertyHorizontalAnchor
PropertyInterval
PropertyJoinStyle
PropertyLayerEnabled
PropertyLineAngle
PropertyLineDistance
PropertyName
PropertyOffset
PropertyOffsetAlongLine
PropertyOpacity
PropertyPlacement
PropertyPreserveAspectRatio
PropertySecondaryColor
PropertyShapeburstIgnoreRings
PropertyShapeburstMaxDistance
PropertyShapeburstUseWholeShape
PropertySize
PropertyStrokeColor
PropertyStrokeStyle
PropertyStrokeWidth
PropertyVerticalAnchor
PropertyWidth
Right
Top
VCenter
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

Get 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])