16 #ifndef QGSABSTRACT3DSYMBOL_H
17 #define QGSABSTRACT3DSYMBOL_H
19 #include "qgis_core.h"
51 virtual QString
type()
const = 0;
65 virtual QList< QgsWkbTypes::GeometryType > compatibleGeometryTypes()
const;
91 virtual bool exportGeometries(
Qgs3DSceneExporter *exporter, Qt3DCore::QEntity *entity,
const QString &objectNamePrefix )
const SIP_SKIP;
102 static void initPropertyDefinitions();
Entity that handles the exporting of 3D scene.
QgsPropertyCollection & dataDefinedProperties()
Returns a reference to the symbol layer's property collection, used for data defined overrides.
virtual ~QgsAbstract3DSymbol()=default
virtual void readXml(const QDomElement &elem, const QgsReadWriteContext &context)=0
Reads symbol configuration from the given DOM element.
const QgsPropertyCollection & dataDefinedProperties() const
Returns a reference to the symbol layer's property collection, used for data defined overrides.
virtual QString type() const =0
Returns identifier of symbol type. Each 3D symbol implementation should return a different type.
virtual QgsAbstract3DSymbol * clone() const =0
Returns a new instance of the symbol with the same settings.
Property
Data definable properties.
@ PropertyExtrusionHeight
Extrusion height (zero means no extrusion)
void setDataDefinedProperties(const QgsPropertyCollection &collection)
Sets the symbol layer's property collection, used for data defined overrides.
virtual void writeXml(QDomElement &elem, const QgsReadWriteContext &context) const =0
Writes symbol configuration to the given DOM element.
QgsPropertyCollection mDataDefinedProperties
A grouped map of multiple QgsProperty objects, each referenced by a integer key value.
The class is used as a container of context for various read/write operations on other objects.
QMap< int, QgsPropertyDefinition > QgsPropertiesDefinition
Definition of available properties.