QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
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;
59 Qgs3DTypes::AltitudeClamping altitudeClamping()
const {
return mAltClamping; }
69 float height()
const {
return mHeight; }
71 void setHeight(
float height ) { mHeight = height; }
171 float mHeight = 0.0f;
172 float mExtrusionHeight = 0.0f;
173 std::unique_ptr< QgsAbstractMaterialSettings > mMaterial;
175 bool mInvertNormals =
false;
176 bool mAddBackFaces =
false;
177 int mRenderedFacade = 3;
179 bool mEdgesEnabled =
false;
180 float mEdgeWidth = 1.f;
181 QColor mEdgeColor = Qt::black;
185 #endif // QGSPOLYGON3DSYMBOL_H
AltitudeBinding
how to handle clamping of vertices of individual features
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.
float extrusionHeight() const
Returns extrusion height (in map units)
@ AltClampRelative
Z_final = z_terrain + z_geometry.
@ AltBindCentroid
Clamp just centroid of feature.
void setAltitudeBinding(Qgs3DTypes::AltitudeBinding altBinding)
Sets method that determines how altitude is bound to individual vertices.
void setEdgesEnabled(bool enabled)
Sets whether edge highlighting is enabled.
3 3D symbol that draws polygon geometries as planar polygons, optionally extruded (with added walls).
void setCullingMode(Qgs3DTypes::CullingMode mode)
Sets front/back culling mode.
void setEdgeColor(const QColor &color)
Sets edge lines color.
3 Abstract base class for 3D symbols that are used by VectorLayer3DRenderer objects.
CullingMode
Triangle culling mode.
The Qgs3DSceneExporter class Entity that handles the exporting of 3D scene.
3 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.
~QgsPolygon3DSymbol() override
QString type() const override
void setAltitudeClamping(Qgs3DTypes::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
AltitudeClamping
how to handle altitude of vector features
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)
Handles storage of information regarding WKB types and their properties.
Qgs3DTypes::AltitudeBinding altitudeBinding() const
Returns method that determines how altitude is bound to individual vertices.
bool addBackFaces() const
Returns whether also triangles facing the other side will be created.
@ NoCulling
Will render both front and back faces of triangles.
3 Defines enumerations and other auxiliary types for QGIS 3D
void setInvertNormals(bool invert)
Sets whether the normals of triangles will be inverted (useful for fixing clockwise / counter-clockwi...