QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
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;
140 #endif // QGSPOINT3DSYMBOL_H
The class is used as a container of context for various read/write operations on other objects.
Shape
3D shape types supported by the symbol
@ AltClampRelative
Z_final = z_terrain + z_geometry.
void setBillboardSymbol(QgsMarkerSymbol *symbol)
Set symbol for billboard and the ownership is transferred.
3 Abstract base class for 3D symbols that are used by VectorLayer3DRenderer objects.
The Qgs3DSceneExporter class Entity that handles the exporting of 3D scene.
3 Abstract base class for material settings.
A marker symbol type, for rendering Point and MultiPoint geometries.
QString type() const override
virtual QgsAbstract3DSymbol * clone() const =0
Returns a new instance of the symbol with the same settings.
void setTransform(const QMatrix4x4 &transform)
Sets transform for individual objects represented by the symbol.
void setAltitudeClamping(Qgs3DTypes::AltitudeClamping altClamping)
Sets method that determines altitude (whether to clamp to feature to terrain)
virtual bool exportGeometries(Qgs3DSceneExporter *exporter, Qt3DCore::QEntity *entity, const QString &objectNamePrefix) const
Exports the geometries contained within the hierarchy of entity.
#define SIP_NODEFAULTCTORS
AltitudeClamping
how to handle altitude of vector features
Shape shape() const
Returns 3D shape for points.
void setShape(Shape shape)
Sets 3D shape for points.
@ ExtrudedText
Supported in Qt 5.9+.
QVariantMap shapeProperties() const
Returns a key-value dictionary of point shape properties.
Handles storage of information regarding WKB types and their properties.
QMatrix4x4 transform() const
Returns transform for individual objects represented by the symbol.
3 Defines enumerations and other auxiliary types for QGIS 3D
void setShapeProperties(const QVariantMap &properties)
Sets a key-value dictionary of point shape properties.
QgsMarkerSymbol * billboardSymbol() const
Returns a symbol for billboard.
3 3D symbol that draws point geometries as 3D objects using one of the predefined shapes.