QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
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();
109 #endif // QGSABSTRACT3DSYMBOL_H
The class is used as a container of context for various read/write operations on other objects.
virtual void readXml(const QDomElement &elem, const QgsReadWriteContext &context)=0
Reads symbol configuration from the given DOM element.
virtual ~QgsAbstract3DSymbol()=default
3 Abstract base class for 3D symbols that are used by VectorLayer3DRenderer objects.
QMap< int, QgsPropertyDefinition > QgsPropertiesDefinition
Definition of available properties.
The Qgs3DSceneExporter class Entity that handles the exporting of 3D scene.
@ PropertyExtrusionHeight
Extrusion height (zero means no extrusion)
const QgsPropertyCollection & dataDefinedProperties() const
Returns a reference to the symbol layer's property collection, used for data defined overrides.
void setDataDefinedProperties(const QgsPropertyCollection &collection)
Sets 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.
QgsPropertyCollection mDataDefinedProperties
A grouped map of multiple QgsProperty objects, each referenced by a integer key value.
QgsPropertyCollection & dataDefinedProperties()
Returns a reference to 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.
Property
Data definable properties.