QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
Public Member Functions | Public Attributes | List of all members
QgsPointCloudRgbRendererPreparedData Class Reference

Prepared data container for QgsPointCloudRgbRenderer. More...

#include <qgspointcloudrgbrenderer.h>

Inheritance diagram for QgsPointCloudRgbRendererPreparedData:
Inheritance graph
[legend]

Public Member Functions

QColor pointColor (const QgsPointCloudBlock *block, int i, double z) override
 An optimised method of retrieving the color of a point from a point cloud block. More...
 
bool prepareBlock (const QgsPointCloudBlock *block) override
 Prepares the renderer for using the specified block. More...
 
QSet< QString > usedAttributes () const override
 Returns the set of attributes used by the prepared point cloud renderer. More...
 
- Public Member Functions inherited from QgsPreparedPointCloudRendererData
virtual ~QgsPreparedPointCloudRendererData ()
 

Public Attributes

QString blueAttribute = QStringLiteral( "Blue" )
 
std::unique_ptr< QgsContrastEnhancementblueContrastEnhancement
 
int blueOffset = 0
 
QgsPointCloudAttribute::DataType blueType
 
QString greenAttribute = QStringLiteral( "Green" )
 
std::unique_ptr< QgsContrastEnhancementgreenContrastEnhancement
 
int greenOffset = 0
 
QgsPointCloudAttribute::DataType greenType
 
QString redAttribute = QStringLiteral( "Red" )
 
std::unique_ptr< QgsContrastEnhancementredContrastEnhancement
 
int redOffset = 0
 
QgsPointCloudAttribute::DataType redType
 
bool useBlueContrastEnhancement = false
 
bool useGreenContrastEnhancement = false
 
bool useRedContrastEnhancement = false
 

Detailed Description

Prepared data container for QgsPointCloudRgbRenderer.

Note
Not available in Python bindings.
Since
QGIS 3.26

Definition at line 38 of file qgspointcloudrgbrenderer.h.

Member Function Documentation

◆ pointColor()

QColor QgsPointCloudRgbRendererPreparedData::pointColor ( const QgsPointCloudBlock block,
int  i,
double  z 
)
overridevirtual

An optimised method of retrieving the color of a point from a point cloud block.

Before calling this method prepareBlock() must be called for each incoming point cloud block.

Since
QGIS 3.26

Implements QgsPreparedPointCloudRendererData.

Definition at line 299 of file qgspointcloudrgbrenderer.cpp.

◆ prepareBlock()

bool QgsPointCloudRgbRendererPreparedData::prepareBlock ( const QgsPointCloudBlock block)
overridevirtual

Prepares the renderer for using the specified block.

Returns false if preparation failed.

Implements QgsPreparedPointCloudRendererData.

Definition at line 276 of file qgspointcloudrgbrenderer.cpp.

◆ usedAttributes()

QSet< QString > QgsPointCloudRgbRendererPreparedData::usedAttributes ( ) const
overridevirtual

Returns the set of attributes used by the prepared point cloud renderer.

Implements QgsPreparedPointCloudRendererData.

Definition at line 271 of file qgspointcloudrgbrenderer.cpp.

Member Data Documentation

◆ blueAttribute

QString QgsPointCloudRgbRendererPreparedData::blueAttribute = QStringLiteral( "Blue" )

Definition at line 61 of file qgspointcloudrgbrenderer.h.

◆ blueContrastEnhancement

std::unique_ptr< QgsContrastEnhancement > QgsPointCloudRgbRendererPreparedData::blueContrastEnhancement

Definition at line 64 of file qgspointcloudrgbrenderer.h.

◆ blueOffset

int QgsPointCloudRgbRendererPreparedData::blueOffset = 0

Definition at line 72 of file qgspointcloudrgbrenderer.h.

◆ blueType

QgsPointCloudAttribute::DataType QgsPointCloudRgbRendererPreparedData::blueType

Definition at line 73 of file qgspointcloudrgbrenderer.h.

◆ greenAttribute

QString QgsPointCloudRgbRendererPreparedData::greenAttribute = QStringLiteral( "Green" )

Definition at line 60 of file qgspointcloudrgbrenderer.h.

◆ greenContrastEnhancement

std::unique_ptr< QgsContrastEnhancement > QgsPointCloudRgbRendererPreparedData::greenContrastEnhancement

Definition at line 63 of file qgspointcloudrgbrenderer.h.

◆ greenOffset

int QgsPointCloudRgbRendererPreparedData::greenOffset = 0

Definition at line 69 of file qgspointcloudrgbrenderer.h.

◆ greenType

QgsPointCloudAttribute::DataType QgsPointCloudRgbRendererPreparedData::greenType

Definition at line 70 of file qgspointcloudrgbrenderer.h.

◆ redAttribute

QString QgsPointCloudRgbRendererPreparedData::redAttribute = QStringLiteral( "Red" )

Definition at line 59 of file qgspointcloudrgbrenderer.h.

◆ redContrastEnhancement

std::unique_ptr< QgsContrastEnhancement > QgsPointCloudRgbRendererPreparedData::redContrastEnhancement

Definition at line 62 of file qgspointcloudrgbrenderer.h.

◆ redOffset

int QgsPointCloudRgbRendererPreparedData::redOffset = 0

Definition at line 66 of file qgspointcloudrgbrenderer.h.

◆ redType

QgsPointCloudAttribute::DataType QgsPointCloudRgbRendererPreparedData::redType

Definition at line 67 of file qgspointcloudrgbrenderer.h.

◆ useBlueContrastEnhancement

bool QgsPointCloudRgbRendererPreparedData::useBlueContrastEnhancement = false

Definition at line 74 of file qgspointcloudrgbrenderer.h.

◆ useGreenContrastEnhancement

bool QgsPointCloudRgbRendererPreparedData::useGreenContrastEnhancement = false

Definition at line 71 of file qgspointcloudrgbrenderer.h.

◆ useRedContrastEnhancement

bool QgsPointCloudRgbRendererPreparedData::useRedContrastEnhancement = false

Definition at line 68 of file qgspointcloudrgbrenderer.h.


The documentation for this class was generated from the following files: