16 #ifndef QGSMESH3DSYMBOL_H 17 #define QGSMESH3DSYMBOL_H 25 #include <Qt3DRender/QCullFace> 42 QString
type()
const override {
return "mesh"; }
54 float height()
const {
return mHeight; }
56 void setHeight(
float height ) { mHeight = height; }
78 bool mAddBackFaces =
false;
82 #endif // QGSMESH3DSYMBOL_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)
3 3D symbol that draws mesh geometry as planar triangles.
virtual QgsAbstract3DSymbol * clone() const =0
Returns a new instance of the symbol with the same settings.
float height() const
Returns height (altitude) of the symbol (in map units)
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.
bool addBackFaces() const
Returns whether also triangles facing the other side will be created.
void setHeight(float height)
Sets height (altitude) of the symbol (in map units)
QgsPhongMaterialSettings material() const
Returns material used for shading of the symbol.
void setAddBackFaces(bool add)
Sets whether also triangles facing the other side will be created.
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.