QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
16 #ifndef QGSPOINTCLOUDLAYER3DRENDERER_H
17 #define QGSPOINTCLOUDLAYER3DRENDERER_H
56 double zValueScale,
double zValueFixedOffset );
102 QSet<int> getFilteredOutValues()
const;
108 template <
typename T>
115 value = *( data + offset );
119 value = *
reinterpret_cast< const qint32 *
>( data + offset );
122 value = *
reinterpret_cast< const quint32 *
>( data + offset );
126 value = *
reinterpret_cast< const qint64 *
>( data + offset );
129 value = *
reinterpret_cast< const quint64 *
>( data + offset );
133 value = *
reinterpret_cast< const short *
>( data + offset );
137 value = *
reinterpret_cast< const unsigned short *
>( data + offset );
141 value = *
reinterpret_cast< const float *
>( data + offset );
145 value = *
reinterpret_cast< const double *
>( data + offset );
167 bool isCanceled()
const;
173 void cancelRendering()
const;
194 std::unique_ptr<QgsPointCloud3DSymbol> mSymbol;
196 double mZValueScale = 1.0;
197 double mZValueFixedOffset = 0;
199 std::unique_ptr<QgsFeedback> mFeedback;
239 QString
type()
const override;
263 double maximumScreenError()
const;
272 void setMaximumScreenError(
double error );
279 bool showBoundingBoxes()
const;
286 void setShowBoundingBoxes(
bool showBoundingBoxes );
296 void setPointRenderingBudget(
int budget );
302 std::unique_ptr< QgsPointCloud3DSymbol > mSymbol;
303 double mMaximumScreenError = 3.0;
304 bool mShowBoundingBoxes =
false;
305 int mPointBudget = 5000000;
315 #endif // QGSPOINTCLOUDLAYER3DRENDERER_H
int pointRenderingBudget() const
Returns the maximum number of points that will be rendered to the scene.
DataType
Systems of unit measurement.
The class is used as a container of context for various read/write operations on other objects.
virtual QString type() const =0
Returns unique identifier of the renderer class (used to identify subclass)
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...
Represents a map layer supporting display of point clouds.
Base class for all renderers that may to participate in 3D view.
QList< QgsPointCloudCategory > QgsPointCloudCategoryList
virtual bool convertFrom2DRenderer(QgsPointCloudRenderer *renderer)=0
Updates the 3D renderer's symbol to match that of a given QgsPointCloudRenderer.
@ UInt32
Unsigned int32 4 bytes.
double zValueFixedOffset() const
Returns any constant offset which must be applied to z values taken from the point cloud index.
const QgsPointCloud3DSymbol * symbol() const
Returns 3D symbol associated with the renderer.
3D symbol that draws point cloud geometries as 3D objects.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
@ Short
Short int 2 bytes.
QgsCoordinateTransform coordinateTransform() const
Returns the coordinate transform used to transform points from layer CRS to the map CRS.
virtual void readXml(const QDomElement &elem, const QgsReadWriteContext &context)=0
Reads renderer's properties from given XML element.
virtual void resolveReferences(const QgsProject &project)
Resolves references to other objects - second phase of loading - after readXml()
@ UInt64
Unsigned int64 8 bytes.
Encapsulates the render context for a 2D point cloud rendering operation.
@ UShort
Unsigned short int 2 bytes.
Base class for feedback objects to be used for cancellation of something running in a worker thread.
virtual void writeXml(QDomElement &elem, const QgsReadWriteContext &context) const =0
Writes renderer's properties to given XML element.
Collection of point cloud attributes.
Base class for point cloud 3D renderers.
double zValueScale() const
Returns any constant scaling factor which must be applied to z values taken from the point cloud inde...
virtual Qt3DCore::QEntity * createEntity(const Qgs3DMapSettings &map) const =0
Returns a 3D entity that will be used to show renderer's data in 3D scene.
QgsPointCloudAttributeCollection attributes() const
Returns the attributes associated with the rendered block.
Encapsulates the render context for a 3D point cloud rendering operation.
virtual QgsAbstract3DRenderer * clone() const =0
Returns a cloned instance.
Abstract base class for 2d point cloud renderers.
QgsPointCloud3DSymbol * symbol() const
Returns the symbol used for rendering the point cloud.
@ UChar
Unsigned char 1 byte.
QgsFeedback * feedback() const
Returns the feedback object used to cancel rendering and check if rendering was canceled.
3D renderer that renders all points from a point cloud layer