18#ifndef QGSPOINTCLOUDRGBRENDERER_H
19#define QGSPOINTCLOUDRGBRENDERER_H
46 QString redAttribute = QStringLiteral(
"Red" );
47 QString greenAttribute = QStringLiteral(
"Green" );
48 QString blueAttribute = QStringLiteral(
"Blue" );
55 bool useRedContrastEnhancement =
false;
58 bool useGreenContrastEnhancement =
false;
61 bool useBlueContrastEnhancement =
false;
80 QString type()
const override;
85 std::unique_ptr< QgsPreparedPointCloudRendererData > prepare()
override SIP_SKIP;
99 QString redAttribute()
const;
108 void setRedAttribute(
const QString &attribute );
117 QString greenAttribute()
const;
126 void setGreenAttribute(
const QString &attribute );
135 QString blueAttribute()
const;
144 void setBlueAttribute(
const QString &attribute );
208 QString mRedAttribute = QStringLiteral(
"Red" );
209 QString mGreenAttribute = QStringLiteral(
"Green" );
210 QString mBlueAttribute = QStringLiteral(
"Blue" );
212 std::unique_ptr< QgsContrastEnhancement > mRedContrastEnhancement;
213 std::unique_ptr< QgsContrastEnhancement > mGreenContrastEnhancement;
214 std::unique_ptr< QgsContrastEnhancement > mBlueContrastEnhancement;
Manipulates raster or point cloud pixel values so that they enhanceContrast or clip into a specified ...
DataType
Systems of unit measurement.
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.
Prepared data container for QgsPointCloudRgbRenderer.
std::unique_ptr< QgsContrastEnhancement > redContrastEnhancement
std::unique_ptr< QgsContrastEnhancement > greenContrastEnhancement
std::unique_ptr< QgsContrastEnhancement > blueContrastEnhancement
QgsPointCloudAttribute::DataType blueType
QgsPointCloudAttribute::DataType redType
QgsPointCloudAttribute::DataType greenType
An RGB renderer for 2d visualisation of point clouds using embedded red, green and blue attributes.
Base class for 2d point cloud renderer prepared data containers.
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.
virtual bool prepareBlock(const QgsPointCloudBlock *block)=0
Prepares the renderer for using the specified block.
virtual QSet< QString > usedAttributes() const =0
Returns the set of attributes used by the prepared point cloud renderer.
The class is used as a container of context for various read/write operations on other objects.