16 #ifndef QGSPOLYGON3DSYMBOL_H 17 #define QGSPOLYGON3DSYMBOL_H 25 #include <Qt3DRender/QCullFace> 38 QString
type()
const override {
return "polygon"; }
55 float height()
const {
return mHeight; }
57 void setHeight(
float height ) { mHeight = height; }
70 Qt3DRender::QCullFace::CullingMode
cullingMode()
const {
return mCullingMode; }
72 void setCullingMode( Qt3DRender::QCullFace::CullingMode mode ) { mCullingMode = mode; }
86 float mExtrusionHeight = 0.0f;
88 Qt3DRender::QCullFace::CullingMode mCullingMode = Qt3DRender::QCullFace::NoCulling;
89 bool mInvertNormals =
false;
93 #endif // QGSPOLYGON3DSYMBOL_H float height() const
Returns height (altitude) of the symbol (in map units)
The class is used as a container of context for various read/write operations on other objects...
Z_final = z_terrain + z_geometry.
virtual QgsAbstract3DSymbol * clone() const =0
Returns a new instance of the symbol with the same settings.
3 3D symbol that draws polygon geometries as planar polygons, optionally extruded (with added walls)...
void setHeight(float height)
Sets height (altitude) of the symbol (in map units)
Clamp just centroid of feature.
AltitudeClamping altitudeClamping() const
Returns method that determines altitude (whether to clamp to feature to terrain)
3 Basic shading material used for rendering based on the Phong shading model with three color compone...
QgsPhongMaterialSettings material() const
Returns material used for shading of the symbol.
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.
Qt3DRender::QCullFace::CullingMode cullingMode() const
Returns front/back culling mode.
bool invertNormals() const
Returns whether the normals of triangles will be inverted (useful for fixing clockwise / counter-cloc...
AltitudeClamping
how to handle altitude of vector features
AltitudeBinding altitudeBinding() const
Returns method that determines how altitude is bound to individual vertices.
void setMaterial(const QgsPhongMaterialSettings &material)
Sets material used for shading of the symbol.
void setAltitudeClamping(AltitudeClamping altClamping)
Sets method that determines altitude (whether to clamp to feature to terrain)
QString type() const override
Returns identifier of symbol type. Each 3D symbol implementation should return a different type...
void setInvertNormals(bool invert)
Sets whether the normals of triangles will be inverted (useful for fixing clockwise / counter-clockwi...
virtual void readXml(const QDomElement &elem, const QgsReadWriteContext &context)=0
Reads symbol configuration from the given DOM element.
void setExtrusionHeight(float extrusionHeight)
Sets extrusion height (in map units)
void setCullingMode(Qt3DRender::QCullFace::CullingMode mode)
Sets front/back culling mode.
AltitudeBinding
how to handle clamping of vertices of individual features
float extrusionHeight() const
Returns extrusion height (in map units)
void setAltitudeBinding(AltitudeBinding altBinding)
Sets method that determines how altitude is bound to individual vertices.