QGIS API Documentation  3.18.1-Zürich (202f1bf7e5)
Public Types | Public Member Functions | Protected Attributes | List of all members
QgsPointCloud3DSymbol Class Referenceabstract

3 More...

#include <qgspointcloud3dsymbol.h>

Inheritance diagram for QgsPointCloud3DSymbol:
Inheritance graph
[legend]

Public Types

enum  RenderingStyle { NoRendering = 0 , SingleColor , ColorRamp , RgbRendering }
 How to render the point cloud. More...
 

Public Member Functions

 QgsPointCloud3DSymbol ()
 Constructor for QgsPointCloud3DSymbol. More...
 
 ~QgsPointCloud3DSymbol () override
 Destructor for QgsPointCloud3DSymbol. More...
 
virtual unsigned int byteStride ()=0
 Returns the byte stride for the geometries used to for the vertex buffer. More...
 
virtual void fillMaterial (Qt3DRender::QMaterial *material)=0SIP_SKIP
 Used to fill material object with necessary QParameters (and consequently opengl uniforms) More...
 
float pointSize () const
 Returns the point size of the point cloud. More...
 
void setPointSize (float size)
 Sets the point size. More...
 
virtual QString symbolType () const =0
 Returns a unique string identifier of the symbol type. More...
 
QString type () const override
 

Protected Attributes

float mPointSize = 2.0
 

Detailed Description

3

3D symbol that draws point cloud geometries as 3D objects.

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.18

Definition at line 38 of file qgspointcloud3dsymbol.h.

Member Enumeration Documentation

◆ RenderingStyle

How to render the point cloud.

Enumerator
NoRendering 
SingleColor 

Render the point cloud with a single color.

ColorRamp 

Render the point cloud with a color ramp.

RgbRendering 

Render the RGB colors of the point cloud.

Definition at line 45 of file qgspointcloud3dsymbol.h.

Constructor & Destructor Documentation

◆ QgsPointCloud3DSymbol()

QgsPointCloud3DSymbol::QgsPointCloud3DSymbol ( )

Constructor for QgsPointCloud3DSymbol.

Definition at line 28 of file qgspointcloud3dsymbol.cpp.

◆ ~QgsPointCloud3DSymbol()

QgsPointCloud3DSymbol::~QgsPointCloud3DSymbol ( )
override

Destructor for QgsPointCloud3DSymbol.

Definition at line 33 of file qgspointcloud3dsymbol.cpp.

Member Function Documentation

◆ byteStride()

virtual unsigned int QgsPointCloud3DSymbol::byteStride ( )
pure virtual

Returns the byte stride for the geometries used to for the vertex buffer.

Implemented in QgsClassificationPointCloud3DSymbol, QgsRgbPointCloud3DSymbol, QgsColorRampPointCloud3DSymbol, and QgsSingleColorPointCloud3DSymbol.

◆ fillMaterial()

virtual void QgsPointCloud3DSymbol::fillMaterial ( Qt3DRender::QMaterial *  material)
pure virtual

Used to fill material object with necessary QParameters (and consequently opengl uniforms)

Implemented in QgsClassificationPointCloud3DSymbol, QgsRgbPointCloud3DSymbol, QgsColorRampPointCloud3DSymbol, and QgsSingleColorPointCloud3DSymbol.

◆ pointSize()

float QgsPointCloud3DSymbol::pointSize ( ) const
inline

Returns the point size of the point cloud.

See also
setPointSize( float size )

Definition at line 73 of file qgspointcloud3dsymbol.h.

◆ setPointSize()

void QgsPointCloud3DSymbol::setPointSize ( float  size)

Sets the point size.

See also
pointSize()

Definition at line 35 of file qgspointcloud3dsymbol.cpp.

◆ symbolType()

virtual QString QgsPointCloud3DSymbol::symbolType ( ) const
pure virtual

Returns a unique string identifier of the symbol type.

Implemented in QgsClassificationPointCloud3DSymbol, QgsRgbPointCloud3DSymbol, QgsColorRampPointCloud3DSymbol, and QgsSingleColorPointCloud3DSymbol.

◆ type()

QString QgsPointCloud3DSymbol::type ( ) const
inlineoverride

Definition at line 62 of file qgspointcloud3dsymbol.h.

Member Data Documentation

◆ mPointSize

float QgsPointCloud3DSymbol::mPointSize = 2.0
protected

Definition at line 87 of file qgspointcloud3dsymbol.h.


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