16 #ifndef QGSLINE3DSYMBOL_H 17 #define QGSLINE3DSYMBOL_H 41 QString
type()
const override {
return "line"; }
58 float width()
const {
return mWidth; }
60 void setWidth(
float width ) { mWidth = width; }
63 float height()
const {
return mHeight; }
65 void setHeight(
float height ) { mHeight = height; }
90 float mExtrusionHeight = 0.0f;
91 bool mRenderAsSimpleLines =
false;
96 #endif // QGSLINE3DSYMBOL_H 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 setRenderAsSimpleLines(bool enabled)
Sets whether the renderer will render data with simple lines (otherwise it uses buffer) ...
Qgs3DTypes::AltitudeBinding altitudeBinding() const
Returns method that determines how altitude is bound to individual vertices.
virtual QgsAbstract3DSymbol * clone() const =0
Returns a new instance of the symbol with the same settings.
void setAltitudeBinding(Qgs3DTypes::AltitudeBinding altBinding)
Sets method that determines how altitude is bound to individual vertices.
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.
void setAltitudeClamping(Qgs3DTypes::AltitudeClamping altClamping)
Sets method that determines altitude (whether to clamp to feature to terrain)
float height() const
Returns height (altitude) of the symbol (in map units)
void setExtrusionHeight(float extrusionHeight)
Sets extrusion height (in map units)
float width() const
Returns width of the line symbol (in map units)
Qgs3DTypes::AltitudeClamping altitudeClamping() const
Returns method that determines altitude (whether to clamp to feature to terrain)
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...
AltitudeBinding
how to handle clamping of vertices of individual features
bool renderAsSimpleLines() const
Returns whether the renderer will render data with simple lines (otherwise it uses buffer) ...
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.
QString type() const override
Returns identifier of symbol type. Each 3D symbol implementation should return a different type...
Z_final = z_terrain + z_geometry.
Clamp just centroid of feature.