QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSPOINT3DSYMBOL_H
17 #define QGSPOINT3DSYMBOL_H
56 QString
type()
const override {
return "point"; }
61 QList<
QgsWkbTypes::GeometryType > compatibleGeometryTypes() const override;
62 void setDefaultPropertiesFromLayer( const
QgsVectorLayer *layer ) override;
65 Qgis::AltitudeClamping altitudeClamping()
const {
return mAltClamping; }
94 static Shape shapeFromString(
const QString &shape );
96 static QString shapeToString( Shape shape );
116 void setTransform(
const QMatrix4x4 &transform ) { mTransform = transform; }
119 QMatrix4x4 billboardTransform()
const;
130 std::unique_ptr< QgsAbstractMaterialSettings> mMaterial;
131 Shape mShape = Cylinder;
132 QVariantMap mShapeProperties;
133 QMatrix4x4 mTransform;
134 std::unique_ptr<QgsMarkerSymbol> mBillboardSymbol;
143 #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
@ Relative
Elevation is relative to terrain height (final elevation = terrain elevation + feature elevation)
Abstract base class for 3D symbols that are used by VectorLayer3DRenderer objects.
Entity that handles the exporting of 3D scene.
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.
virtual bool exportGeometries(Qgs3DSceneExporter *exporter, Qt3DCore::QEntity *entity, const QString &objectNamePrefix) const
Exports the geometries contained within the hierarchy of entity.
#define SIP_NODEFAULTCTORS
Shape shape() const
Returns 3D shape for points.
void setShape(Shape shape)
Sets 3D shape for points.
Represents a vector layer which manages a vector based data sets.
@ ExtrudedText
Supported in Qt 5.9+.
QVariantMap shapeProperties() const
Returns a key-value dictionary of point shape properties.
The Qgis class provides global constants for use throughout the application.
Handles storage of information regarding WKB types and their properties.
QMatrix4x4 transform() const
Returns transform for individual objects represented by the symbol.
AltitudeClamping
Altitude clamping.
void setAltitudeClamping(Qgis::AltitudeClamping altClamping)
Sets method that determines altitude (whether to clamp to feature to terrain)
void setShapeProperties(const QVariantMap &properties)
Sets a key-value dictionary of point shape properties.
3D symbol that draws point geometries as 3D objects using one of the predefined shapes.