QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
#include <qgspolygon3dsymbol.h>
Public Member Functions | |
QgsPolygon3DSymbol ()=default | |
Constructor for QgsPolygon3DSymbol. More... | |
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 |
Returns a new instance of the symbol with the same settings. More... | |
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... | |
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... | |
QgsPhongMaterialSettings | material () const |
Returns material used for shading of the symbol. More... | |
void | readXml (const QDomElement &elem, const QgsReadWriteContext &context) override |
Reads symbol configuration from the given DOM element. 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 (const QgsPhongMaterialSettings &material) |
Sets material used for shading of the symbol. More... | |
QString | type () const override |
Returns identifier of symbol type. Each 3D symbol implementation should return a different type. More... | |
void | writeXml (QDomElement &elem, const QgsReadWriteContext &context) const override |
Writes symbol configuration to the given DOM element. More... | |
Public Member Functions inherited from QgsAbstract3DSymbol | |
virtual | ~QgsAbstract3DSymbol ()=default |
QgsPropertyCollection & | dataDefinedProperties () |
Returns a reference to the symbol layer's property collection, used for data defined overrides. More... | |
const QgsPropertyCollection & | dataDefinedProperties () const |
Returns a reference to the symbol layer's property collection, used for data defined overrides. More... | |
void | setDataDefinedProperties (const QgsPropertyCollection &collection) |
Sets the symbol layer's property collection, used for data defined overrides. More... | |
Additional Inherited Members | |
Public Types inherited from QgsAbstract3DSymbol | |
enum | Property { PropertyHeight = 0, PropertyExtrusionHeight } |
Data definable properties. More... | |
Static Public Member Functions inherited from QgsAbstract3DSymbol | |
static const QgsPropertiesDefinition & | propertyDefinitions () |
Returns the symbol layer property definitions. More... | |
Protected Attributes inherited from QgsAbstract3DSymbol | |
QgsPropertyCollection | mDataDefinedProperties |
3 3D symbol that draws polygon geometries as planar polygons, optionally extruded (with added walls).
Definition at line 36 of file qgspolygon3dsymbol.h.
|
default |
Constructor for QgsPolygon3DSymbol.
|
inline |
Returns whether also triangles facing the other side will be created.
Useful if input data have inconsistent order of vertices
Definition at line 100 of file qgspolygon3dsymbol.h.
|
inline |
Returns method that determines how altitude is bound to individual vertices.
Definition at line 67 of file qgspolygon3dsymbol.h.
|
inline |
Returns method that determines altitude (whether to clamp to feature to terrain)
Definition at line 62 of file qgspolygon3dsymbol.h.
|
overridevirtual |
Returns a new instance of the symbol with the same settings.
Implements QgsAbstract3DSymbol.
Definition at line 21 of file qgspolygon3dsymbol.cpp.
|
inline |
Returns front/back culling mode.
Definition at line 87 of file qgspolygon3dsymbol.h.
|
inline |
|
inline |
Returns whether edge highlighting is enabled.
Definition at line 112 of file qgspolygon3dsymbol.h.
|
inline |
Returns width of edge lines (in pixels)
Definition at line 124 of file qgspolygon3dsymbol.h.
|
inline |
Returns extrusion height (in map units)
Definition at line 77 of file qgspolygon3dsymbol.h.
|
inline |
Returns height (altitude) of the symbol (in map units)
Definition at line 72 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 92 of file qgspolygon3dsymbol.h.
|
inline |
Returns material used for shading of the symbol.
Definition at line 82 of file qgspolygon3dsymbol.h.
|
overridevirtual |
Reads symbol configuration from the given DOM element.
Implements QgsAbstract3DSymbol.
Definition at line 57 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 106 of file qgspolygon3dsymbol.h.
|
inline |
Sets method that determines how altitude is bound to individual vertices.
Definition at line 69 of file qgspolygon3dsymbol.h.
|
inline |
Sets method that determines altitude (whether to clamp to feature to terrain)
Definition at line 64 of file qgspolygon3dsymbol.h.
|
inline |
Sets front/back culling mode.
Definition at line 89 of file qgspolygon3dsymbol.h.
|
inline |
|
inline |
Sets whether edge highlighting is enabled.
Definition at line 118 of file qgspolygon3dsymbol.h.
|
inline |
Sets width of edge lines (in pixels)
Definition at line 130 of file qgspolygon3dsymbol.h.
|
inline |
Sets extrusion height (in map units)
Definition at line 79 of file qgspolygon3dsymbol.h.
|
inline |
Sets height (altitude) of the symbol (in map units)
Definition at line 74 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 94 of file qgspolygon3dsymbol.h.
|
inline |
Sets material used for shading of the symbol.
Definition at line 84 of file qgspolygon3dsymbol.h.
|
inlineoverridevirtual |
Returns identifier of symbol type. Each 3D symbol implementation should return a different type.
Implements QgsAbstract3DSymbol.
Definition at line 55 of file qgspolygon3dsymbol.h.
|
overridevirtual |
Writes symbol configuration to the given DOM element.
Implements QgsAbstract3DSymbol.
Definition at line 26 of file qgspolygon3dsymbol.cpp.