16 #ifndef QGSMESH3DSYMBOL_H 17 #define QGSMESH3DSYMBOL_H 26 #include <Qt3DRender/QCullFace> 57 QString
type()
const override {
return "mesh"; }
69 float height()
const {
return mHeight; }
71 void setHeight(
float height ) { mHeight = height; }
93 bool smoothedTriangles()
const;
100 void setSmoothedTriangles(
bool smoothTriangles );
107 bool wireframeEnabled()
const;
114 void setWireframeEnabled(
bool wireframeEnabled );
121 double wireframeLineWidth()
const;
128 void setWireframeLineWidth(
double wireframeLineWidth );
135 QColor wireframeLineColor()
const;
142 void setWireframeLineColor(
const QColor &wireframeLineColor );
149 double verticaleScale()
const;
156 void setVerticaleScale(
double verticaleScale );
177 QColor singleMeshColor()
const;
184 void setSingleMeshColor(
const QColor &singleMeshColor );
204 float mHeight = 0.0f;
206 bool mAddBackFaces =
false;
208 bool mSmoothedTriangles =
false;
209 bool mWireframeEnabled =
false;
210 double mWireframeLineWidth = 1.0;
211 QColor mWireframeLineColor = Qt::darkGray;
212 double mVerticaleScale = 1.0;
216 QColor mSingleColor = Qt::darkGreen;
219 #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.
A ramp shader will color a raster pixel based on a list of values ranges in a ramp.
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.
RenderingStyle
How to render the color of the mesh with advanced symbology.
virtual void readXml(const QDomElement &elem, const QgsReadWriteContext &context)=0
Reads symbol configuration from the given DOM element.
Render the mesh with a single color.
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.