16#ifndef QGSLINE3DSYMBOL_H
17#define QGSLINE3DSYMBOL_H
49 QString type()
const override {
return "line"; }
54 QList<
QgsWkbTypes::GeometryType > compatibleGeometryTypes() const override;
55 void setDefaultPropertiesFromLayer( const
QgsVectorLayer *layer ) override;
58 Qgis::AltitudeClamping altitudeClamping()
const {
return mAltClamping; }
68 float width()
const {
return mWidth; }
70 void setWidth(
float width ) { mWidth = width; }
73 float height()
const {
return mHeight; }
75 void setHeight(
float height ) { mHeight = height; }
110 float mHeight = 0.0f;
111 float mExtrusionHeight = 0.0f;
112 bool mRenderAsSimpleLines =
false;
113 std::unique_ptr< QgsAbstractMaterialSettings > mMaterial;
The Qgis class provides global constants for use throughout the application.
AltitudeClamping
Altitude clamping.
@ Relative
Elevation is relative to terrain height (final elevation = terrain elevation + feature elevation)
AltitudeBinding
Altitude binding.
@ Centroid
Clamp just centroid of feature.
Entity that handles the exporting of 3D scene.
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 setAltitudeBinding(Qgis::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)
Qgis::AltitudeBinding altitudeBinding() const
Returns method that determines how altitude is bound to individual vertices.
void setExtrusionHeight(float extrusionHeight)
Sets extrusion height (in map units)
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 setHeight(float height)
Sets height (altitude) of the symbol (in map units)
void setAltitudeClamping(Qgis::AltitudeClamping altClamping)
Sets method that determines altitude (whether to clamp to feature to terrain)
The class is used as a container of context for various read/write operations on other objects.
Represents a vector layer which manages a vector based data sets.
Handles storage of information regarding WKB types and their properties.
#define SIP_NODEFAULTCTORS