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

Inheritance diagram of qgis._3d.QgsLine3DSymbol

Base classes

QgsAbstract3DSymbol

Abstract base class for 3D symbols that are used by VectorLayer3DRenderer objects.

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:

Qgis.AltitudeBinding

altitudeClamping(self) Qgis.AltitudeClamping[source]

Returns method that determines altitude (whether to clamp to feature to terrain)

Return type:

Qgis.AltitudeClamping

static create() QgsAbstract3DSymbol | None[source]

Creates a new QgsLine3DSymbol.

Caller takes ownership of the returned symbol.

Return type:

Optional[QgsAbstract3DSymbol]

extrusionHeight(self) float[source]

Returns extrusion height (in map units)

Return type:

float

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 material settings used for shading of the symbol.

Ownership of material is 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)

setWidth(self, width: float)[source]

Sets width of the line symbol (in map units)

Parameters:

width (float)

width(self) float[source]

Returns width of the line symbol (in map units)

Return type:

float