QGIS API Documentation 3.36.0-Maidenhead (09951dc0acf)
|
3 More...
#include <qgspoint3dsymbol.h>
Public Member Functions | |
QgsPoint3DSymbol () | |
Constructor for QgsPoint3DSymbol with default QgsMarkerSymbol as the billboardSymbol. | |
QgsPoint3DSymbol (const QgsPoint3DSymbol &other) | |
Copy Constructor for QgsPoint3DSymbol. | |
~QgsPoint3DSymbol () override | |
Qgis::AltitudeClamping | altitudeClamping () const |
Returns method that determines altitude (whether to clamp to feature to terrain) | |
QgsMarkerSymbol * | billboardSymbol () const |
Returns a symbol for billboard. | |
QMatrix4x4 | billboardTransform () const |
Returns transform for billboards. | |
QgsAbstract3DSymbol * | clone () const override |
Returns a new instance of the symbol with the same settings. | |
QList< Qgis::GeometryType > | compatibleGeometryTypes () const override |
Returns the list of the vector layer geometry types which are compatible with this symbol. | |
bool | exportGeometries (Qgs3DSceneExporter *exporter, Qt3DCore::QEntity *entity, const QString &objectNamePrefix) const override |
Exports the geometries contained within the hierarchy of entity. | |
QgsAbstractMaterialSettings * | materialSettings () const |
Returns material settings used for shading of the symbol. | |
void | readXml (const QDomElement &elem, const QgsReadWriteContext &context) override |
Reads symbol configuration from the given DOM element. | |
void | setAltitudeClamping (Qgis::AltitudeClamping altClamping) |
Sets method that determines altitude (whether to clamp to feature to terrain) | |
void | setBillboardSymbol (QgsMarkerSymbol *symbol) |
Set symbol for billboard and the ownership is transferred. | |
void | setDefaultPropertiesFromLayer (const QgsVectorLayer *layer) override |
Sets default properties for the symbol based on a layer's configuration. | |
void | setMaterialSettings (QgsAbstractMaterialSettings *materialSettings) |
Sets the material settings used for shading of the symbol. | |
void | setShape (Qgis::Point3DShape shape) |
Sets 3D shape for points. | |
void | setShapeProperties (const QVariantMap &properties) |
Sets a key-value dictionary of point shape properties. | |
void | setTransform (const QMatrix4x4 &transform) |
Sets transform for individual objects represented by the symbol. | |
Qgis::Point3DShape | shape () const |
Returns 3D shape for points. | |
QVariantMap | shapeProperties () const |
Returns a key-value dictionary of point shape properties. | |
QVariant | shapeProperty (const QString &property) const |
Returns the value for a specific shape property. | |
QMatrix4x4 | transform () const |
Returns transform for individual objects represented by the symbol. | |
QString | type () const override |
Returns identifier of symbol type. Each 3D symbol implementation should return a different type. | |
void | writeXml (QDomElement &elem, const QgsReadWriteContext &context) const override |
Writes symbol configuration to the given DOM element. | |
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. | |
const QgsPropertyCollection & | dataDefinedProperties () const |
Returns a reference to the symbol layer's property collection, used for data defined overrides. | |
void | setDataDefinedProperties (const QgsPropertyCollection &collection) |
Sets the symbol layer's property collection, used for data defined overrides. | |
Static Public Member Functions | |
static QgsAbstract3DSymbol * | create () |
Creates a new QgsPoint3DSymbol. | |
static Qgis::Point3DShape | shapeFromString (const QString &shape) |
Returns shape enum value from a string. | |
static QString | shapeToString (Qgis::Point3DShape shape) |
Returns string from a shape enum value. | |
Static Public Member Functions inherited from QgsAbstract3DSymbol | |
static const QgsPropertiesDefinition & | propertyDefinitions () |
Returns the symbol layer property definitions. | |
Additional Inherited Members | |
Public Types inherited from QgsAbstract3DSymbol | |
enum class | Property : int { Height = 0 , ExtrusionHeight } |
Data definable properties. More... | |
Protected Member Functions inherited from QgsAbstract3DSymbol | |
virtual void | copyBaseSettings (QgsAbstract3DSymbol *destination) const |
Copies base class settings from this object to a destination object. | |
Protected Attributes inherited from QgsAbstract3DSymbol | |
QgsPropertyCollection | mDataDefinedProperties |
3
3D symbol that draws point geometries as 3D objects using one of the predefined shapes.
Definition at line 38 of file qgspoint3dsymbol.h.
QgsPoint3DSymbol::QgsPoint3DSymbol | ( | ) |
Constructor for QgsPoint3DSymbol with default QgsMarkerSymbol as the billboardSymbol.
Definition at line 40 of file qgspoint3dsymbol.cpp.
QgsPoint3DSymbol::QgsPoint3DSymbol | ( | const QgsPoint3DSymbol & | other | ) |
Copy Constructor for QgsPoint3DSymbol.
Definition at line 46 of file qgspoint3dsymbol.cpp.
|
overridedefault |
|
inline |
Returns method that determines altitude (whether to clamp to feature to terrain)
Definition at line 65 of file qgspoint3dsymbol.h.
QgsMarkerSymbol * QgsPoint3DSymbol::billboardSymbol | ( | ) | const |
Returns a symbol for billboard.
Definition at line 347 of file qgspoint3dsymbol.cpp.
QMatrix4x4 QgsPoint3DSymbol::billboardTransform | ( | ) | const |
Returns transform for billboards.
Definition at line 275 of file qgspoint3dsymbol.cpp.
|
overridevirtual |
Returns a new instance of the symbol with the same settings.
Implements QgsAbstract3DSymbol.
Definition at line 30 of file qgspoint3dsymbol.cpp.
|
overridevirtual |
Returns the list of the vector layer geometry types which are compatible with this symbol.
Reimplemented from QgsAbstract3DSymbol.
Definition at line 119 of file qgspoint3dsymbol.cpp.
|
static |
Creates a new QgsPoint3DSymbol.
Caller takes ownership of the returned symbol.
Definition at line 35 of file qgspoint3dsymbol.cpp.
|
overridevirtual |
Exports the geometries contained within the hierarchy of entity.
Returns whether any objects were exported
Reimplemented from QgsAbstract3DSymbol.
Definition at line 296 of file qgspoint3dsymbol.cpp.
QgsAbstractMaterialSettings * QgsPoint3DSymbol::materialSettings | ( | ) | const |
Returns material settings used for shading of the symbol.
Definition at line 283 of file qgspoint3dsymbol.cpp.
|
overridevirtual |
Reads symbol configuration from the given DOM element.
Implements QgsAbstract3DSymbol.
Definition at line 93 of file qgspoint3dsymbol.cpp.
|
inline |
Sets method that determines altitude (whether to clamp to feature to terrain)
Definition at line 67 of file qgspoint3dsymbol.h.
void QgsPoint3DSymbol::setBillboardSymbol | ( | QgsMarkerSymbol * | symbol | ) |
Set symbol for billboard and the ownership is transferred.
Definition at line 352 of file qgspoint3dsymbol.cpp.
|
overridevirtual |
Sets default properties for the symbol based on a layer's configuration.
Reimplemented from QgsAbstract3DSymbol.
Definition at line 124 of file qgspoint3dsymbol.cpp.
void QgsPoint3DSymbol::setMaterialSettings | ( | QgsAbstractMaterialSettings * | materialSettings | ) |
Sets the material settings used for shading of the symbol.
Ownership of material is transferred to the symbol.
Definition at line 288 of file qgspoint3dsymbol.cpp.
|
inline |
Sets 3D shape for points.
Definition at line 87 of file qgspoint3dsymbol.h.
|
inline |
Sets a key-value dictionary of point shape properties.
Definition at line 111 of file qgspoint3dsymbol.h.
|
inline |
Sets transform for individual objects represented by the symbol.
Definition at line 121 of file qgspoint3dsymbol.h.
|
inline |
Returns 3D shape for points.
Definition at line 85 of file qgspoint3dsymbol.h.
|
static |
Returns shape enum value from a string.
Definition at line 133 of file qgspoint3dsymbol.cpp.
|
inline |
Returns a key-value dictionary of point shape properties.
In most cases callers should use shapeProperty() instead, to correctly handle default values when a property has not been explicitly set.
Definition at line 98 of file qgspoint3dsymbol.h.
QVariant QgsPoint3DSymbol::shapeProperty | ( | const QString & | property | ) | const |
Returns the value for a specific shape property.
This method accounts for default property values for the symbol's shape(), used when the property has not been explicitly set.
Definition at line 172 of file qgspoint3dsymbol.cpp.
|
static |
Returns string from a shape enum value.
Definition at line 155 of file qgspoint3dsymbol.cpp.
|
inline |
Returns transform for individual objects represented by the symbol.
Definition at line 119 of file qgspoint3dsymbol.h.
|
inlineoverridevirtual |
Returns identifier of symbol type. Each 3D symbol implementation should return a different type.
Implements QgsAbstract3DSymbol.
Definition at line 56 of file qgspoint3dsymbol.h.
|
overridevirtual |
Writes symbol configuration to the given DOM element.
Implements QgsAbstract3DSymbol.
Definition at line 59 of file qgspoint3dsymbol.cpp.