Class: QgsDirectionalLightSettings¶
Definition of a directional light in a 3D map scene
Added in version 3.16.
Class Hierarchy¶
Base classes¶
Base class for light sources in 3d scenes.  | 
Methods
Returns color of the light  | 
|
Returns the direction of the light in degrees  | 
|
Returns intensity of the light  | 
|
Sets color of the light  | 
|
Sets the direction of the light in degrees  | 
|
Sets intensity of the light  | 
- class qgis._3d.QgsDirectionalLightSettings[source]¶
 Bases:
QgsLightSource- __init__()
 Construct a directional light with default values
- __init__(a0: QgsDirectionalLightSettings)
 - Parameters:
 
- direction(self) QgsVector3D[source]¶
 Returns the direction of the light in degrees
- Return type:
 
- setColor(self, color: QColor | Qt.GlobalColor)[source]¶
 Sets color of the light
- Parameters:
 color (Union[QColor, Qt.GlobalColor])
- setDirection(self, direction: QgsVector3D)[source]¶
 Sets the direction of the light in degrees
- Parameters:
 direction (QgsVector3D)