Class: Qgs25DRenderer

A vector renderer which represents 3D features in an isometric view.

Class Hierarchy

Inheritance diagram of qgis.core.Qgs25DRenderer

Base classes

QgsFeatureRenderer

Abstract base class for all 2D vector feature renderers.

class qgis.core.Qgs25DRenderer[source]

Bases: QgsFeatureRenderer

static convertFromRenderer(renderer: QgsFeatureRenderer | None) Qgs25DRenderer | None[source]

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.

Parameters:

renderer (Optional[QgsFeatureRenderer])

Return type:

Optional[Qgs25DRenderer]

static create(element: QDomElement, context: QgsReadWriteContext) QgsFeatureRenderer | None[source]

Create a new 2.5D renderer from XML

Parameters:
Return type:

Optional[QgsFeatureRenderer]

roofColor(self) QColor[source]

Gets the roof color

Return type:

QColor

setRoofColor(self, roofColor: QColor | Qt.GlobalColor)[source]

Set the roof color

Parameters:

roofColor (Union[QColor, Qt.GlobalColor])

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

Set the shadow’s color

Parameters:

shadowColor (Union[QColor, Qt.GlobalColor])

setShadowEnabled(self, value: bool)[source]

Enable or disable the shadow

Parameters:

value (bool)

setShadowSpread(self, shadowSpread: float)[source]

Set the shadow’s spread distance in map units

Parameters:

shadowSpread (float)

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

Set the wall color

Parameters:

wallColor (Union[QColor, Qt.GlobalColor])

setWallShadingEnabled(self, enabled: bool)[source]

Set wall shading enabled

Parameters:

enabled (bool)

shadowColor(self) QColor[source]

Gets the shadow’s color

Return type:

QColor

shadowEnabled(self) bool[source]

Is the shadow enabled

Return type:

bool

shadowSpread(self) float[source]

Gets the shadow’s spread distance in map units

Return type:

float

wallColor(self) QColor[source]

Gets the wall color

Return type:

QColor

wallShadingEnabled(self) bool[source]

Gets wall shading enabled

Return type:

bool