QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSPOLYGON3DSYMBOL_H
17 #define QGSPOLYGON3DSYMBOL_H
24 #include <Qt3DRender/QCullFace>
44 QString
type()
const override {
return "polygon"; }
49 QList<
QgsWkbTypes::GeometryType > compatibleGeometryTypes() const override;
50 void setDefaultPropertiesFromLayer( const
QgsVectorLayer *layer ) override;
60 Qgis::AltitudeClamping altitudeClamping()
const {
return mAltClamping; }
70 float height()
const {
return mHeight; }
72 void setHeight(
float height ) { mHeight = height; }
172 float mHeight = 0.0f;
173 float mExtrusionHeight = 0.0f;
174 std::unique_ptr< QgsAbstractMaterialSettings > mMaterial;
176 bool mInvertNormals =
false;
177 bool mAddBackFaces =
false;
178 int mRenderedFacade = 3;
180 bool mEdgesEnabled =
false;
181 float mEdgeWidth = 1.f;
182 QColor mEdgeColor = Qt::black;
186 #endif // QGSPOLYGON3DSYMBOL_H
void setRenderedFacade(int side)
Sets which facade of the buildings is rendered (0 for None, 1 for Walls, 2 for Roofs,...
void setExtrusionHeight(float extrusionHeight)
Sets extrusion height (in map units)
The class is used as a container of context for various read/write operations on other objects.
@ Centroid
Clamp just centroid of feature.
float extrusionHeight() const
Returns extrusion height (in map units)
void setEdgesEnabled(bool enabled)
Sets whether edge highlighting is enabled.
3D symbol that draws polygon geometries as planar polygons, optionally extruded (with added walls).
@ Relative
Elevation is relative to terrain height (final elevation = terrain elevation + feature elevation)
void setCullingMode(Qgs3DTypes::CullingMode mode)
Sets front/back culling mode.
void setEdgeColor(const QColor &color)
Sets edge lines color.
Abstract base class for 3D symbols that are used by VectorLayer3DRenderer objects.
CullingMode
Triangle culling mode.
AltitudeBinding
Altitude binding.
Entity that handles the exporting of 3D scene.
Abstract base class for material settings.
void setHeight(float height)
Sets height (altitude) of the symbol (in map units)
int renderedFacade() const
Returns which facade of the buildings is rendered (0 for None, 1 for Walls, 2 for Roofs,...
void setAddBackFaces(bool add)
Sets whether also triangles facing the other side will be created.
virtual QgsAbstract3DSymbol * clone() const =0
Returns a new instance of the symbol with the same settings.
float edgeWidth() const
Returns width of edge lines (in pixels)
void setEdgeWidth(float width)
Sets width of edge lines (in pixels)
QColor edgeColor() const
Returns edge lines color.
QString type() const override
void setAltitudeClamping(Qgis::AltitudeClamping altClamping)
Sets method that determines altitude (whether to clamp to feature to terrain)
virtual bool exportGeometries(Qgs3DSceneExporter *exporter, Qt3DCore::QEntity *entity, const QString &objectNamePrefix) const
Exports the geometries contained within the hierarchy of entity.
#define SIP_NODEFAULTCTORS
void setAltitudeBinding(Qgis::AltitudeBinding altBinding)
Sets method that determines how altitude is bound to individual vertices.
Represents a vector layer which manages a vector based data sets.
Qgs3DTypes::CullingMode cullingMode() const
Returns front/back culling mode.
bool invertNormals() const
Returns whether the normals of triangles will be inverted (useful for fixing clockwise / counter-cloc...
bool edgesEnabled() const
Returns whether edge highlighting is enabled.
float height() const
Returns height (altitude) of the symbol (in map units)
The Qgis class provides global constants for use throughout the application.
Handles storage of information regarding WKB types and their properties.
bool addBackFaces() const
Returns whether also triangles facing the other side will be created.
AltitudeClamping
Altitude clamping.
@ NoCulling
Will render both front and back faces of triangles.
void setInvertNormals(bool invert)
Sets whether the normals of triangles will be inverted (useful for fixing clockwise / counter-clockwi...
Qgis::AltitudeBinding altitudeBinding() const
Returns method that determines how altitude is bound to individual vertices.