Subgroup: Fill

Class: QgsFillSymbol

class qgis.core.QgsFillSymbol(layers: object = QgsSymbolLayerList())

Bases: qgis._core.QgsSymbol

Methods

appendSymbolLayer Append symbol layer at the end of the list Ownership will be transferred.
asImage Generate symbol as image
bigSymbolPreviewImage Returns a large (roughly 100x100 pixel) preview image for the symbol.
changeSymbolLayer delete layer at specified index and set a new one
clipFeaturesToExtent Returns whether features drawn by the symbol will be clipped to the render context’s extent.
clone
cloneLayers
color
createSimple Create a fill symbol with one symbol layer: SimpleFill with specified properties.
defaultSymbol return new default symbol for specified geometry type
deleteSymbolLayer delete symbol layer at specified index
drawPreviewIcon Draw icon of the symbol that occupyies area given by size using the painter.
dump
exportImage export symbol as image format. PNG and SVG supported
hasDataDefinedProperties Returns whether the symbol utilizes any data defined properties.
insertSymbolLayer Insert symbol layer to specified index Ownership will be transferred.
layer
mapUnitScale
opacity Returns the opacity for the symbol.
outputUnit Returns the units to use for sizes and widths within the symbol.
renderFeature Render a feature.
renderHints Returns the rendering hint flags for the symbol.
renderPolygon
renderUsingLayer
renderVertexMarker
setAngle
setClipFeaturesToExtent Sets whether features drawn by the symbol should be clipped to the render context’s extent.
setColor
setLayer
setMapUnitScale
setOpacity Sets the opacity for the symbol.
setOutputUnit Sets the units to use for sizes and widths within the symbol.
setRenderHints Sets rendering hint flags for the symbol.
startRender Begins the rendering process for the symbol.
stopRender Ends the rendering process.
symbolLayer Returns a specific symbol layers contained in the symbol.
symbolLayerCount Returns total number of symbol layers contained in the symbol.
symbolLayers Returns list of symbol layers contained in the symbol.
symbolRenderContext Returns the symbol render context.
takeSymbolLayer Remove symbol layer from the list and return pointer to it.
toSld
type
usedAttributes Return a list of attributes required to render this feature.

Attributes

DynamicRotation
Fill
Hybrid
Line
Marker
ScaleArea
ScaleDiameter
clone(self) → QgsFillSymbol
cloneLayers()
createSimple(properties: Dict[str, str]) → QgsFillSymbol

Create a fill symbol with one symbol layer: SimpleFill with specified properties. This is a convenience method for easier creation of fill symbols.

renderPolygon(self, points: QPolygonF, rings: Iterable[QPolygonF], f: QgsFeature, context: QgsRenderContext, layer: int = -1, selected: bool = False)
renderUsingLayer()
renderVertexMarker()
setAngle(self, angle: float)