16 #ifndef QGSPOINT3DSYMBOL_H
17 #define QGSPOINT3DSYMBOL_H
54 QString
type()
const override {
return "point"; }
59 QList<
QgsWkbTypes::GeometryType > compatibleGeometryTypes() const override;
62 Qgs3DTypes::AltitudeClamping altitudeClamping()
const {
return mAltClamping; }
91 static Shape shapeFromString(
const QString &shape );
93 static QString shapeToString( Shape shape );
113 void setTransform(
const QMatrix4x4 &transform ) { mTransform = transform; }
116 QMatrix4x4 billboardTransform()
const;
127 std::unique_ptr< QgsAbstractMaterialSettings> mMaterial;
128 Shape mShape = Cylinder;
129 QVariantMap mShapeProperties;
130 QMatrix4x4 mTransform;
131 std::unique_ptr<QgsMarkerSymbol> mBillboardSymbol;
Entity that handles the exporting of 3D scene.
AltitudeClamping
how to handle altitude of vector features
@ AltClampRelative
Z_final = z_terrain + z_geometry.
virtual bool exportGeometries(Qgs3DSceneExporter *exporter, Qt3DCore::QEntity *entity, const QString &objectNamePrefix) const
Exports the geometries contained within the hierarchy of entity.
virtual QgsAbstract3DSymbol * clone() const =0
Returns a new instance of the symbol with the same settings.
A marker symbol type, for rendering Point and MultiPoint geometries.
Shape
3D shape types supported by the symbol
@ ExtrudedText
Supported in Qt 5.9+.
void setTransform(const QMatrix4x4 &transform)
Sets transform for individual objects represented by the symbol.
QString type() const override
void setShapeProperties(const QVariantMap &properties)
Sets a key-value dictionary of point shape properties.
QMatrix4x4 transform() const
Returns transform for individual objects represented by the symbol.
void setShape(Shape shape)
Sets 3D shape for points.
Shape shape() const
Returns 3D shape for points.
QgsMarkerSymbol * billboardSymbol() const
Returns a symbol for billboard.
void setBillboardSymbol(QgsMarkerSymbol *symbol)
Set symbol for billboard and the ownership is transferred.
QVariantMap shapeProperties() const
Returns a key-value dictionary of point shape properties.
void setAltitudeClamping(Qgs3DTypes::AltitudeClamping altClamping)
Sets method that determines altitude (whether to clamp to feature to terrain)
The class is used as a container of context for various read/write operations on other objects.
Handles storage of information regarding WKB types and their properties.
#define SIP_NODEFAULTCTORS