18 #ifndef QGSPOINTCLOUDATTRIBUTEBYRAMPRENDERER_H
19 #define QGSPOINTCLOUDATTRIBUTEBYRAMPRENDERER_H
22 #include "qgis_core.h"
41 QString
type()
const override;
58 QString attribute()
const;
65 void setAttribute(
const QString &attribute );
87 double minimum()
const;
95 void setMinimum(
double minimum );
103 double maximum()
const;
111 void setMaximum(
double maximum );
118 QString mAttribute = QStringLiteral(
"Intensity" );
A ramp shader will color a raster pixel based on a list of values ranges in a ramp.
Layer tree node points to a map layer.
An RGB renderer for 2d visualisation of point clouds using embedded red, green and blue attributes.
Base class for storing raw data from point cloud nodes.
Encapsulates the render context for a 2D point cloud rendering operation.
Abstract base class for 2d point cloud renderers.
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.
virtual QgsPointCloudRenderer * clone() const =0
Create a deep copy of this renderer.
virtual QSet< QString > usedAttributes(const QgsPointCloudRenderContext &context) const
Returns a list of attributes required by this renderer.
virtual QString type() const =0
Returns the identifier of the renderer type.
virtual QList< QgsLayerTreeModelLegendNode * > createLegendNodes(QgsLayerTreeLayer *nodeLayer)
Creates a set of legend nodes representing the renderer.
The class is used as a container of context for various read/write operations on other objects.