Class: QgsNullSymbolRenderer

class qgis.core.QgsNullSymbolRenderer

Bases: qgis._core.QgsFeatureRenderer

Null symbol renderer. Renderer which draws no symbols for features by default, but allows for labeling and diagrams for the layer. Selected features will also be drawn with a default symbol.

clone(self) → QgsFeatureRenderer
convertFromRenderer(renderer: QgsFeatureRenderer) → QgsNullSymbolRenderer

Creates a QgsNullSymbolRenderer from an existing renderer.

Parameters:renderer – renderer to convert from
Returns:a new renderer if the conversion was possible, otherwise None.
convertSymbolRotation()
convertSymbolSizeScale()
copyRendererData()
create(element: QDomElement, context: QgsReadWriteContext) → QgsFeatureRenderer

Creates a null renderer from XML element.

Parameters:
  • element – DOM element
  • context – reading context
Returns:

new null symbol renderer

dump(self) → str
originalSymbolForFeature(self, feature: QgsFeature, context: QgsRenderContext) → QgsSymbol
renderFeature(self, feature: QgsFeature, context: QgsRenderContext, layer: int = -1, selected: bool = False, drawVertexMarker: bool = False) → bool
renderFeatureWithSymbol()
renderVertexMarker()
renderVertexMarkerPolygon()
renderVertexMarkerPolyline()
save(self, doc: QDomDocument, context: QgsReadWriteContext) → QDomElement
stopRender(self, context: QgsRenderContext)
symbolForFeature(self, feature: QgsFeature, context: QgsRenderContext) → QgsSymbol
symbols(self, context: QgsRenderContext) → object
usedAttributes(self, context: QgsRenderContext) → Set[str]
willRenderFeature(self, feature: QgsFeature, context: QgsRenderContext) → bool