QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
Public Member Functions | List of all members
QgsSingleColorPointCloud3DSymbol Class Reference

3 More...

#include <qgspointcloud3dsymbol.h>

Inheritance diagram for QgsSingleColorPointCloud3DSymbol:
Inheritance graph
[legend]

Public Member Functions

 QgsSingleColorPointCloud3DSymbol ()
 
unsigned int byteStride () override
 Returns the byte stride for the geometries used to for the vertex buffer.
 
QgsAbstract3DSymbolclone () const override SIP_FACTORY
 
void fillMaterial (QgsMaterial *material) override SIP_SKIP
 Used to fill material object with necessary QParameters (and consequently opengl uniforms)
 
void readXml (const QDomElement &elem, const QgsReadWriteContext &context) override
 
void setSingleColor (QColor color)
 Sets the color used by the renderer when using SingleColor rendering mode.
 
QColor singleColor () const
 Returns the color used by the renderer when using SingleColor rendering mode.
 
QString symbolType () const override
 Returns a unique string identifier of the symbol type.
 
void writeXml (QDomElement &elem, const QgsReadWriteContext &context) const override
 
- Public Member Functions inherited from QgsPointCloud3DSymbol
 QgsPointCloud3DSymbol ()
 
 ~QgsPointCloud3DSymbol () override
 
void copyBaseSettings (QgsAbstract3DSymbol *destination) const override
 
float horizontalFilterThreshold () const
 Returns the threshold horizontal size value for filtering triangles.
 
bool horizontalTriangleFilter () const
 Returns whether triangles are filtered by horizontal size for rendering.
 
float pointSize () const
 Returns the point size of the point cloud.
 
bool renderAsTriangles () const
 Returns whether points are triangulated to render solid surface.
 
void setHorizontalFilterThreshold (float horizontalFilterThreshold)
 Sets the threshold horizontal size value for filtering triangles.
 
void setHorizontalTriangleFilter (bool horizontalTriangleFilter)
 Sets whether whether triangles are filtered by horizontal size for rendering.
 
void setPointSize (float size)
 Sets the point size.
 
void setRenderAsTriangles (bool asTriangles)
 Sets whether points are triangulated to render solid surface.
 
void setVerticalFilterThreshold (float verticalFilterThreshold)
 Sets the threshold vertical height value for filtering triangles.
 
void setVerticalTriangleFilter (bool verticalTriangleFilter)
 Sets whether triangles are filtered by vertical height for rendering.
 
QString type () const override
 
float verticalFilterThreshold () const
 Returns the threshold vertical height value for filtering triangles.
 
bool verticalTriangleFilter () const
 Returns whether triangles are filtered by vertical height for rendering.
 

Additional Inherited Members

- Public Types inherited from QgsPointCloud3DSymbol
enum  RenderingStyle {
  NoRendering = 0 , SingleColor , ColorRamp , RgbRendering ,
  Classification
}
 How to render the point cloud. More...
 
- Protected Member Functions inherited from QgsPointCloud3DSymbol
void readBaseXml (const QDomElement &elem, const QgsReadWriteContext &context)
 Reads symbol configuration of this class from the given DOM element.
 
void writeBaseXml (QDomElement &elem, const QgsReadWriteContext &context) const
 Writes symbol configuration of this class to the given DOM element.
 
- Protected Attributes inherited from QgsPointCloud3DSymbol
float mHorizontalFilterThreshold = 10.0
 
bool mHorizontalTriangleFilter = false
 
float mPointSize = 3.0
 
bool mRenderAsTriangles = false
 
float mVerticalFilterThreshold = 10.0
 
bool mVerticalTriangleFilter = false
 

Detailed Description

3

3D symbol that draws point cloud geometries as 3D objects.using one color

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 198 of file qgspointcloud3dsymbol.h.

Constructor & Destructor Documentation

◆ QgsSingleColorPointCloud3DSymbol()

QgsSingleColorPointCloud3DSymbol::QgsSingleColorPointCloud3DSymbol ( )

Definition at line 128 of file qgspointcloud3dsymbol.cpp.

Member Function Documentation

◆ byteStride()

unsigned int QgsSingleColorPointCloud3DSymbol::byteStride ( )
inlineoverridevirtual

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

Implements QgsPointCloud3DSymbol.

Definition at line 221 of file qgspointcloud3dsymbol.h.

◆ clone()

QgsAbstract3DSymbol * QgsSingleColorPointCloud3DSymbol::clone ( ) const
override

Definition at line 139 of file qgspointcloud3dsymbol.cpp.

◆ fillMaterial()

void QgsSingleColorPointCloud3DSymbol::fillMaterial ( QgsMaterial material)
overridevirtual

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

Implements QgsPointCloud3DSymbol.

Definition at line 169 of file qgspointcloud3dsymbol.cpp.

◆ readXml()

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

Definition at line 156 of file qgspointcloud3dsymbol.cpp.

◆ setSingleColor()

void QgsSingleColorPointCloud3DSymbol::setSingleColor ( QColor  color)

Sets the color used by the renderer when using SingleColor rendering mode.

See also
singleColor()

Definition at line 164 of file qgspointcloud3dsymbol.cpp.

◆ singleColor()

QColor QgsSingleColorPointCloud3DSymbol::singleColor ( ) const
inline

Returns the color used by the renderer when using SingleColor rendering mode.

See also
setSingleColor( QColor color )

Definition at line 213 of file qgspointcloud3dsymbol.h.

◆ symbolType()

QString QgsSingleColorPointCloud3DSymbol::symbolType ( ) const
overridevirtual

Returns a unique string identifier of the symbol type.

Implements QgsPointCloud3DSymbol.

Definition at line 134 of file qgspointcloud3dsymbol.cpp.

◆ writeXml()

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

Definition at line 147 of file qgspointcloud3dsymbol.cpp.


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