Encapsulates the render context for a 2D point cloud rendering operation.
More...
#include <qgspointcloudrenderer.h>
Encapsulates the render context for a 2D point cloud rendering operation.
- Since
- QGIS 3.18
Definition at line 43 of file qgspointcloudrenderer.h.
◆ QgsPointCloudRenderContext() [1/2]
Constructor for QgsPointCloudRenderContext.
The scale and offset arguments specify the scale and offset of the layer's int32 coordinates compared to CRS coordinates respectively.
The zValueScale argument specifies any constant scaling factor which must be applied to z values taken from the point cloud index.
The zValueFixedOffset argument specifies any constant offset value which must be added to z values taken from the point cloud index.
Definition at line 31 of file qgspointcloudrenderer.cpp.
◆ QgsPointCloudRenderContext() [2/2]
◆ attributes()
◆ elevationMap()
Returns elevation map.
It may be a null pointer if elevation map is not needed in rendering.
- Since
- QGIS 3.28
Definition at line 193 of file qgspointcloudrenderer.h.
◆ feedback()
QgsFeedback * QgsPointCloudRenderContext::feedback |
( |
| ) |
const |
|
inline |
◆ getAttribute()
Retrieves the attribute value from data at the specified offset, where type indicates the original data type for the attribute.
Definition at line 203 of file qgspointcloudrenderer.h.
◆ incrementPointsRendered()
void QgsPointCloudRenderContext::incrementPointsRendered |
( |
long |
count | ) |
|
Increments the count of points rendered by the specified amount.
It is a point cloud renderer's responsibility to correctly call this after rendering a block of points.
Definition at line 52 of file qgspointcloudrenderer.cpp.
◆ offset()
QgsVector3D QgsPointCloudRenderContext::offset |
( |
| ) |
const |
|
inline |
Returns the offset of the layer's int32 coordinates compared to CRS coords.
Definition at line 93 of file qgspointcloudrenderer.h.
◆ operator=()
◆ pointRecordSize()
int QgsPointCloudRenderContext::pointRecordSize |
( |
| ) |
const |
|
inline |
◆ pointsRendered()
long QgsPointCloudRenderContext::pointsRendered |
( |
| ) |
const |
◆ renderContext() [1/2]
◆ renderContext() [2/2]
Returns a reference to the context's render context.
- Note
- Not available in Python bindings.
Definition at line 77 of file qgspointcloudrenderer.h.
◆ scale()
QgsVector3D QgsPointCloudRenderContext::scale |
( |
| ) |
const |
|
inline |
Returns the scale of the layer's int32 coordinates compared to CRS coords.
Definition at line 82 of file qgspointcloudrenderer.h.
◆ setAttributes()
◆ setElevationMap()
void QgsPointCloudRenderContext::setElevationMap |
( |
QgsElevationMap * |
elevationMap | ) |
|
Sets elevation map that will be used to record elevation of rendered points.
- Note
- Takes ownership of the passed object
- Since
- QGIS 3.28
Definition at line 42 of file qgspointcloudrenderer.cpp.
◆ setOffset()
void QgsPointCloudRenderContext::setOffset |
( |
const QgsVector3D & |
offset | ) |
|
|
inline |
Sets the offset of the layer's int32 coordinates compared to CRS coords.
- Since
- QGIS 3.20
Definition at line 99 of file qgspointcloudrenderer.h.
◆ setScale()
void QgsPointCloudRenderContext::setScale |
( |
const QgsVector3D & |
scale | ) |
|
|
inline |
Sets the scale of the layer's int32 coordinates compared to CRS coords.
- Since
- QGIS 3.20
Definition at line 88 of file qgspointcloudrenderer.h.
◆ xOffset()
int QgsPointCloudRenderContext::xOffset |
( |
| ) |
const |
|
inline |
◆ yOffset()
int QgsPointCloudRenderContext::yOffset |
( |
| ) |
const |
|
inline |
◆ zOffset()
int QgsPointCloudRenderContext::zOffset |
( |
| ) |
const |
|
inline |
◆ zValueFixedOffset()
double QgsPointCloudRenderContext::zValueFixedOffset |
( |
| ) |
const |
|
inline |
◆ zValueScale()
double QgsPointCloudRenderContext::zValueScale |
( |
| ) |
const |
|
inline |
Returns any constant scaling factor which must be applied to z values taken from the point cloud index.
- Note
- Scaling of z values should be applied before the zValueFixedOffset().
Definition at line 162 of file qgspointcloudrenderer.h.
The documentation for this class was generated from the following files: