QgsLine3DSymbol class

3 3D symbol that draws linestring geometries as planar polygons (created from lines using a buffer with given thickness).

Base classes

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

Constructors, destructors, conversion operators

QgsLine3DSymbol() defaulted
Constructor for QgsLine3DSymbol.

Public functions

auto altitudeBinding() const -> Qgs3DTypes::AltitudeBinding
Returns method that determines how altitude is bound to individual vertices.
auto altitudeClamping() const -> Qgs3DTypes::AltitudeClamping
Returns method that determines altitude (whether to clamp to feature to terrain)
auto clone() const -> QgsAbstract3DSymbol* override
Returns a new instance of the symbol with the same settings.
auto extrusionHeight() const -> float
Returns extrusion height (in map units)
auto height() const -> float
Returns height (altitude) of the symbol (in map units)
auto material() const -> QgsPhongMaterialSettings
Returns material used for shading of the symbol.
void readXml(const QDomElement& elem, const QgsReadWriteContext& context) override
Reads symbol configuration from the given DOM element.
auto renderAsSimpleLines() const -> bool
Returns whether the renderer will render data with simple lines (otherwise it uses buffer)
void setAltitudeBinding(Qgs3DTypes::AltitudeBinding altBinding)
Sets method that determines how altitude is bound to individual vertices.
void setAltitudeClamping(Qgs3DTypes::AltitudeClamping altClamping)
Sets method that determines altitude (whether to clamp to feature to terrain)
void setExtrusionHeight(float extrusionHeight)
Sets extrusion height (in map units)
void setHeight(float height)
Sets height (altitude) of the symbol (in map units)
void setMaterial(const QgsPhongMaterialSettings& material)
Sets material used for shading of the symbol.
void setRenderAsSimpleLines(bool enabled)
Sets whether the renderer will render data with simple lines (otherwise it uses buffer)
void setWidth(float width)
Sets width of the line symbol (in map units)
auto type() const -> QString override
Returns identifier of symbol type. Each 3D symbol implementation should return a different type.
auto width() const -> float
Returns width of the line symbol (in map units)
void writeXml(QDomElement& elem, const QgsReadWriteContext& context) const override
Writes symbol configuration to the given DOM element.