|
QGIS API Documentation 3.99.0-Master (2fe06baccd8)
|
3D symbol that draws polygon geometries as planar polygons, optionally extruded (with added walls). More...
#include <qgspolygon3dsymbol.h>

Public Member Functions | |
| QgsPolygon3DSymbol () | |
| ~QgsPolygon3DSymbol () override | |
| bool | addBackFaces () const |
| Returns whether also triangles facing the other side will be created. | |
| Qgis::AltitudeBinding | altitudeBinding () const |
| Returns method that determines how altitude is bound to individual vertices. | |
| Qgis::AltitudeClamping | altitudeClamping () const |
| Returns method that determines altitude (whether to clamp to feature to terrain). | |
| QgsAbstract3DSymbol * | clone () const override SIP_FACTORY |
| QList< Qgis::GeometryType > | compatibleGeometryTypes () const override |
| Qgs3DTypes::CullingMode | cullingMode () const |
| Returns front/back culling mode. | |
| QColor | edgeColor () const |
| Returns edge lines color. | |
| bool | edgesEnabled () const |
| Returns whether edge highlighting is enabled. | |
| float | edgeWidth () const |
| Returns width of edge lines (in pixels). | |
| bool | exportGeometries (Qgs3DSceneExporter *exporter, Qt3DCore::QEntity *entity, const QString &objectNamePrefix) const override SIP_SKIP |
| Exports the geometries contained within the hierarchy of entity. | |
| Qgis::ExtrusionFaces | extrusionFaces () const |
| Returns the building extrusion sides to be rendered. | |
| float | extrusionHeight () const |
| Returns extrusion height (in map units). | |
| Q_DECL_DEPRECATED float | height () const SIP_DEPRECATED |
| Returns height (altitude) of the symbol (in map units). | |
| bool | invertNormals () const |
| Returns whether the normals of triangles will be inverted (useful for fixing clockwise / counter-clockwise face vertex orders). | |
| QgsAbstractMaterialSettings * | materialSettings () const |
| Returns material settings used for shading of the symbol. | |
| float | offset () const |
| Returns vertical offset of the symbol (in map units). | |
| void | readXml (const QDomElement &elem, const QgsReadWriteContext &context) override |
| Q_DECL_DEPRECATED int | renderedFacade () SIP_DEPRECATED |
| Returns which facade of the buildings is rendered (0 for None, 1 for Walls, 2 for Roof, 3 for WallsAndRoof). | |
| void | setAddBackFaces (bool add) |
| Sets whether also triangles facing the other side will be created. | |
| void | setAltitudeBinding (Qgis::AltitudeBinding altBinding) |
| Sets method that determines how altitude is bound to individual vertices. | |
| void | setAltitudeClamping (Qgis::AltitudeClamping altClamping) |
| Sets method that determines altitude (whether to clamp to feature to terrain). | |
| void | setCullingMode (Qgs3DTypes::CullingMode mode) |
| Sets front/back culling mode. | |
| void | setDefaultPropertiesFromLayer (const QgsVectorLayer *layer) override |
| void | setEdgeColor (const QColor &color) |
| Sets edge lines color. | |
| void | setEdgesEnabled (bool enabled) |
| Sets whether edge highlighting is enabled. | |
| void | setEdgeWidth (float width) |
| Sets width of edge lines (in pixels). | |
| void | setExtrusionFaces (Qgis::ExtrusionFaces side) |
| Sets the building extrusion sides to be rendered. | |
| void | setExtrusionHeight (float extrusionHeight) |
| Sets extrusion height (in map units). | |
| Q_DECL_DEPRECATED void | setHeight (float height) SIP_DEPRECATED |
| Sets height (altitude) of the symbol (in map units). | |
| void | setInvertNormals (bool invert) |
| Sets whether the normals of triangles will be inverted (useful for fixing clockwise / counter-clockwise face vertex orders). | |
| void | setMaterialSettings (QgsAbstractMaterialSettings *materialSettings SIP_TRANSFER) |
| Sets the material settings used for shading of the symbol. | |
| void | setOffset (float offset) |
| Sets vertical offset of the symbol (in map units). | |
| Q_DECL_DEPRECATED void | setRenderedFacade (int side) SIP_DEPRECATED |
| Sets which facade of the buildings is rendered (0 for None, 1 for Walls, 2 for Roof, 3 for WallsAndRoof). | |
| QString | type () const override |
| void | writeXml (QDomElement &elem, const QgsReadWriteContext &context) const override |
Static Public Member Functions | |
| static QgsAbstract3DSymbol * | create () SIP_FACTORY |
| Creates a new QgsPolygon3DSymbol. | |
3D symbol that draws polygon geometries as planar polygons, optionally extruded (with added walls).
Definition at line 35 of file qgspolygon3dsymbol.h.
| QgsPolygon3DSymbol::QgsPolygon3DSymbol | ( | ) |
Definition at line 29 of file qgspolygon3dsymbol.cpp.
|
overridedefault |
|
inline |
Returns whether also triangles facing the other side will be created.
Useful if input data have inconsistent order of vertices
Definition at line 123 of file qgspolygon3dsymbol.h.
|
inline |
Returns method that determines how altitude is bound to individual vertices.
Definition at line 62 of file qgspolygon3dsymbol.h.
|
inline |
Returns method that determines altitude (whether to clamp to feature to terrain).
Definition at line 57 of file qgspolygon3dsymbol.h.
|
override |
Definition at line 36 of file qgspolygon3dsymbol.cpp.
|
override |
Definition at line 122 of file qgspolygon3dsymbol.cpp.
|
static |
Creates a new QgsPolygon3DSymbol.
Caller takes ownership of the returned symbol.
Definition at line 153 of file qgspolygon3dsymbol.cpp.
|
inline |
Returns front/back culling mode.
Definition at line 110 of file qgspolygon3dsymbol.h.
|
inline |
|
inline |
Returns whether edge highlighting is enabled.
Definition at line 135 of file qgspolygon3dsymbol.h.
|
inline |
Returns width of edge lines (in pixels).
Definition at line 147 of file qgspolygon3dsymbol.h.
|
override |
Exports the geometries contained within the hierarchy of entity.
Returns whether any objects were exported
Definition at line 171 of file qgspolygon3dsymbol.cpp.
|
inline |
Returns the building extrusion sides to be rendered.
Definition at line 191 of file qgspolygon3dsymbol.h.
|
inline |
Returns extrusion height (in map units).
Definition at line 95 of file qgspolygon3dsymbol.h.
|
inline |
Returns height (altitude) of the symbol (in map units).
Definition at line 71 of file qgspolygon3dsymbol.h.
|
inline |
Returns whether the normals of triangles will be inverted (useful for fixing clockwise / counter-clockwise face vertex orders).
Definition at line 115 of file qgspolygon3dsymbol.h.
| QgsAbstractMaterialSettings * QgsPolygon3DSymbol::materialSettings | ( | ) | const |
Returns material settings used for shading of the symbol.
Definition at line 158 of file qgspolygon3dsymbol.cpp.
|
inline |
Returns vertical offset of the symbol (in map units).
Definition at line 85 of file qgspolygon3dsymbol.h.
|
override |
Definition at line 88 of file qgspolygon3dsymbol.cpp.
| int QgsPolygon3DSymbol::renderedFacade | ( | ) |
Returns which facade of the buildings is rendered (0 for None, 1 for Walls, 2 for Roof, 3 for WallsAndRoof).
Definition at line 235 of file qgspolygon3dsymbol.cpp.
|
inline |
Sets whether also triangles facing the other side will be created.
Useful if input data have inconsistent order of vertices
Definition at line 129 of file qgspolygon3dsymbol.h.
|
inline |
Sets method that determines how altitude is bound to individual vertices.
Definition at line 64 of file qgspolygon3dsymbol.h.
|
inline |
Sets method that determines altitude (whether to clamp to feature to terrain).
Definition at line 59 of file qgspolygon3dsymbol.h.
|
inline |
Sets front/back culling mode.
Definition at line 112 of file qgspolygon3dsymbol.h.
|
override |
Definition at line 127 of file qgspolygon3dsymbol.cpp.
|
inline |
|
inline |
Sets whether edge highlighting is enabled.
Definition at line 141 of file qgspolygon3dsymbol.h.
|
inline |
Sets width of edge lines (in pixels).
Definition at line 153 of file qgspolygon3dsymbol.h.
|
inline |
Sets the building extrusion sides to be rendered.
Definition at line 178 of file qgspolygon3dsymbol.h.
|
inline |
Sets extrusion height (in map units).
Definition at line 97 of file qgspolygon3dsymbol.h.
|
inline |
Sets height (altitude) of the symbol (in map units).
Definition at line 78 of file qgspolygon3dsymbol.h.
|
inline |
Sets whether the normals of triangles will be inverted (useful for fixing clockwise / counter-clockwise face vertex orders).
Definition at line 117 of file qgspolygon3dsymbol.h.
| void QgsPolygon3DSymbol::setMaterialSettings | ( | QgsAbstractMaterialSettings *materialSettings | SIP_TRANSFER | ) |
Sets the material settings used for shading of the symbol.
Ownership of material is transferred to the symbol.
Definition at line 163 of file qgspolygon3dsymbol.cpp.
|
inline |
Sets vertical offset of the symbol (in map units).
Definition at line 92 of file qgspolygon3dsymbol.h.
| void QgsPolygon3DSymbol::setRenderedFacade | ( | int | side | ) |
Sets which facade of the buildings is rendered (0 for None, 1 for Walls, 2 for Roof, 3 for WallsAndRoof).
Definition at line 211 of file qgspolygon3dsymbol.cpp.
|
inlineoverride |
Definition at line 41 of file qgspolygon3dsymbol.h.
|
override |
Definition at line 55 of file qgspolygon3dsymbol.cpp.