Class: QgsLine3DSymbol¶
3D symbol that draws linestring geometries as planar polygons (created from lines using a buffer with given thickness).
Warning
This is not considered stable API, and may change in future QGIS releases. It is exposed to the Python bindings as a tech preview only.
Class Hierarchy¶
Base classes¶
Abstract base class for 3D symbols that are used by VectorLayer3DRenderer objects.  | 
Methods
Returns method that determines how altitude is bound to individual vertices  | 
|
Returns method that determines altitude (whether to clamp to feature to terrain)  | 
|
Returns extrusion height (in map units)  | 
|
Returns height (altitude) of the symbol (in map units)  | 
|
Returns material settings used for shading of the symbol  | 
|
Returns vertical offset of the symbol (in map units)  | 
|
Returns whether the renderer will render data with simple lines (otherwise it uses buffer)  | 
|
Sets method that determines how altitude is bound to individual vertices  | 
|
Sets method that determines altitude (whether to clamp to feature to terrain)  | 
|
Sets extrusion height (in map units)  | 
|
Sets height (altitude) of the symbol (in map units)  | 
|
Sets the material settings used for shading of the symbol.  | 
|
Sets vertical offset of the symbol (in map units)  | 
|
Sets whether the renderer will render data with simple lines (otherwise it uses buffer)  | 
|
Sets width of the line symbol (in map units)  | 
|
Returns width of the line symbol (in map units)  | 
Static Methods
Creates a new QgsLine3DSymbol.  | 
- class qgis._3d.QgsLine3DSymbol[source]¶
 Bases:
QgsAbstract3DSymbol- altitudeBinding(self) Qgis.AltitudeBinding[source]¶
 Returns method that determines how altitude is bound to individual vertices
- Return type:
 
- altitudeClamping(self) Qgis.AltitudeClamping[source]¶
 Returns method that determines altitude (whether to clamp to feature to terrain)
- Return type:
 
- static create() QgsAbstract3DSymbol | None[source]¶
 Creates a new QgsLine3DSymbol.
Caller takes ownership of the returned symbol.
- Return type:
 Optional[QgsAbstract3DSymbol]
- height(self) float[source]¶
 Returns height (altitude) of the symbol (in map units)
Deprecated since version 3.36: Use
offset()instead.- Return type:
 float
- materialSettings(self) QgsAbstractMaterialSettings | None[source]¶
 Returns material settings used for shading of the symbol
- Return type:
 Optional[QgsAbstractMaterialSettings]
- offset(self) float[source]¶
 Returns vertical offset of the symbol (in map units)
Added in version 3.36.
- Return type:
 float
- renderAsSimpleLines(self) bool[source]¶
 Returns whether the renderer will render data with simple lines (otherwise it uses buffer)
- Return type:
 bool
- setAltitudeBinding(self, altBinding: Qgis.AltitudeBinding)[source]¶
 Sets method that determines how altitude is bound to individual vertices
- Parameters:
 altBinding (Qgis.AltitudeBinding)
- setAltitudeClamping(self, altClamping: Qgis.AltitudeClamping)[source]¶
 Sets method that determines altitude (whether to clamp to feature to terrain)
- Parameters:
 altClamping (Qgis.AltitudeClamping)
- setExtrusionHeight(self, extrusionHeight: float)[source]¶
 Sets extrusion height (in map units)
- Parameters:
 extrusionHeight (float)
- setHeight(self, height: float)[source]¶
 Sets height (altitude) of the symbol (in map units)
Deprecated since version 3.36: Use
setOffset()instead.- Parameters:
 height (float)
- setMaterialSettings(self, materialSettings: QgsAbstractMaterialSettings | None)[source]¶
 Sets the
materialsettings used for shading of the symbol.Ownership of
materialis transferred to the symbol.- Parameters:
 materialSettings (Optional[QgsAbstractMaterialSettings])
- setOffset(self, offset: float)[source]¶
 Sets vertical offset of the symbol (in map units)
Added in version 3.36.
- Parameters:
 offset (float)
- setRenderAsSimpleLines(self, enabled: bool)[source]¶
 Sets whether the renderer will render data with simple lines (otherwise it uses buffer)
- Parameters:
 enabled (bool)