Class: Qgs25DRenderer¶
A vector renderer which represents 3D features in an isometric view.
Class Hierarchy¶
Base classes¶
Abstract base class for all 2D vector feature renderers.  | 
Methods
Gets the roof color  | 
|
Set the roof color  | 
|
Set the shadow's color  | 
|
Enable or disable the shadow  | 
|
Set the shadow's spread distance in map units  | 
|
Set the wall color  | 
|
Set wall shading enabled  | 
|
Gets the shadow's color  | 
|
Is the shadow enabled  | 
|
Gets the shadow's spread distance in map units  | 
|
Gets the wall color  | 
|
Gets wall shading enabled  | 
Static Methods
Try to convert from an existing renderer.  | 
|
Create a new 2.5D renderer from XML  | 
- 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:
 element (QDomElement) – XML information
context (QgsReadWriteContext) – reading context
- Return type:
 Optional[QgsFeatureRenderer]
- 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])
- 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])