QGIS API Documentation  3.2.0-Bonn (bc43194)
Public Types | Public Member Functions | Static Public Member Functions | List of all members
QgsPoint3DSymbol Class Reference

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

#include <qgspoint3dsymbol.h>

Inheritance diagram for QgsPoint3DSymbol:
Inheritance graph
[legend]

Public Types

enum  Shape {
  Cylinder, Sphere, Cone, Cube,
  Torus, Plane, ExtrudedText, Model
}
 3D shape types supported by the symbol More...
 
- Public Types inherited from QgsAbstract3DSymbol
enum  Property { PropertyHeight = 0, PropertyExtrusionHeight }
 Data definable properties. More...
 

Public Member Functions

 QgsPoint3DSymbol ()=default
 Constructor for QgsPoint3DSymbol. More...
 
AltitudeClamping altitudeClamping () const
 Returns method that determines altitude (whether to clamp to feature to terrain) More...
 
QgsAbstract3DSymbolclone () const override
 Returns a new instance of the symbol with the same settings. 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 setAltitudeClamping (AltitudeClamping altClamping)
 Sets method that determines altitude (whether to clamp to feature to terrain) More...
 
void setMaterial (const QgsPhongMaterialSettings &material)
 Sets material 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
 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
 
QgsPropertyCollectiondataDefinedProperties ()
 Returns a reference to the symbol layer's property collection, used for data defined overrides. More...
 
const QgsPropertyCollectiondataDefinedProperties () 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...
 

Static Public Member Functions

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...
 
- Static Public Member Functions inherited from QgsAbstract3DSymbol
static const QgsPropertiesDefinitionpropertyDefinitions ()
 Returns the symbol layer property definitions. More...
 

Additional Inherited Members

- Protected Attributes inherited from QgsAbstract3DSymbol
QgsPropertyCollection mDataDefinedProperties
 

Detailed Description

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

Since
QGIS 3.0

Definition at line 32 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 

Definition at line 55 of file qgspoint3dsymbol.h.

Constructor & Destructor Documentation

◆ QgsPoint3DSymbol()

QgsPoint3DSymbol::QgsPoint3DSymbol ( )
default

Constructor for QgsPoint3DSymbol.

Member Function Documentation

◆ altitudeClamping()

AltitudeClamping QgsPoint3DSymbol::altitudeClamping ( ) const
inline

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

Definition at line 45 of file qgspoint3dsymbol.h.

◆ clone()

QgsAbstract3DSymbol * QgsPoint3DSymbol::clone ( ) const
overridevirtual

Returns a new instance of the symbol with the same settings.

Implements QgsAbstract3DSymbol.

Definition at line 21 of file qgspoint3dsymbol.cpp.

◆ material()

QgsPhongMaterialSettings QgsPoint3DSymbol::material ( ) const
inline

Returns material used for shading of the symbol.

Definition at line 50 of file qgspoint3dsymbol.h.

◆ readXml()

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

Reads symbol configuration from the given DOM element.

Implements QgsAbstract3DSymbol.

Definition at line 52 of file qgspoint3dsymbol.cpp.

◆ setAltitudeClamping()

void QgsPoint3DSymbol::setAltitudeClamping ( AltitudeClamping  altClamping)
inline

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

Definition at line 47 of file qgspoint3dsymbol.h.

◆ setMaterial()

void QgsPoint3DSymbol::setMaterial ( const QgsPhongMaterialSettings material)
inline

Sets material used for shading of the symbol.

Definition at line 52 of file qgspoint3dsymbol.h.

◆ setShape()

void QgsPoint3DSymbol::setShape ( Shape  shape)
inline

Sets 3D shape for points.

Definition at line 75 of file qgspoint3dsymbol.h.

◆ setShapeProperties()

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

Sets a key-value dictionary of point shape properties.

Definition at line 80 of file qgspoint3dsymbol.h.

◆ setTransform()

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

Sets transform for individual objects represented by the symbol.

Definition at line 85 of file qgspoint3dsymbol.h.

◆ shape()

Shape QgsPoint3DSymbol::shape ( ) const
inline

Returns 3D shape for points.

Definition at line 73 of file qgspoint3dsymbol.h.

◆ shapeFromString()

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

Returns shape enum value from a string.

Definition at line 70 of file qgspoint3dsymbol.cpp.

◆ shapeProperties()

QVariantMap QgsPoint3DSymbol::shapeProperties ( ) const
inline

Returns a key-value dictionary of point shape properties.

Definition at line 78 of file qgspoint3dsymbol.h.

◆ shapeToString()

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

Returns string from a shape enum value.

Definition at line 90 of file qgspoint3dsymbol.cpp.

◆ transform()

QMatrix4x4 QgsPoint3DSymbol::transform ( ) const
inline

Returns transform for individual objects represented by the symbol.

Definition at line 83 of file qgspoint3dsymbol.h.

◆ type()

QString QgsPoint3DSymbol::type ( ) const
inlineoverridevirtual

Returns identifier of symbol type. Each 3D symbol implementation should return a different type.

Implements QgsAbstract3DSymbol.

Definition at line 38 of file qgspoint3dsymbol.h.

◆ writeXml()

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

Writes symbol configuration to the given DOM element.

Implements QgsAbstract3DSymbol.

Definition at line 26 of file qgspoint3dsymbol.cpp.


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