16 #ifndef QGSPOINTCLOUDLAYER3DRENDERER_H
17 #define QGSPOINTCLOUDLAYER3DRENDERER_H
56 double zValueScale,
double zValueFixedOffset );
102 QSet<int> getFilteredOutValues()
const;
108 template <
typename T>
114 value = *( data + offset );
118 value = *
reinterpret_cast< const qint32 *
>( data + offset );
122 value = *
reinterpret_cast< const short *
>( data + offset );
126 value = *
reinterpret_cast< const unsigned short *
>( data + offset );
130 value = *
reinterpret_cast< const float *
>( data + offset );
134 value = *
reinterpret_cast< const double *
>( data + offset );
178 std::unique_ptr<QgsPointCloud3DSymbol> mSymbol;
180 double mZValueScale = 1.0;
181 double mZValueFixedOffset = 0;
184 std::function< bool() > mIsCanceledCallback;
225 QString
type()
const override;
240 void resolveReferences(
const QgsProject &project )
override;
249 double maximumScreenError()
const;
258 void setMaximumScreenError(
double error );
265 bool showBoundingBoxes()
const;
272 void setShowBoundingBoxes(
bool showBoundingBoxes );
282 void setPointRenderingBudget(
int budget );
286 std::unique_ptr< QgsPointCloud3DSymbol > mSymbol;
287 double mMaximumScreenError = 1.0;
288 bool mShowBoundingBoxes =
false;
289 int mPointBudget = 1000000;
Base class for all renderers that may to participate in 3D view.
Encapsulates the render context for a 3D point cloud rendering operation.
void getAttribute(const char *data, std::size_t offset, QgsPointCloudAttribute::DataType type, T &value) const
Retrieves the attribute value from data at the specified offset, where type indicates the original da...
double zValueScale() const
Returns any constant scaling factor which must be applied to z values taken from the point cloud inde...
QgsPointCloudAttributeCollection attributes() const
Returns the attributes associated with the rendered block.
QgsPointCloud3DRenderContext(const QgsPointCloud3DRenderContext &rh)=delete
QgsPointCloudRenderContext cannot be copied.
bool isCanceled() const
Returns true if the rendering is canceled.
void setIsCanceledCallback(const std::function< bool() > &callback)
Sets the function to call to test if the rendering is canceled.
QgsCoordinateTransform coordinateTransform() const
Returns the coordinate transform used to transform points from layer CRS to the map CRS.
QgsPointCloud3DSymbol * symbol() const
Returns the symbol used for rendering the point cloud.
double zValueFixedOffset() const
Returns any constant offset which must be applied to z values taken from the point cloud index.
QgsPointCloud3DRenderContext & operator=(const QgsPointCloud3DRenderContext &)=delete
QgsPointCloudRenderContext cannot be copied.
Collection of point cloud attributes.
DataType
Systems of unit measurement.
@ UShort
Unsigned short int 2 bytes.
@ Short
Short int 2 bytes.
3D renderer that renders all points from a point cloud layer
const QgsPointCloud3DSymbol * symbol() const
Returns 3D symbol associated with the renderer.
int pointRenderingBudget() const
Returns the maximum number of points that will be rendered to the scene.
Represents a map layer supporting display of point clouds.
Encapsulates the render context for a 2D point cloud rendering operation.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
The class is used as a container of context for various read/write operations on other objects.
QList< QgsPointCloudCategory > QgsPointCloudCategoryList