QGIS API Documentation  3.24.2-Tisler (13c1a02865)
Public Types | Public Member Functions | Static Public Member Functions | List of all members
QgsPoint3DSymbol Class Reference

3 More...

#include <qgspoint3dsymbol.h>

Inheritance diagram for QgsPoint3DSymbol:
Inheritance graph
[legend]

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...
 
 ~QgsPoint3DSymbol () override
 
Qgs3DTypes::AltitudeClamping altitudeClamping () const
 Returns method that determines altitude (whether to clamp to feature to terrain) More...
 
QgsMarkerSymbolbillboardSymbol () const
 Returns a symbol for billboard. More...
 
QMatrix4x4 billboardTransform () const
 Returns transform for billboards. More...
 
QgsAbstract3DSymbolclone () const override SIP_FACTORY
 
QList< QgsWkbTypes::GeometryTypecompatibleGeometryTypes () 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...
 
QgsAbstractMaterialSettingsmaterial () 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 QgsAbstract3DSymbolcreate () 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...
 

Detailed Description

3

3D symbol that draws point geometries as 3D objects using one of the predefined shapes.

Warning
This is not considered stable API, and may change in future QGIS releases. It is exposed to the Python bindings as a tech preview only.
Since
QGIS 3.0

Definition at line 38 of file qgspoint3dsymbol.h.

Member Enumeration Documentation

◆ Shape

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 79 of file qgspoint3dsymbol.h.

Constructor & Destructor Documentation

◆ QgsPoint3DSymbol() [1/2]

QgsPoint3DSymbol::QgsPoint3DSymbol ( )

Constructor for QgsPoint3DSymbol with default QgsMarkerSymbol as the billboardSymbol.

Definition at line 38 of file qgspoint3dsymbol.cpp.

◆ QgsPoint3DSymbol() [2/2]

QgsPoint3DSymbol::QgsPoint3DSymbol ( const QgsPoint3DSymbol other)

Copy Constructor for QgsPoint3DSymbol.

Definition at line 44 of file qgspoint3dsymbol.cpp.

◆ ~QgsPoint3DSymbol()

QgsPoint3DSymbol::~QgsPoint3DSymbol ( )
overridedefault

Member Function Documentation

◆ altitudeClamping()

Qgs3DTypes::AltitudeClamping QgsPoint3DSymbol::altitudeClamping ( ) const
inline

Returns method that determines altitude (whether to clamp to feature to terrain)

Definition at line 64 of file qgspoint3dsymbol.h.

◆ billboardSymbol()

QgsMarkerSymbol * QgsPoint3DSymbol::billboardSymbol ( ) const

Returns a symbol for billboard.

Definition at line 230 of file qgspoint3dsymbol.cpp.

◆ billboardTransform()

QMatrix4x4 QgsPoint3DSymbol::billboardTransform ( ) const

Returns transform for billboards.

Definition at line 161 of file qgspoint3dsymbol.cpp.

◆ clone()

QgsAbstract3DSymbol * QgsPoint3DSymbol::clone ( ) const
override

Definition at line 28 of file qgspoint3dsymbol.cpp.

◆ compatibleGeometryTypes()

QList< QgsWkbTypes::GeometryType > QgsPoint3DSymbol::compatibleGeometryTypes ( ) const
override

Definition at line 117 of file qgspoint3dsymbol.cpp.

◆ create()

QgsAbstract3DSymbol * QgsPoint3DSymbol::create ( )
static

Creates a new QgsPoint3DSymbol.

Caller takes ownership of the returned symbol.

Definition at line 33 of file qgspoint3dsymbol.cpp.

◆ exportGeometries()

bool QgsPoint3DSymbol::exportGeometries ( Qgs3DSceneExporter exporter,
Qt3DCore::QEntity *  entity,
const QString &  objectNamePrefix 
) const
override

Exports the geometries contained within the hierarchy of entity.

Returns whether any objects were exported

Definition at line 182 of file qgspoint3dsymbol.cpp.

◆ material()

QgsAbstractMaterialSettings * QgsPoint3DSymbol::material ( ) const

Returns material used for shading of the symbol.

Definition at line 169 of file qgspoint3dsymbol.cpp.

◆ readXml()

void QgsPoint3DSymbol::readXml ( const QDomElement &  elem,
const QgsReadWriteContext context 
)
override

Definition at line 91 of file qgspoint3dsymbol.cpp.

◆ setAltitudeClamping()

void QgsPoint3DSymbol::setAltitudeClamping ( Qgs3DTypes::AltitudeClamping  altClamping)
inline

Sets method that determines altitude (whether to clamp to feature to terrain)

Definition at line 66 of file qgspoint3dsymbol.h.

◆ setBillboardSymbol()

void QgsPoint3DSymbol::setBillboardSymbol ( QgsMarkerSymbol symbol)

Set symbol for billboard and the ownership is transferred.

Definition at line 235 of file qgspoint3dsymbol.cpp.

◆ setMaterial()

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 174 of file qgspoint3dsymbol.cpp.

◆ setShape()

void QgsPoint3DSymbol::setShape ( Shape  shape)
inline

Sets 3D shape for points.

Definition at line 100 of file qgspoint3dsymbol.h.

◆ setShapeProperties()

void QgsPoint3DSymbol::setShapeProperties ( const QVariantMap &  properties)
inline

Sets a key-value dictionary of point shape properties.

Definition at line 105 of file qgspoint3dsymbol.h.

◆ setTransform()

void QgsPoint3DSymbol::setTransform ( const QMatrix4x4 &  transform)
inline

Sets transform for individual objects represented by the symbol.

Definition at line 115 of file qgspoint3dsymbol.h.

◆ shape()

Shape QgsPoint3DSymbol::shape ( ) const
inline

Returns 3D shape for points.

Definition at line 98 of file qgspoint3dsymbol.h.

◆ shapeFromString()

QgsPoint3DSymbol::Shape QgsPoint3DSymbol::shapeFromString ( const QString &  shape)
static

Returns shape enum value from a string.

Definition at line 122 of file qgspoint3dsymbol.cpp.

◆ shapeProperties()

QVariantMap QgsPoint3DSymbol::shapeProperties ( ) const
inline

Returns a key-value dictionary of point shape properties.

Definition at line 103 of file qgspoint3dsymbol.h.

◆ shapeToString()

QString QgsPoint3DSymbol::shapeToString ( QgsPoint3DSymbol::Shape  shape)
static

Returns string from a shape enum value.

Definition at line 144 of file qgspoint3dsymbol.cpp.

◆ transform()

QMatrix4x4 QgsPoint3DSymbol::transform ( ) const
inline

Returns transform for individual objects represented by the symbol.

Definition at line 113 of file qgspoint3dsymbol.h.

◆ type()

QString QgsPoint3DSymbol::type ( ) const
inlineoverride

Definition at line 56 of file qgspoint3dsymbol.h.

◆ writeXml()

void QgsPoint3DSymbol::writeXml ( QDomElement &  elem,
const QgsReadWriteContext context 
) const
override

Definition at line 57 of file qgspoint3dsymbol.cpp.


The documentation for this class was generated from the following files: