QgsAbstract3DSymbol class
3 Abstract base class for 3D symbols that are used by VectorLayer3DRenderer objects.
Contents
3D symbol objects define appearance of GIS data.
Derived classes
- class QgsLine3DSymbol
- 3 3D symbol that draws linestring geometries as planar polygons (created from lines using a buffer with given thickness).
- class QgsPoint3DSymbol
- 3 3D symbol that draws point geometries as 3D objects using one of the predefined shapes.
- class QgsPolygon3DSymbol
- 3 3D symbol that draws polygon geometries as planar polygons, optionally extruded (with added walls).
Public types
- enum Property { PropertyHeight = 0, PropertyExtrusionHeight }
- Data definable properties.
Public static functions
- static auto propertyDefinitions() -> const QgsPropertiesDefinition&
- Returns the symbol layer property definitions.
Public functions
- auto clone() const -> QgsAbstract3DSymbol* pure virtual
- Returns a new instance of the symbol with the same settings.
- auto dataDefinedProperties() -> QgsPropertyCollection&
- Returns a reference to the symbol layer's property collection, used for data defined overrides.
- auto dataDefinedProperties() const -> const QgsPropertyCollection&
- Returns a reference to the symbol layer's property collection, used for data defined overrides.
- void readXml(const QDomElement& elem, const QgsReadWriteContext& context) pure virtual
- Reads symbol configuration from the given DOM element.
- void setDataDefinedProperties(const QgsPropertyCollection& collection)
- Sets the symbol layer's property collection, used for data defined overrides.
- auto type() const -> QString pure virtual
- Returns identifier of symbol type. Each 3D symbol implementation should return a different type.
- void writeXml(QDomElement& elem, const QgsReadWriteContext& context) const pure virtual
- Writes symbol configuration to the given DOM element.
Enum documentation
enum QgsAbstract3DSymbol:: Property
Data definable properties.
| Enumerators | |
|---|---|
| PropertyHeight |
Height (altitude) |
| PropertyExtrusionHeight |
Extrusion height (zero means no extrusion) |