QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
18 #ifndef QGSPOINTCLOUDATTRIBUTEBYRAMPRENDERER_H
19 #define QGSPOINTCLOUDATTRIBUTEBYRAMPRENDERER_H
22 #include "qgis_core.h"
44 QString attributeName;
46 int attributeOffset = 0;
47 bool attributeIsX =
false;
48 bool attributeIsY =
false;
49 bool attributeIsZ =
false;
70 QString
type()
const override;
76 std::unique_ptr< QgsPreparedPointCloudRendererData >
prepare() override
SIP_SKIP;
88 QString attribute() const;
95 void setAttribute( const QString &attribute );
117 double minimum() const;
125 void setMinimum(
double minimum );
133 double maximum() const;
141 void setMaximum(
double maximum );
148 QString mAttribute = QStringLiteral( "Intensity" );
153 #endif // QGSPOINTCLOUDATTRIBUTEBYRAMPRENDERER_H
DataType
Systems of unit measurement.
The class is used as a container of context for various read/write operations on other objects.
virtual QSet< QString > usedAttributes(const QgsPointCloudRenderContext &context) const
Returns a list of attributes required by this renderer.
virtual QList< QgsLayerTreeModelLegendNode * > createLegendNodes(QgsLayerTreeLayer *nodeLayer)
Creates a set of legend nodes representing the renderer.
virtual std::unique_ptr< QgsPreparedPointCloudRendererData > prepare()
Returns prepared data container for bulk point color retrieval.
Base class for 2d point cloud renderer prepared data containers.
virtual QgsPointCloudRenderer * clone() const =0
Create a deep copy of this renderer.
Base class for storing raw data from point cloud nodes.
virtual QColor pointColor(const QgsPointCloudBlock *block, int i, double z)=0
An optimised method of retrieving the color of a point from a point cloud block.
A ramp shader will color a raster pixel based on a list of values ranges in a ramp.
virtual bool prepareBlock(const QgsPointCloudBlock *block)=0
Prepares the renderer for using the specified block.
virtual QDomElement save(QDomDocument &doc, const QgsReadWriteContext &context) const =0
Saves the renderer configuration to an XML element.
virtual void renderBlock(const QgsPointCloudBlock *block, QgsPointCloudRenderContext &context)=0
Renders a block of point cloud data using the specified render context.
Encapsulates the render context for a 2D point cloud rendering operation.
Layer tree node points to a map layer.
An RGB renderer for 2d visualisation of point clouds using embedded red, green and blue attributes.
virtual QSet< QString > usedAttributes() const =0
Returns the set of attributes used by the prepared point cloud renderer.
virtual QString type() const =0
Returns the identifier of the renderer type.
Prepared data container for QgsPointCloudAttributeByRampRenderer.
Abstract base class for 2d point cloud renderers.