QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
3 3D symbol that draws point geometries as 3D objects using one of the predefined shapes. More...
#include <qgspoint3dsymbol.h>
Public Types | |
enum | Shape { Cylinder, Sphere, Cone, Cube, Torus, Plane, ExtrudedText, Model, Billboard } |
3D shape types supported by the symbol More... | |
Public Member Functions | |
QgsPoint3DSymbol () | |
Constructor for QgsPoint3DSymbol with default QgsMarkerSymbol as the billboardSymbol. More... | |
QgsPoint3DSymbol (const QgsPoint3DSymbol &other) | |
Copy Constructor for QgsPoint3DSymbol. More... | |
Qgs3DTypes::AltitudeClamping | altitudeClamping () const |
Returns method that determines altitude (whether to clamp to feature to terrain) More... | |
QgsMarkerSymbol * | billboardSymbol () const |
Returns a symbol for billboard. More... | |
QMatrix4x4 | billboardTransform () const |
Returns transform for billboards. More... | |
QgsAbstract3DSymbol * | clone () const override SIP_FACTORY |
QList< QgsWkbTypes::GeometryType > | compatibleGeometryTypes () const override |
bool | exportGeometries (Qgs3DSceneExporter *exporter, Qt3DCore::QEntity *entity, const QString &objectNamePrefix) const override SIP_SKIP |
Exports the geometries contained within the hierarchy of entity. More... | |
QgsAbstractMaterialSettings * | material () const |
Returns material used for shading of the symbol. More... | |
void | readXml (const QDomElement &elem, const QgsReadWriteContext &context) override |
void | setAltitudeClamping (Qgs3DTypes::AltitudeClamping altClamping) |
Sets method that determines altitude (whether to clamp to feature to terrain) More... | |
void | setBillboardSymbol (QgsMarkerSymbol *symbol) |
Set symbol for billboard and the ownership is transferred. More... | |
void | setMaterial (QgsAbstractMaterialSettings *material SIP_TRANSFER) |
Sets the material settings used for shading of the symbol. More... | |
void | setShape (Shape shape) |
Sets 3D shape for points. More... | |
void | setShapeProperties (const QVariantMap &properties) |
Sets a key-value dictionary of point shape properties. More... | |
void | setTransform (const QMatrix4x4 &transform) |
Sets transform for individual objects represented by the symbol. More... | |
Shape | shape () const |
Returns 3D shape for points. More... | |
QVariantMap | shapeProperties () const |
Returns a key-value dictionary of point shape properties. More... | |
QMatrix4x4 | transform () const |
Returns transform for individual objects represented by the symbol. 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 QgsPoint3DSymbol. More... | |
static Shape | shapeFromString (const QString &shape) |
Returns shape enum value from a string. More... | |
static QString | shapeToString (Shape shape) |
Returns string from a shape enum value. More... | |
3 3D symbol that draws point geometries as 3D objects using one of the predefined shapes.
Definition at line 38 of file qgspoint3dsymbol.h.
3D shape types supported by the symbol
Enumerator | |
---|---|
Cylinder | |
Sphere | |
Cone | |
Cube | |
Torus | |
Plane | |
ExtrudedText | Supported in Qt 5.9+. |
Model | |
Billboard |
Definition at line 77 of file qgspoint3dsymbol.h.
QgsPoint3DSymbol::QgsPoint3DSymbol | ( | ) |
Constructor for QgsPoint3DSymbol with default QgsMarkerSymbol as the billboardSymbol.
Definition at line 37 of file qgspoint3dsymbol.cpp.
QgsPoint3DSymbol::QgsPoint3DSymbol | ( | const QgsPoint3DSymbol & | other | ) |
Copy Constructor for QgsPoint3DSymbol.
Definition at line 43 of file qgspoint3dsymbol.cpp.
|
inline |
Returns method that determines altitude (whether to clamp to feature to terrain)
Definition at line 62 of file qgspoint3dsymbol.h.
|
inline |
Returns a symbol for billboard.
Definition at line 106 of file qgspoint3dsymbol.h.
QMatrix4x4 QgsPoint3DSymbol::billboardTransform | ( | ) | const |
Returns transform for billboards.
Definition at line 158 of file qgspoint3dsymbol.cpp.
|
override |
Definition at line 27 of file qgspoint3dsymbol.cpp.
|
override |
Definition at line 114 of file qgspoint3dsymbol.cpp.
|
static |
Creates a new QgsPoint3DSymbol.
Caller takes ownership of the returned symbol.
Definition at line 32 of file qgspoint3dsymbol.cpp.
|
override |
Exports the geometries contained within the hierarchy of entity.
Returns whether any objects were exported
Definition at line 179 of file qgspoint3dsymbol.cpp.
QgsAbstractMaterialSettings * QgsPoint3DSymbol::material | ( | ) | const |
Returns material used for shading of the symbol.
Definition at line 166 of file qgspoint3dsymbol.cpp.
|
override |
Definition at line 88 of file qgspoint3dsymbol.cpp.
|
inline |
Sets method that determines altitude (whether to clamp to feature to terrain)
Definition at line 64 of file qgspoint3dsymbol.h.
|
inline |
Set symbol for billboard and the ownership is transferred.
Definition at line 108 of file qgspoint3dsymbol.h.
void QgsPoint3DSymbol::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 171 of file qgspoint3dsymbol.cpp.
|
inline |
Sets 3D shape for points.
Definition at line 98 of file qgspoint3dsymbol.h.
|
inline |
Sets a key-value dictionary of point shape properties.
Definition at line 103 of file qgspoint3dsymbol.h.
|
inline |
Sets transform for individual objects represented by the symbol.
Definition at line 113 of file qgspoint3dsymbol.h.
|
inline |
Returns 3D shape for points.
Definition at line 96 of file qgspoint3dsymbol.h.
|
static |
Returns shape enum value from a string.
Definition at line 119 of file qgspoint3dsymbol.cpp.
|
inline |
Returns a key-value dictionary of point shape properties.
Definition at line 101 of file qgspoint3dsymbol.h.
|
static |
Returns string from a shape enum value.
Definition at line 141 of file qgspoint3dsymbol.cpp.
|
inline |
Returns transform for individual objects represented by the symbol.
Definition at line 111 of file qgspoint3dsymbol.h.
|
inlineoverride |
Definition at line 54 of file qgspoint3dsymbol.h.
|
override |
Definition at line 54 of file qgspoint3dsymbol.cpp.