Class: Qgs25DRenderer

class qgis.core.Qgs25DRenderer

Bases: qgis._core.QgsFeatureRenderer

Enums

Methods

accept

clone

convertFromRenderer

Try to convert from an existing renderer.

convertSymbolRotation

convertSymbolSizeScale

copyRendererData

create

Create a new 2.5D renderer from XML

renderFeatureWithSymbol

renderVertexMarker

renderVertexMarkerPolygon

renderVertexMarkerPolyline

roofColor

Gets the roof color

save

setRoofColor

Set the roof color

setShadowColor

Set the shadow’s color

setShadowEnabled

Enable or disable the shadow

setShadowSpread

Set the shadow’s spread distance in map units

setWallColor

Set the wall color

setWallShadingEnabled

Set wall shading enabled

shadowColor

Gets the shadow’s color

shadowEnabled

Is the shadow enabled

shadowSpread

Gets the shadow’s spread distance in map units

startRender

stopRender

symbolForFeature

symbols

usedAttributes

wallColor

Gets the wall color

wallShadingEnabled

Gets wall shading enabled

Signals

Attributes

accept(self, visitor: QgsStyleEntityVisitorInterface) → bool
clone(self) → QgsFeatureRenderer
convertFromRenderer(renderer: QgsFeatureRenderer) → Qgs25DRenderer

Try to convert from an existing renderer. If it is not of the same type we assume that the internals are not compatible and create a new default 2.5D renderer.

convertSymbolRotation()
convertSymbolSizeScale()
copyRendererData()
create(element: QDomElement, context: QgsReadWriteContext) → QgsFeatureRenderer

Create a new 2.5D renderer from XML

Parameters
  • element – XML information

  • context – reading context

renderFeatureWithSymbol()
renderVertexMarker()
renderVertexMarkerPolygon()
renderVertexMarkerPolyline()
roofColor(self) → QColor

Gets the roof color

save(self, doc: QDomDocument, context: QgsReadWriteContext) → QDomElement
setRoofColor(self, roofColor: Union[QColor, Qt.GlobalColor])

Set the roof color

setShadowColor(self, shadowColor: Union[QColor, Qt.GlobalColor])

Set the shadow’s color

setShadowEnabled(self, value: bool)

Enable or disable the shadow

setShadowSpread(self, shadowSpread: float)

Set the shadow’s spread distance in map units

setWallColor(self, wallColor: Union[QColor, Qt.GlobalColor])

Set the wall color

setWallShadingEnabled(self, enabled: bool)

Set wall shading enabled

shadowColor(self) → QColor

Gets the shadow’s color

shadowEnabled(self) → bool

Is the shadow enabled

shadowSpread(self) → float

Gets the shadow’s spread distance in map units

startRender(self, context: QgsRenderContext, fields: QgsFields)
stopRender(self, context: QgsRenderContext)
symbolForFeature(self, feature: QgsFeature, context: QgsRenderContext) → QgsSymbol
symbols(self, context: QgsRenderContext) → List[QgsSymbol]
usedAttributes(self, context: QgsRenderContext) → Set[str]
wallColor(self) → QColor

Gets the wall color

wallShadingEnabled(self) → bool

Gets wall shading enabled