16#ifndef QGSABSTRACT3DSYMBOL_H
17#define QGSABSTRACT3DSYMBOL_H
52 virtual QString
type()
const = 0;
66 virtual QList< Qgis::GeometryType > compatibleGeometryTypes()
const;
92 virtual bool exportGeometries(
Qgs3DSceneExporter *exporter, Qt3DCore::QEntity *entity,
const QString &objectNamePrefix )
const SIP_SKIP;
99 virtual void setDefaultPropertiesFromLayer(
const QgsVectorLayer *layer );
110 static void initPropertyDefinitions();
Entity that handles the exporting of 3D scene.
virtual ~QgsAbstract3DSymbol()=default
virtual void readXml(const QDomElement &elem, const QgsReadWriteContext &context)=0
Reads symbol configuration from the given DOM element.
virtual QString type() const =0
Returns identifier of symbol type. Each 3D symbol implementation should return a different type.
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.
const QgsPropertyCollection & dataDefinedProperties() const
Returns a reference to the symbol layer's property collection, used for data defined overrides.
virtual QgsAbstract3DSymbol * clone() const =0
Returns a new instance of the symbol with the same settings.
virtual void writeXml(QDomElement &elem, const QgsReadWriteContext &context) const =0
Writes symbol configuration to the given DOM element.
QgsPropertyCollection mDataDefinedProperties
QgsPropertyCollection & dataDefinedProperties()
Returns a reference to the symbol layer's property collection, used for data defined overrides.
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.
Represents a vector layer which manages a vector based data sets.
QMap< int, QgsPropertyDefinition > QgsPropertiesDefinition
Definition of available properties.