QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
3 More...
#include <qgspointcloud3dsymbol.h>
Public Types | |
enum | RenderingStyle { NoRendering = 0 , SingleColor , ColorRamp , RgbRendering , Classification } |
How to render the point cloud. More... | |
Public Member Functions | |
QgsPointCloud3DSymbol () | |
~QgsPointCloud3DSymbol () override | |
virtual unsigned int | byteStride ()=0 |
Returns the byte stride for the geometries used to for the vertex buffer. | |
void | copyBaseSettings (QgsAbstract3DSymbol *destination) const override |
virtual void | fillMaterial (QgsMaterial *material)=0SIP_SKIP |
Used to fill material object with necessary QParameters (and consequently opengl uniforms) | |
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. | |
virtual QString | symbolType () const =0 |
Returns a unique string identifier of the symbol type. | |
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. | |
Protected Member Functions | |
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 | |
float | mHorizontalFilterThreshold = 10.0 |
bool | mHorizontalTriangleFilter = false |
float | mPointSize = 3.0 |
bool | mRenderAsTriangles = false |
float | mVerticalFilterThreshold = 10.0 |
bool | mVerticalTriangleFilter = false |
3
3D symbol that draws point cloud geometries as 3D objects.
Definition at line 38 of file qgspointcloud3dsymbol.h.
How to render the point cloud.
Definition at line 44 of file qgspointcloud3dsymbol.h.
QgsPointCloud3DSymbol::QgsPointCloud3DSymbol | ( | ) |
Definition at line 28 of file qgspointcloud3dsymbol.cpp.
|
override |
Definition at line 33 of file qgspointcloud3dsymbol.cpp.
|
pure virtual |
Returns the byte stride for the geometries used to for the vertex buffer.
Implemented in QgsSingleColorPointCloud3DSymbol, QgsColorRampPointCloud3DSymbol, QgsRgbPointCloud3DSymbol, and QgsClassificationPointCloud3DSymbol.
|
override |
Definition at line 114 of file qgspointcloud3dsymbol.cpp.
|
pure virtual |
Used to fill material object with necessary QParameters (and consequently opengl uniforms)
Implemented in QgsSingleColorPointCloud3DSymbol, QgsColorRampPointCloud3DSymbol, QgsRgbPointCloud3DSymbol, and QgsClassificationPointCloud3DSymbol.
float QgsPointCloud3DSymbol::horizontalFilterThreshold | ( | ) | const |
Returns the threshold horizontal size value for filtering triangles.
If the triangles are horizontally filtered by size, triangles with a horizontal side size greater than a threshold value will not be rendered, see horizontalTriangleFilter().
Definition at line 60 of file qgspointcloud3dsymbol.cpp.
bool QgsPointCloud3DSymbol::horizontalTriangleFilter | ( | ) | const |
Returns whether triangles are filtered by horizontal size for rendering.
If the triangles are horizontally filtered by size, triangles with a horizontal side size greater than a threshold value will not be rendered, see horizontalFilterThreshold().
Definition at line 50 of file qgspointcloud3dsymbol.cpp.
|
inline |
Returns the point size of the point cloud.
Definition at line 72 of file qgspointcloud3dsymbol.h.
|
protected |
Reads symbol configuration of this class from the given DOM element.
Definition at line 102 of file qgspointcloud3dsymbol.cpp.
bool QgsPointCloud3DSymbol::renderAsTriangles | ( | ) | const |
Returns whether points are triangulated to render solid surface.
Definition at line 40 of file qgspointcloud3dsymbol.cpp.
void QgsPointCloud3DSymbol::setHorizontalFilterThreshold | ( | float | horizontalFilterThreshold | ) |
Sets the threshold horizontal size value for filtering triangles.
If the triangles are horizontally filtered by size, triangles with a horizontal side size greater than a threshold value will not be rendered, see setHorizontalTriangleFilter().
Definition at line 65 of file qgspointcloud3dsymbol.cpp.
void QgsPointCloud3DSymbol::setHorizontalTriangleFilter | ( | bool | horizontalTriangleFilter | ) |
Sets whether whether triangles are filtered by horizontal size for rendering.
If the triangles are horizontally filtered by size, triangles with a horizontal side size greater than a threshold value will not be rendered, see setHorizontalFilterThreshold().
Definition at line 55 of file qgspointcloud3dsymbol.cpp.
void QgsPointCloud3DSymbol::setPointSize | ( | float | size | ) |
void QgsPointCloud3DSymbol::setRenderAsTriangles | ( | bool | asTriangles | ) |
Sets whether points are triangulated to render solid surface.
Definition at line 45 of file qgspointcloud3dsymbol.cpp.
void QgsPointCloud3DSymbol::setVerticalFilterThreshold | ( | float | verticalFilterThreshold | ) |
Sets the threshold vertical height value for filtering triangles.
If the triangles are filtered vertically, triangles with a vertical height greater than this threshold value will not be rendered, see setVerticalTriangleFilter().
Definition at line 85 of file qgspointcloud3dsymbol.cpp.
void QgsPointCloud3DSymbol::setVerticalTriangleFilter | ( | bool | verticalTriangleFilter | ) |
Sets whether triangles are filtered by vertical height for rendering.
If the triangles are vertically filtered, triangles with a vertical height greater than a threshold value will not be rendered, see setVerticalFilterThreshold().
Definition at line 75 of file qgspointcloud3dsymbol.cpp.
|
pure virtual |
Returns a unique string identifier of the symbol type.
Implemented in QgsSingleColorPointCloud3DSymbol, QgsColorRampPointCloud3DSymbol, QgsRgbPointCloud3DSymbol, and QgsClassificationPointCloud3DSymbol.
|
inlineoverride |
Definition at line 61 of file qgspointcloud3dsymbol.h.
float QgsPointCloud3DSymbol::verticalFilterThreshold | ( | ) | const |
Returns the threshold vertical height value for filtering triangles.
If the triangles are filtered vertically, triangles with a vertical height greater than this threshold value will not be rendered, see verticalTriangleFilter().
Definition at line 80 of file qgspointcloud3dsymbol.cpp.
bool QgsPointCloud3DSymbol::verticalTriangleFilter | ( | ) | const |
Returns whether triangles are filtered by vertical height for rendering.
If the triangles are vertically filtered, triangles with a vertical height greater than a threshold value will not be rendered, see verticalFilterThreshold().
Definition at line 70 of file qgspointcloud3dsymbol.cpp.
|
protected |
Writes symbol configuration of this class to the given DOM element.
Definition at line 90 of file qgspointcloud3dsymbol.cpp.
|
protected |
Definition at line 169 of file qgspointcloud3dsymbol.h.
|
protected |
Definition at line 168 of file qgspointcloud3dsymbol.h.
|
protected |
Definition at line 166 of file qgspointcloud3dsymbol.h.
|
protected |
Definition at line 167 of file qgspointcloud3dsymbol.h.
|
protected |
Definition at line 171 of file qgspointcloud3dsymbol.h.
|
protected |
Definition at line 170 of file qgspointcloud3dsymbol.h.