16 #ifndef QGSPOINT3DSYMBOL_H 17 #define QGSPOINT3DSYMBOL_H 42 QString
type()
const override {
return "point"; }
72 static Shape shapeFromString(
const QString &shape );
74 static QString shapeToString(
Shape shape );
89 void setTransform(
const QMatrix4x4 &transform ) { mTransform = transform; }
96 Shape mShape = Cylinder;
97 QVariantMap mShapeProperties;
98 QMatrix4x4 mTransform;
102 #endif // QGSPOINT3DSYMBOL_H QString type() const override
Returns identifier of symbol type. Each 3D symbol implementation should return a different type...
AltitudeClamping
how to handle altitude of vector features
The class is used as a container of context for various read/write operations on other objects...
void setAltitudeClamping(Qgs3DTypes::AltitudeClamping altClamping)
Sets method that determines altitude (whether to clamp to feature to terrain)
virtual QgsAbstract3DSymbol * clone() const =0
Returns a new instance of the symbol with the same settings.
QVariantMap shapeProperties() const
Returns a key-value dictionary of point shape properties.
void setTransform(const QMatrix4x4 &transform)
Sets transform for individual objects represented by the symbol.
void setShape(Shape shape)
Sets 3D shape for points.
3 Basic shading material used for rendering based on the Phong shading model with three color compone...
virtual void writeXml(QDomElement &elem, const QgsReadWriteContext &context) const =0
Writes symbol configuration to the given DOM element.
3 Abstract base class for 3D symbols that are used by VectorLayer3DRenderer objects.
QgsPhongMaterialSettings material() const
Returns material used for shading of the symbol.
3 3D symbol that draws point geometries as 3D objects using one of the predefined shapes...
Shape shape() const
Returns 3D shape for points.
QMatrix4x4 transform() const
Returns transform for individual objects represented by the symbol.
void setShapeProperties(const QVariantMap &properties)
Sets a key-value dictionary of point shape properties.
Shape
3D shape types supported by the symbol
virtual void readXml(const QDomElement &elem, const QgsReadWriteContext &context)=0
Reads symbol configuration from the given DOM element.
Qgs3DTypes::AltitudeClamping altitudeClamping() const
Returns method that determines altitude (whether to clamp to feature to terrain)
Z_final = z_terrain + z_geometry.
void setMaterial(const QgsPhongMaterialSettings &material)
Sets material used for shading of the symbol.