Subgroup: other

Class: QgsCentroidFillSymbolLayer

class qgis.core.QgsCentroidFillSymbolLayer

Bases: qgis._core.QgsFillSymbolLayer

Methods

clone
color
copyDataDefinedProperties
copyPaintEffect
create
createFromSld
layerType
mapUnitScale
outputUnit
pointOnAllParts Returns whether a point is drawn for all parts or only on the biggest part of multi-part features.
pointOnSurface
properties
renderPolygon
restoreOldDataDefinedProperties
setColor
setMapUnitScale
setOutputUnit
setPointOnAllParts Sets whether a point is drawn for all parts or only on the biggest part of multi-part features.
setPointOnSurface
setSubSymbol
startRender
stopRender
subSymbol
toSld
usedAttributes

Signals

Attributes

clone(self) → QgsCentroidFillSymbolLayer
color(self) → QColor
copyDataDefinedProperties()
copyPaintEffect()
create(properties: Dict[str, str] = {}) → QgsSymbolLayer
createFromSld(element: QDomElement) → QgsSymbolLayer
layerType(self) → str
mapUnitScale(self) → QgsMapUnitScale
outputUnit(self) → QgsUnitTypes.RenderUnit
pointOnAllParts(self) → bool

Returns whether a point is drawn for all parts or only on the biggest part of multi-part features.

New in version 2.16.

pointOnSurface(self) → bool
properties(self) → Dict[str, str]
renderPolygon(self, points: QPolygonF, rings: Iterable[QPolygonF], context: QgsSymbolRenderContext)
restoreOldDataDefinedProperties()
setColor(self, color: Union[QColor, Qt.GlobalColor])
setMapUnitScale(self, scale: QgsMapUnitScale)
setOutputUnit(self, unit: QgsUnitTypes.RenderUnit)
setPointOnAllParts(self, pointOnAllParts: bool)

Sets whether a point is drawn for all parts or only on the biggest part of multi-part features.

New in version 2.16.

setPointOnSurface(self, pointOnSurface: bool)
setSubSymbol(self, symbol: QgsSymbol) → bool
startRender(self, context: QgsSymbolRenderContext)
stopRender(self, context: QgsSymbolRenderContext)
subSymbol(self) → QgsSymbol
toSld(self, doc: QDomDocument, element: QDomElement, props: Dict[str, str])
usedAttributes(self, context: QgsRenderContext) → Set[str]