QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
QgsPointCloudAttributeByRampRendererPreparedData Class Reference

Prepared data container for QgsPointCloudAttributeByRampRenderer. More...

#include <qgspointcloudattributebyramprenderer.h>

Inheritance diagram for QgsPointCloudAttributeByRampRendererPreparedData:

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.
bool prepareBlock (const QgsPointCloudBlock *block) override
 Prepares the renderer for using the specified block.
QSet< QString > usedAttributes () const override
 Returns the set of attributes used by the prepared point cloud renderer.
Public Member Functions inherited from QgsPreparedPointCloudRendererData
virtual ~QgsPreparedPointCloudRendererData ()

Public Attributes

bool attributeIsX = false
bool attributeIsY = false
bool attributeIsZ = false
QString attributeName
int attributeOffset = 0
QgsPointCloudAttribute::DataType attributeType
QgsColorRampShader colorRampShader

Detailed Description

Prepared data container for QgsPointCloudAttributeByRampRenderer.

Note
Not available in Python bindings.
Since
QGIS 3.26

Definition at line 36 of file qgspointcloudattributebyramprenderer.h.

Member Function Documentation

◆ pointColor()

QColor QgsPointCloudAttributeByRampRendererPreparedData::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 283 of file qgspointcloudattributebyramprenderer.cpp.

◆ prepareBlock()

bool QgsPointCloudAttributeByRampRendererPreparedData::prepareBlock ( const QgsPointCloudBlock * block)
overridevirtual

Prepares the renderer for using the specified block.

Returns false if preparation failed.

Implements QgsPreparedPointCloudRendererData.

Definition at line 309 of file qgspointcloudattributebyramprenderer.cpp.

◆ usedAttributes()

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

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

Implements QgsPreparedPointCloudRendererData.

Definition at line 304 of file qgspointcloudattributebyramprenderer.cpp.

Member Data Documentation

◆ attributeIsX

bool QgsPointCloudAttributeByRampRendererPreparedData::attributeIsX = false

Definition at line 47 of file qgspointcloudattributebyramprenderer.h.

◆ attributeIsY

bool QgsPointCloudAttributeByRampRendererPreparedData::attributeIsY = false

Definition at line 48 of file qgspointcloudattributebyramprenderer.h.

◆ attributeIsZ

bool QgsPointCloudAttributeByRampRendererPreparedData::attributeIsZ = false

Definition at line 49 of file qgspointcloudattributebyramprenderer.h.

◆ attributeName

QString QgsPointCloudAttributeByRampRendererPreparedData::attributeName

Definition at line 44 of file qgspointcloudattributebyramprenderer.h.

◆ attributeOffset

int QgsPointCloudAttributeByRampRendererPreparedData::attributeOffset = 0

Definition at line 46 of file qgspointcloudattributebyramprenderer.h.

◆ attributeType

QgsPointCloudAttribute::DataType QgsPointCloudAttributeByRampRendererPreparedData::attributeType

Definition at line 50 of file qgspointcloudattributebyramprenderer.h.

◆ colorRampShader

QgsColorRampShader QgsPointCloudAttributeByRampRendererPreparedData::colorRampShader

Definition at line 45 of file qgspointcloudattributebyramprenderer.h.


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