Class: QgsAbstract3DSymbol¶
-
class
qgis.3d.
QgsAbstract3DSymbol
¶ Bases:
sip.wrapper
Abstract base class for 3D symbols that are used by VectorLayer3DRenderer objects.
3D symbol objects define appearance of GIS data.
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 a new instance of the symbol with the same settings
Returns a reference to the symbol layer’s property collection, used for data defined overrides.
Returns the symbol layer property definitions.
Reads symbol configuration from the given DOM element
Sets the symbol layer’s property collection, used for data defined overrides.
Returns identifier of symbol type.
Writes symbol configuration to the given DOM element
Attributes
-
class
Property
¶ Bases:
int
-
PropertyExtrusionHeight
= 1¶
-
PropertyHeight
= 0¶
-
clone
(self) → QgsAbstract3DSymbol¶ Returns a new instance of the symbol with the same settings
- Return type
-
dataDefinedProperties
(self) → QgsPropertyCollection¶ Returns a reference to the symbol layer’s property collection, used for data defined overrides.
- Return type
-
propertyDefinitions
() → Dict[int, QgsPropertyDefinition]¶ Returns the symbol layer property definitions.
- Return type
Dict[int, QgsPropertyDefinition]
-
readXml
(self, elem: QDomElement, context: QgsReadWriteContext)¶ Reads symbol configuration from the given DOM element
- Parameters
elem (QDomElement) –
context (QgsReadWriteContext) –
-
setDataDefinedProperties
(self, collection: QgsPropertyCollection)¶ Sets the symbol layer’s property collection, used for data defined overrides.
- Parameters
collection (QgsPropertyCollection) –
-
type
(self) → str¶ Returns identifier of symbol type. Each 3D symbol implementation should return a different type.
- Return type
str
-
writeXml
(self, elem: QDomElement, context: QgsReadWriteContext)¶ Writes symbol configuration to the given DOM element
- Parameters
elem (QDomElement) –
context (QgsReadWriteContext) –
-
class