Class: QgsLine3DSymbol¶
-
class
qgis.3d.
QgsLine3DSymbol
¶ Bases:
qgis._3d.QgsAbstract3DSymbol
Constructor for QgsLine3DSymbol
QgsLine3DSymbol(
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.
Methods
Returns method that determines how altitude is bound to individual vertices
Returns method that determines altitude (whether to clamp to feature to terrain)
- rtype
QgsAbstract3DSymbol
Returns extrusion height (in map units)
Returns height (altitude) of the symbol (in map units)
Returns material used for shading of the symbol
- param elem
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 material used for shading of the symbol
Sets whether the renderer will render data with simple lines (otherwise it uses buffer)
Sets width of the line symbol (in map units)
- rtype
str
Returns width of the line symbol (in map units)
- param elem
-
altitudeBinding
(self) → Qgs3DTypes.AltitudeBinding¶ Returns method that determines how altitude is bound to individual vertices
- Return type
-
altitudeClamping
(self) → Qgs3DTypes.AltitudeClamping¶ Returns method that determines altitude (whether to clamp to feature to terrain)
- Return type
-
clone
(self) → QgsAbstract3DSymbol¶ - Return type
-
extrusionHeight
(self) → float¶ Returns extrusion height (in map units)
- Return type
float
-
height
(self) → float¶ Returns height (altitude) of the symbol (in map units)
- Return type
float
-
material
(self) → QgsPhongMaterialSettings¶ Returns material used for shading of the symbol
- Return type
-
readXml
(self, elem: QDomElement, context: QgsReadWriteContext)¶ - Parameters
elem (QDomElement) –
context (QgsReadWriteContext) –
-
renderAsSimpleLines
(self) → bool¶ Returns whether the renderer will render data with simple lines (otherwise it uses buffer)
- Return type
bool
-
setAltitudeBinding
(self, altBinding: Qgs3DTypes.AltitudeBinding)¶ Sets method that determines how altitude is bound to individual vertices
- Parameters
altBinding (Qgs3DTypes.AltitudeBinding) –
-
setAltitudeClamping
(self, altClamping: Qgs3DTypes.AltitudeClamping)¶ Sets method that determines altitude (whether to clamp to feature to terrain)
- Parameters
altClamping (Qgs3DTypes.AltitudeClamping) –
-
setExtrusionHeight
(self, extrusionHeight: float)¶ Sets extrusion height (in map units)
- Parameters
extrusionHeight (float) –
-
setHeight
(self, height: float)¶ Sets height (altitude) of the symbol (in map units)
- Parameters
height (float) –
-
setMaterial
(self, material: QgsPhongMaterialSettings)¶ Sets material used for shading of the symbol
- Parameters
material (QgsPhongMaterialSettings) –
-
setRenderAsSimpleLines
(self, enabled: bool)¶ Sets whether the renderer will render data with simple lines (otherwise it uses buffer)
- Parameters
enabled (bool) –
-
setWidth
(self, width: float)¶ Sets width of the line symbol (in map units)
- Parameters
width (float) –
-
type
(self) → str¶ - Return type
str
-
width
(self) → float¶ Returns width of the line symbol (in map units)
- Return type
float
-
writeXml
(self, elem: QDomElement, context: QgsReadWriteContext)¶ - Parameters
elem (QDomElement) –
context (QgsReadWriteContext) –