16 #ifndef QGSLINE3DSYMBOL_H
17 #define QGSLINE3DSYMBOL_H
49 QString type()
const override {
return "line"; }
54 QList<
QgsWkbTypes::GeometryType > compatibleGeometryTypes() const override;
57 Qgs3DTypes::AltitudeClamping altitudeClamping()
const {
return mAltClamping; }
67 float width()
const {
return mWidth; }
69 void setWidth(
float width ) { mWidth = width; }
72 float height()
const {
return mHeight; }
74 void setHeight(
float height ) { mHeight = height; }
109 float mHeight = 0.0f;
110 float mExtrusionHeight = 0.0f;
111 bool mRenderAsSimpleLines =
false;
112 std::unique_ptr< QgsAbstractMaterialSettings > mMaterial;
Entity that handles the exporting of 3D scene.
AltitudeClamping
how to handle altitude of vector features
@ AltClampRelative
Z_final = z_terrain + z_geometry.
AltitudeBinding
how to handle clamping of vertices of individual features
@ AltBindCentroid
Clamp just centroid of feature.
virtual bool exportGeometries(Qgs3DSceneExporter *exporter, Qt3DCore::QEntity *entity, const QString &objectNamePrefix) const
Exports the geometries contained within the hierarchy of entity.
virtual QgsAbstract3DSymbol * clone() const =0
Returns a new instance of the symbol with the same settings.
bool renderAsSimpleLines() const
Returns whether the renderer will render data with simple lines (otherwise it uses buffer)
void setAltitudeClamping(Qgs3DTypes::AltitudeClamping altClamping)
Sets method that determines altitude (whether to clamp to feature to terrain)
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)
void setExtrusionHeight(float extrusionHeight)
Sets extrusion height (in map units)
Qgs3DTypes::AltitudeBinding altitudeBinding() const
Returns method that determines how altitude is bound to individual vertices.
float height() const
Returns height (altitude) of the symbol (in map units)
~QgsLine3DSymbol() override
void setRenderAsSimpleLines(bool enabled)
Sets whether the renderer will render data with simple lines (otherwise it uses buffer)
float extrusionHeight() const
Returns extrusion height (in map units)
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)
The class is used as a container of context for various read/write operations on other objects.
Handles storage of information regarding WKB types and their properties.
#define SIP_NODEFAULTCTORS