QGIS API Documentation
3.2.0-Bonn (bc43194)
|
3 Abstract base class for 3D symbols that are used by VectorLayer3DRenderer objects. More...
#include <qgsabstract3dsymbol.h>
Public Types | |
enum | Property { PropertyHeight = 0, PropertyExtrusionHeight } |
Data definable properties. More... | |
Public Member Functions | |
virtual | ~QgsAbstract3DSymbol ()=default |
virtual QgsAbstract3DSymbol * | clone () const =0 |
Returns a new instance of the symbol with the same settings. More... | |
QgsPropertyCollection & | dataDefinedProperties () |
Returns a reference to the symbol layer's property collection, used for data defined overrides. More... | |
const QgsPropertyCollection & | dataDefinedProperties () const |
Returns a reference to the symbol layer's property collection, used for data defined overrides. More... | |
virtual void | readXml (const QDomElement &elem, const QgsReadWriteContext &context)=0 |
Reads symbol configuration from the given DOM element. More... | |
void | setDataDefinedProperties (const QgsPropertyCollection &collection) |
Sets the symbol layer's property collection, used for data defined overrides. More... | |
virtual QString | type () const =0 |
Returns identifier of symbol type. Each 3D symbol implementation should return a different type. More... | |
virtual void | writeXml (QDomElement &elem, const QgsReadWriteContext &context) const =0 |
Writes symbol configuration to the given DOM element. More... | |
Static Public Member Functions | |
static const QgsPropertiesDefinition & | propertyDefinitions () |
Returns the symbol layer property definitions. More... | |
Protected Attributes | |
QgsPropertyCollection | mDataDefinedProperties |
3 Abstract base class for 3D symbols that are used by VectorLayer3DRenderer objects.
3D symbol objects define appearance of GIS data.
Definition at line 38 of file qgsabstract3dsymbol.h.
Data definable properties.
Enumerator | |
---|---|
PropertyHeight | Height (altitude) |
PropertyExtrusionHeight | Extrusion height (zero means no extrusion) |
Definition at line 54 of file qgsabstract3dsymbol.h.
|
virtualdefault |
|
pure virtual |
Returns a new instance of the symbol with the same settings.
Implemented in QgsPoint3DSymbol, QgsPolygon3DSymbol, and QgsLine3DSymbol.
|
inline |
Returns a reference to the symbol layer's property collection, used for data defined overrides.
Definition at line 64 of file qgsabstract3dsymbol.h.
|
inline |
Returns a reference to the symbol layer's property collection, used for data defined overrides.
Definition at line 67 of file qgsabstract3dsymbol.h.
|
static |
Returns the symbol layer property definitions.
Definition at line 22 of file qgsabstract3dsymbol.cpp.
|
pure virtual |
Reads symbol configuration from the given DOM element.
Implemented in QgsPoint3DSymbol, QgsPolygon3DSymbol, and QgsLine3DSymbol.
|
inline |
Sets the symbol layer's property collection, used for data defined overrides.
Definition at line 70 of file qgsabstract3dsymbol.h.
|
pure virtual |
Returns identifier of symbol type. Each 3D symbol implementation should return a different type.
Implemented in QgsPoint3DSymbol, QgsPolygon3DSymbol, and QgsLine3DSymbol.
|
pure virtual |
Writes symbol configuration to the given DOM element.
Implemented in QgsPoint3DSymbol, QgsPolygon3DSymbol, and QgsLine3DSymbol.
|
protected |
Definition at line 73 of file qgsabstract3dsymbol.h.