QGIS API Documentation  3.20.0-Odense (decaadbb31)
Public Member Functions | Static Public Member Functions | List of all members
QgsLine3DSymbol Class Reference

3 More...

#include <qgsline3dsymbol.h>

Inheritance diagram for QgsLine3DSymbol:
Inheritance graph
[legend]

Public Member Functions

 QgsLine3DSymbol ()
 Constructor for QgsLine3DSymbol. More...
 
 ~QgsLine3DSymbol () override
 
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...
 
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...
 
float extrusionHeight () const
 Returns extrusion height (in map units) More...
 
float height () const
 Returns height (altitude) of the symbol (in map units) More...
 
QgsAbstractMaterialSettingsmaterial () const
 Returns material used for shading of the symbol. More...
 
void readXml (const QDomElement &elem, const QgsReadWriteContext &context) override
 
bool renderAsSimpleLines () const
 Returns whether the renderer will render data with simple lines (otherwise it uses buffer) 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 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 setMaterial (QgsAbstractMaterialSettings *material SIP_TRANSFER)
 Sets the material settings used for shading of the symbol. More...
 
void setRenderAsSimpleLines (bool enabled)
 Sets whether the renderer will render data with simple lines (otherwise it uses buffer) More...
 
void setWidth (float width)
 Sets width of the line symbol (in map units) More...
 
QString type () const override
 
float width () const
 Returns width of the line symbol (in map units) More...
 
void writeXml (QDomElement &elem, const QgsReadWriteContext &context) const override
 

Static Public Member Functions

static QgsAbstract3DSymbolcreate () SIP_FACTORY
 Creates a new QgsLine3DSymbol. More...
 

Detailed Description

3

3D symbol that draws linestring geometries as planar polygons (created from lines using a buffer with given thickness).

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 35 of file qgsline3dsymbol.h.

Constructor & Destructor Documentation

◆ QgsLine3DSymbol()

QgsLine3DSymbol::QgsLine3DSymbol ( )

Constructor for QgsLine3DSymbol.

Definition at line 23 of file qgsline3dsymbol.cpp.

◆ ~QgsLine3DSymbol()

QgsLine3DSymbol::~QgsLine3DSymbol ( )
overridedefault

Member Function Documentation

◆ altitudeBinding()

Qgs3DTypes::AltitudeBinding QgsLine3DSymbol::altitudeBinding ( ) const
inline

Returns method that determines how altitude is bound to individual vertices.

Definition at line 62 of file qgsline3dsymbol.h.

◆ altitudeClamping()

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

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

Definition at line 57 of file qgsline3dsymbol.h.

◆ clone()

QgsAbstract3DSymbol * QgsLine3DSymbol::clone ( ) const
override

Definition at line 31 of file qgsline3dsymbol.cpp.

◆ compatibleGeometryTypes()

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

Definition at line 99 of file qgsline3dsymbol.cpp.

◆ create()

QgsAbstract3DSymbol * QgsLine3DSymbol::create ( )
static

Creates a new QgsLine3DSymbol.

Caller takes ownership of the returned symbol.

Definition at line 104 of file qgsline3dsymbol.cpp.

◆ exportGeometries()

bool QgsLine3DSymbol::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 109 of file qgsline3dsymbol.cpp.

◆ extrusionHeight()

float QgsLine3DSymbol::extrusionHeight ( ) const
inline

Returns extrusion height (in map units)

Definition at line 77 of file qgsline3dsymbol.h.

◆ height()

float QgsLine3DSymbol::height ( ) const
inline

Returns height (altitude) of the symbol (in map units)

Definition at line 72 of file qgsline3dsymbol.h.

◆ material()

QgsAbstractMaterialSettings * QgsLine3DSymbol::material ( ) const

Returns material used for shading of the symbol.

Definition at line 86 of file qgsline3dsymbol.cpp.

◆ readXml()

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

Definition at line 66 of file qgsline3dsymbol.cpp.

◆ renderAsSimpleLines()

bool QgsLine3DSymbol::renderAsSimpleLines ( ) const
inline

Returns whether the renderer will render data with simple lines (otherwise it uses buffer)

Definition at line 82 of file qgsline3dsymbol.h.

◆ setAltitudeBinding()

void QgsLine3DSymbol::setAltitudeBinding ( Qgs3DTypes::AltitudeBinding  altBinding)
inline

Sets method that determines how altitude is bound to individual vertices.

Definition at line 64 of file qgsline3dsymbol.h.

◆ setAltitudeClamping()

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

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

Definition at line 59 of file qgsline3dsymbol.h.

◆ setExtrusionHeight()

void QgsLine3DSymbol::setExtrusionHeight ( float  extrusionHeight)
inline

Sets extrusion height (in map units)

Definition at line 79 of file qgsline3dsymbol.h.

◆ setHeight()

void QgsLine3DSymbol::setHeight ( float  height)
inline

Sets height (altitude) of the symbol (in map units)

Definition at line 74 of file qgsline3dsymbol.h.

◆ setMaterial()

void QgsLine3DSymbol::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 91 of file qgsline3dsymbol.cpp.

◆ setRenderAsSimpleLines()

void QgsLine3DSymbol::setRenderAsSimpleLines ( bool  enabled)
inline

Sets whether the renderer will render data with simple lines (otherwise it uses buffer)

Definition at line 84 of file qgsline3dsymbol.h.

◆ setWidth()

void QgsLine3DSymbol::setWidth ( float  width)
inline

Sets width of the line symbol (in map units)

Definition at line 69 of file qgsline3dsymbol.h.

◆ type()

QString QgsLine3DSymbol::type ( ) const
inlineoverride

Definition at line 49 of file qgsline3dsymbol.h.

◆ width()

float QgsLine3DSymbol::width ( ) const
inline

Returns width of the line symbol (in map units)

Definition at line 67 of file qgsline3dsymbol.h.

◆ writeXml()

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

Definition at line 45 of file qgsline3dsymbol.cpp.


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