16 #ifndef QGSLINE3DSYMBOL_H 17 #define QGSLINE3DSYMBOL_H 37 QString
type()
const override {
return "line"; }
54 float width()
const {
return mWidth; }
56 void setWidth(
float width ) { mWidth = width; }
59 float height()
const {
return mHeight; }
61 void setHeight(
float height ) { mHeight = height; }
81 float mExtrusionHeight = 0.0f;
86 #endif // QGSLINE3DSYMBOL_H AltitudeBinding altitudeBinding() const
Returns method that determines how altitude is bound to individual vertices.
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.
void setAltitudeClamping(AltitudeClamping altClamping)
Sets method that determines altitude (whether to clamp to feature to terrain)
Clamp just centroid of feature.
void setHeight(float height)
Sets 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.
float height() const
Returns height (altitude) of the symbol (in map units)
void setExtrusionHeight(float extrusionHeight)
Sets extrusion height (in map units)
void setAltitudeBinding(AltitudeBinding altBinding)
Sets method that determines how altitude is bound to individual vertices.
float width() const
Returns width of the line symbol (in map units)
void setWidth(float width)
Sets width of the line symbol (in map units)
QgsPhongMaterialSettings material() const
Returns material used for shading of the symbol.
3 3D symbol that draws linestring geometries as planar polygons (created from lines using a buffer wi...
AltitudeClamping
how to handle altitude of vector features
float extrusionHeight() const
Returns extrusion height (in map units)
void setMaterial(const QgsPhongMaterialSettings &material)
Sets material used for shading of the symbol.
virtual void readXml(const QDomElement &elem, const QgsReadWriteContext &context)=0
Reads symbol configuration from the given DOM element.
AltitudeClamping altitudeClamping() const
Returns 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...
AltitudeBinding
how to handle clamping of vertices of individual features