Class: QgsNullSymbolRenderer

class qgis.core.QgsNullSymbolRenderer

Bases: 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.

Methods

clone

rtype

QgsFeatureRenderer

convertFromRenderer

Creates a QgsNullSymbolRenderer from an existing renderer.

convertSymbolRotation

convertSymbolSizeScale

copyRendererData

create

Creates a null renderer from XML element.

dump

rtype

str

originalSymbolForFeature

param feature

renderFeature

param feature

renderFeatureWithSymbol

renderVertexMarker

renderVertexMarkerPolygon

renderVertexMarkerPolyline

save

param doc

stopRender

param context

symbolForFeature

param feature

symbols

param context

usedAttributes

param context

willRenderFeature

param feature

clone(self) → QgsFeatureRenderer
Return type

QgsFeatureRenderer

convertFromRenderer(renderer: QgsFeatureRenderer) → QgsNullSymbolRenderer

Creates a QgsNullSymbolRenderer from an existing renderer.

Parameters

renderer (QgsFeatureRenderer) – renderer to convert from

Return type

QgsNullSymbolRenderer

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
Return type

QgsFeatureRenderer

Returns

new null symbol renderer

dump(self) → str
Return type

str

originalSymbolForFeature(self, feature: QgsFeature, context: QgsRenderContext) → QgsSymbol
Parameters
Return type

QgsSymbol

renderFeature(self, feature: QgsFeature, context: QgsRenderContext, layer: int = -1, selected: bool = False, drawVertexMarker: bool = False) → bool
Parameters
  • feature (QgsFeature) –

  • context (QgsRenderContext) –

  • layer (int = -1) –

  • selected (bool = False) –

  • drawVertexMarker (bool = False) –

Return type

bool

renderFeatureWithSymbol()
renderVertexMarker()
renderVertexMarkerPolygon()
renderVertexMarkerPolyline()
save(self, doc: QDomDocument, context: QgsReadWriteContext) → QDomElement
Parameters
Return type

QDomElement

stopRender(self, context: QgsRenderContext)
Parameters

context (QgsRenderContext) –

symbolForFeature(self, feature: QgsFeature, context: QgsRenderContext) → QgsSymbol
Parameters
Return type

QgsSymbol

symbols(self, context: QgsRenderContext) → List[QgsSymbol]
Parameters

context (QgsRenderContext) –

Return type

List[QgsSymbol]

usedAttributes(self, context: QgsRenderContext) → Set[str]
Parameters

context (QgsRenderContext) –

Return type

Set[str]

willRenderFeature(self, feature: QgsFeature, context: QgsRenderContext) → bool
Parameters
Return type

bool