QGIS API Documentation
3.20.0-Odense (decaadbb31)
|
3 More...
#include <qgspolygon3dsymbol.h>
Public Member Functions | |
QgsPolygon3DSymbol () | |
Constructor for QgsPolygon3DSymbol. More... | |
~QgsPolygon3DSymbol () override | |
bool | addBackFaces () const |
Returns whether also triangles facing the other side will be created. More... | |
Qgs3DTypes::AltitudeBinding | altitudeBinding () const |
Returns method that determines how altitude is bound to individual vertices. More... | |
Qgs3DTypes::AltitudeClamping | altitudeClamping () const |
Returns method that determines altitude (whether to clamp to feature to terrain) More... | |
QgsAbstract3DSymbol * | clone () const override SIP_FACTORY |
QList< QgsWkbTypes::GeometryType > | compatibleGeometryTypes () const override |
Qgs3DTypes::CullingMode | cullingMode () const |
Returns front/back culling mode. More... | |
QColor | edgeColor () const |
Returns edge lines color. More... | |
bool | edgesEnabled () const |
Returns whether edge highlighting is enabled. More... | |
float | edgeWidth () const |
Returns width of edge lines (in pixels) More... | |
bool | exportGeometries (Qgs3DSceneExporter *exporter, Qt3DCore::QEntity *entity, const QString &objectNamePrefix) const override SIP_SKIP |
Exports the geometries contained within the hierarchy of entity. More... | |
float | extrusionHeight () const |
Returns extrusion height (in map units) More... | |
float | height () const |
Returns height (altitude) of the symbol (in map units) More... | |
bool | invertNormals () const |
Returns whether the normals of triangles will be inverted (useful for fixing clockwise / counter-clockwise face vertex orders) More... | |
QgsAbstractMaterialSettings * | material () const |
Returns material used for shading of the symbol. More... | |
void | readXml (const QDomElement &elem, const QgsReadWriteContext &context) override |
int | renderedFacade () const |
Returns which facade of the buildings is rendered (0 for None, 1 for Walls, 2 for Roofs, 3 for WallsAndRoofs) More... | |
void | setAddBackFaces (bool add) |
Sets whether also triangles facing the other side will be created. More... | |
void | setAltitudeBinding (Qgs3DTypes::AltitudeBinding altBinding) |
Sets method that determines how altitude is bound to individual vertices. More... | |
void | setAltitudeClamping (Qgs3DTypes::AltitudeClamping altClamping) |
Sets method that determines altitude (whether to clamp to feature to terrain) More... | |
void | setCullingMode (Qgs3DTypes::CullingMode mode) |
Sets front/back culling mode. More... | |
void | setEdgeColor (const QColor &color) |
Sets edge lines color. More... | |
void | setEdgesEnabled (bool enabled) |
Sets whether edge highlighting is enabled. More... | |
void | setEdgeWidth (float width) |
Sets width of edge lines (in pixels) More... | |
void | setExtrusionHeight (float extrusionHeight) |
Sets extrusion height (in map units) More... | |
void | setHeight (float height) |
Sets height (altitude) of the symbol (in map units) More... | |
void | setInvertNormals (bool invert) |
Sets whether the normals of triangles will be inverted (useful for fixing clockwise / counter-clockwise face vertex orders) More... | |
void | setMaterial (QgsAbstractMaterialSettings *material SIP_TRANSFER) |
Sets the material settings used for shading of the symbol. More... | |
void | setRenderedFacade (int side) |
Sets which facade of the buildings is rendered (0 for None, 1 for Walls, 2 for Roofs, 3 for WallsAndRoofs) More... | |
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. More... | |
3
3D symbol that draws polygon geometries as planar polygons, optionally extruded (with added walls).
Definition at line 37 of file qgspolygon3dsymbol.h.
QgsPolygon3DSymbol::QgsPolygon3DSymbol | ( | ) |
Constructor for QgsPolygon3DSymbol.
Definition at line 26 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 102 of file qgspolygon3dsymbol.h.
|
inline |
Returns method that determines how altitude is bound to individual vertices.
Definition at line 64 of file qgspolygon3dsymbol.h.
|
inline |
Returns method that determines altitude (whether to clamp to feature to terrain)
Definition at line 59 of file qgspolygon3dsymbol.h.
|
override |
Definition at line 34 of file qgspolygon3dsymbol.cpp.
|
override |
Definition at line 120 of file qgspolygon3dsymbol.cpp.
|
static |
Creates a new QgsPolygon3DSymbol.
Caller takes ownership of the returned symbol.
Definition at line 125 of file qgspolygon3dsymbol.cpp.
|
inline |
Returns front/back culling mode.
Definition at line 89 of file qgspolygon3dsymbol.h.
|
inline |
|
inline |
Returns whether edge highlighting is enabled.
Definition at line 114 of file qgspolygon3dsymbol.h.
|
inline |
Returns width of edge lines (in pixels)
Definition at line 126 of file qgspolygon3dsymbol.h.
|
override |
Exports the geometries contained within the hierarchy of entity.
Returns whether any objects were exported
Definition at line 143 of file qgspolygon3dsymbol.cpp.
|
inline |
Returns extrusion height (in map units)
Definition at line 74 of file qgspolygon3dsymbol.h.
|
inline |
Returns height (altitude) of the symbol (in map units)
Definition at line 69 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 94 of file qgspolygon3dsymbol.h.
QgsAbstractMaterialSettings * QgsPolygon3DSymbol::material | ( | ) | const |
Returns material used for shading of the symbol.
Definition at line 130 of file qgspolygon3dsymbol.cpp.
|
override |
Definition at line 86 of file qgspolygon3dsymbol.cpp.
|
inline |
Returns which facade of the buildings is rendered (0 for None, 1 for Walls, 2 for Roofs, 3 for WallsAndRoofs)
Definition at line 156 of file qgspolygon3dsymbol.h.
|
inline |
Sets whether also triangles facing the other side will be created.
Useful if input data have inconsistent order of vertices
Definition at line 108 of file qgspolygon3dsymbol.h.
|
inline |
Sets method that determines how altitude is bound to individual vertices.
Definition at line 66 of file qgspolygon3dsymbol.h.
|
inline |
Sets method that determines altitude (whether to clamp to feature to terrain)
Definition at line 61 of file qgspolygon3dsymbol.h.
|
inline |
Sets front/back culling mode.
Definition at line 91 of file qgspolygon3dsymbol.h.
|
inline |
|
inline |
Sets whether edge highlighting is enabled.
Definition at line 120 of file qgspolygon3dsymbol.h.
|
inline |
Sets width of edge lines (in pixels)
Definition at line 132 of file qgspolygon3dsymbol.h.
|
inline |
Sets extrusion height (in map units)
Definition at line 76 of file qgspolygon3dsymbol.h.
|
inline |
Sets height (altitude) of the symbol (in map units)
Definition at line 71 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 96 of file qgspolygon3dsymbol.h.
void QgsPolygon3DSymbol::setMaterial | ( | QgsAbstractMaterialSettings *material | SIP_TRANSFER | ) |
Sets the material settings used for shading of the symbol.
Ownership of material is transferred to the symbol.
Definition at line 135 of file qgspolygon3dsymbol.cpp.
|
inline |
Sets which facade of the buildings is rendered (0 for None, 1 for Walls, 2 for Roofs, 3 for WallsAndRoofs)
Definition at line 150 of file qgspolygon3dsymbol.h.
|
inlineoverride |
Definition at line 44 of file qgspolygon3dsymbol.h.
|
override |
Definition at line 53 of file qgspolygon3dsymbol.cpp.