QGIS API Documentation  3.0.2-Girona (307d082)
Public Member Functions | List of all members
QgsPolygon3DSymbol Class Reference

3 3D symbol that draws polygon geometries as planar polygons, optionally extruded (with added walls). More...

#include <qgspolygon3dsymbol.h>

Inheritance diagram for QgsPolygon3DSymbol:
Inheritance graph
[legend]

Public Member Functions

 QgsPolygon3DSymbol ()=default
 Constructor for QgsPolygon3DSymbol. More...
 
AltitudeBinding altitudeBinding () const
 Returns method that determines how altitude is bound to individual vertices. 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...
 
Qt3DRender::QCullFace::CullingMode cullingMode () const
 Returns front/back culling mode. More...
 
float extrusionHeight () const
 Returns extrusion height (in map units) More...
 
float height () const
 Returns height (altitude) of the symbol (in map units) More...
 
bool invertNormals () const
 Returns whether the normals of triangles will be inverted (useful for fixing clockwise / counter-clockwise face vertex orders) 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 setAltitudeBinding (AltitudeBinding altBinding)
 Sets method that determines how altitude is bound to individual vertices. More...
 
void setAltitudeClamping (AltitudeClamping altClamping)
 Sets method that determines altitude (whether to clamp to feature to terrain) More...
 
void setCullingMode (Qt3DRender::QCullFace::CullingMode mode)
 Sets front/back culling mode. 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 setInvertNormals (bool invert)
 Sets whether the normals of triangles will be inverted (useful for fixing clockwise / counter-clockwise face vertex orders) More...
 
void setMaterial (const QgsPhongMaterialSettings &material)
 Sets material used for shading of 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...
 

Additional Inherited Members

- Public Types inherited from QgsAbstract3DSymbol
enum  Property { PropertyHeight = 0, PropertyExtrusionHeight }
 Data definable properties. More...
 
- Static Public Member Functions inherited from QgsAbstract3DSymbol
static const QgsPropertiesDefinitionpropertyDefinitions ()
 Returns the symbol layer property definitions. More...
 
- Protected Attributes inherited from QgsAbstract3DSymbol
QgsPropertyCollection mDataDefinedProperties
 

Detailed Description

3 3D symbol that draws polygon geometries as planar polygons, optionally extruded (with added walls).

Since
QGIS 3.0

Definition at line 32 of file qgspolygon3dsymbol.h.

Constructor & Destructor Documentation

◆ QgsPolygon3DSymbol()

QgsPolygon3DSymbol::QgsPolygon3DSymbol ( )
default

Constructor for QgsPolygon3DSymbol.

Member Function Documentation

◆ altitudeBinding()

AltitudeBinding QgsPolygon3DSymbol::altitudeBinding ( ) const
inline

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

Definition at line 50 of file qgspolygon3dsymbol.h.

◆ altitudeClamping()

AltitudeClamping QgsPolygon3DSymbol::altitudeClamping ( ) const
inline

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

Definition at line 45 of file qgspolygon3dsymbol.h.

◆ clone()

QgsAbstract3DSymbol * QgsPolygon3DSymbol::clone ( ) const
overridevirtual

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

Implements QgsAbstract3DSymbol.

Definition at line 18 of file qgspolygon3dsymbol.cpp.

◆ cullingMode()

Qt3DRender::QCullFace::CullingMode QgsPolygon3DSymbol::cullingMode ( ) const
inline

Returns front/back culling mode.

Definition at line 70 of file qgspolygon3dsymbol.h.

◆ extrusionHeight()

float QgsPolygon3DSymbol::extrusionHeight ( ) const
inline

Returns extrusion height (in map units)

Definition at line 60 of file qgspolygon3dsymbol.h.

◆ height()

float QgsPolygon3DSymbol::height ( ) const
inline

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

Definition at line 55 of file qgspolygon3dsymbol.h.

◆ invertNormals()

bool QgsPolygon3DSymbol::invertNormals ( ) const
inline

Returns whether the normals of triangles will be inverted (useful for fixing clockwise / counter-clockwise face vertex orders)

Definition at line 75 of file qgspolygon3dsymbol.h.

◆ material()

QgsPhongMaterialSettings QgsPolygon3DSymbol::material ( ) const
inline

Returns material used for shading of the symbol.

Definition at line 65 of file qgspolygon3dsymbol.h.

◆ readXml()

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

Reads symbol configuration from the given DOM element.

Implements QgsAbstract3DSymbol.

Definition at line 47 of file qgspolygon3dsymbol.cpp.

◆ setAltitudeBinding()

void QgsPolygon3DSymbol::setAltitudeBinding ( AltitudeBinding  altBinding)
inline

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

Definition at line 52 of file qgspolygon3dsymbol.h.

◆ setAltitudeClamping()

void QgsPolygon3DSymbol::setAltitudeClamping ( AltitudeClamping  altClamping)
inline

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

Definition at line 47 of file qgspolygon3dsymbol.h.

◆ setCullingMode()

void QgsPolygon3DSymbol::setCullingMode ( Qt3DRender::QCullFace::CullingMode  mode)
inline

Sets front/back culling mode.

Definition at line 72 of file qgspolygon3dsymbol.h.

◆ setExtrusionHeight()

void QgsPolygon3DSymbol::setExtrusionHeight ( float  extrusionHeight)
inline

Sets extrusion height (in map units)

Definition at line 62 of file qgspolygon3dsymbol.h.

◆ setHeight()

void QgsPolygon3DSymbol::setHeight ( float  height)
inline

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

Definition at line 57 of file qgspolygon3dsymbol.h.

◆ setInvertNormals()

void QgsPolygon3DSymbol::setInvertNormals ( bool  invert)
inline

Sets whether the normals of triangles will be inverted (useful for fixing clockwise / counter-clockwise face vertex orders)

Definition at line 77 of file qgspolygon3dsymbol.h.

◆ setMaterial()

void QgsPolygon3DSymbol::setMaterial ( const QgsPhongMaterialSettings material)
inline

Sets material used for shading of the symbol.

Definition at line 67 of file qgspolygon3dsymbol.h.

◆ type()

QString QgsPolygon3DSymbol::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 qgspolygon3dsymbol.h.

◆ writeXml()

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

Writes symbol configuration to the given DOM element.

Implements QgsAbstract3DSymbol.

Definition at line 23 of file qgspolygon3dsymbol.cpp.


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