Class: QgsPoint3DSymbol¶
-
class
qgis.3d.
QgsPoint3DSymbol
¶ Bases:
qgis._3d.QgsAbstract3DSymbol
Constructor for
QgsPoint3DSymbol
with defaultQgsMarkerSymbol
as the billboardSymbolQgsPoint3DSymbol(other:
QgsPoint3DSymbol
) Copy Constructor for QgsPoint3DSymbol3D symbol that draws point geometries as 3D objects using one of the predefined shapes.
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 altitude (whether to clamp to feature to terrain)
Returns a symbol for billboard
Returns transform for billboards
- rtype
QgsAbstract3DSymbol
Returns material used for shading of the symbol
- param elem
Sets method that determines altitude (whether to clamp to feature to terrain)
Set symbol for billboard and the ownership is transferred
Sets material used for shading of the symbol
Sets 3D shape for points
Sets a key-value dictionary of point shape properties
Sets transform for individual objects represented by the symbol
Returns 3D shape for points
Returns shape enum value from a string
Returns a key-value dictionary of point shape properties
Returns string from a shape enum value
Returns transform for individual objects represented by the symbol
- rtype
str
- param elem
Attributes
-
Billboard
= 8¶
-
Cone
= 2¶
-
Cube
= 3¶
-
Cylinder
= 0¶
-
ExtrudedText
= 6¶
-
Model
= 7¶
-
Plane
= 5¶
-
class
Shape
¶ Bases:
int
-
Sphere
= 1¶
-
Torus
= 4¶
-
altitudeClamping
(self) → Qgs3DTypes.AltitudeClamping¶ Returns method that determines altitude (whether to clamp to feature to terrain)
- Return type
-
billboardSymbol
(self) → QgsMarkerSymbol¶ Returns a symbol for billboard
- Return type
-
billboardTransform
(self) → QMatrix4x4¶ Returns transform for billboards
- Return type
QMatrix4x4
-
clone
(self) → QgsAbstract3DSymbol¶ - Return type
-
material
(self) → QgsPhongMaterialSettings¶ Returns material used for shading of the symbol
- Return type
-
readXml
(self, elem: QDomElement, context: QgsReadWriteContext)¶ - Parameters
elem (QDomElement) –
context (QgsReadWriteContext) –
-
setAltitudeClamping
(self, altClamping: Qgs3DTypes.AltitudeClamping)¶ Sets method that determines altitude (whether to clamp to feature to terrain)
- Parameters
altClamping (Qgs3DTypes.AltitudeClamping) –
-
setBillboardSymbol
(self, symbol: QgsMarkerSymbol)¶ Set symbol for billboard and the ownership is transferred
- Parameters
symbol (QgsMarkerSymbol) –
-
setMaterial
(self, material: QgsPhongMaterialSettings)¶ Sets material used for shading of the symbol
- Parameters
material (QgsPhongMaterialSettings) –
-
setShape
(self, shape: QgsPoint3DSymbol.Shape)¶ Sets 3D shape for points
- Parameters
shape (QgsPoint3DSymbol.Shape) –
-
setShapeProperties
(self, properties: Dict[str, Any])¶ Sets a key-value dictionary of point shape properties
- Parameters
properties (Dict[str) –
-
setTransform
(self, transform: QMatrix4x4)¶ Sets transform for individual objects represented by the symbol
- Parameters
transform (QMatrix4x4) –
-
shape
(self) → QgsPoint3DSymbol.Shape¶ Returns 3D shape for points
- Return type
-
shapeFromString
(shape: str) → QgsPoint3DSymbol.Shape¶ Returns shape enum value from a string
- Parameters
shape (str) –
- Return type
-
shapeProperties
(self) → Dict[str, Any]¶ Returns a key-value dictionary of point shape properties
- Return type
Dict[str, Any]
-
shapeToString
(shape: QgsPoint3DSymbol.Shape) → str¶ Returns string from a shape enum value
- Parameters
shape (QgsPoint3DSymbol.Shape) –
- Return type
str
-
transform
(self) → QMatrix4x4¶ Returns transform for individual objects represented by the symbol
- Return type
QMatrix4x4
-
type
(self) → str¶ - Return type
str
-
writeXml
(self, elem: QDomElement, context: QgsReadWriteContext)¶ - Parameters
elem (QDomElement) –
context (QgsReadWriteContext) –