QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
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;
117 #endif // QGSLINE3DSYMBOL_H
The class is used as a container of context for various read/write operations on other objects.
@ Centroid
Clamp just centroid of feature.
void setAltitudeBinding(Qgis::AltitudeBinding altBinding)
Sets method that determines how altitude is bound to individual vertices.
void setWidth(float width)
Sets width of the line symbol (in map units)
float height() const
Returns height (altitude) of the symbol (in map units)
@ Relative
Elevation is relative to terrain height (final elevation = terrain elevation + feature elevation)
bool renderAsSimpleLines() const
Returns whether the renderer will render data with simple lines (otherwise it uses buffer)
void setRenderAsSimpleLines(bool enabled)
Sets whether the renderer will render data with simple lines (otherwise it uses buffer)
Abstract base class for 3D symbols that are used by VectorLayer3DRenderer objects.
AltitudeBinding
Altitude binding.
Entity that handles the exporting of 3D scene.
Abstract base class for material settings.
3D symbol that draws linestring geometries as planar polygons (created from lines using a buffer with...
void setAltitudeClamping(Qgis::AltitudeClamping altClamping)
Sets method that determines altitude (whether to clamp to feature to terrain)
void setExtrusionHeight(float extrusionHeight)
Sets extrusion height (in map units)
virtual QgsAbstract3DSymbol * clone() const =0
Returns a new instance of the symbol with the same settings.
QString type() const override
float extrusionHeight() const
Returns extrusion height (in map units)
virtual bool exportGeometries(Qgs3DSceneExporter *exporter, Qt3DCore::QEntity *entity, const QString &objectNamePrefix) const
Exports the geometries contained within the hierarchy of entity.
#define SIP_NODEFAULTCTORS
Qgis::AltitudeBinding altitudeBinding() const
Returns method that determines how altitude is bound to individual vertices.
float width() const
Returns width of the line symbol (in map units)
Represents a vector layer which manages a vector based data sets.
The Qgis class provides global constants for use throughout the application.
Handles storage of information regarding WKB types and their properties.
AltitudeClamping
Altitude clamping.
void setHeight(float height)
Sets height (altitude) of the symbol (in map units)