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

Prepared data container for QgsPointCloudClassifiedRenderer. More...

#include <qgspointcloudclassifiedrenderer.h>

Inheritance diagram for QgsPointCloudClassifiedRendererPreparedData:

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

QString attributeName
int attributeOffset = 0
QgsPointCloudAttribute::DataType attributeType
QHash< int, QColor > colors

Detailed Description

Prepared data container for QgsPointCloudClassifiedRenderer.

Note
Not available in Python bindings.
Since
QGIS 3.26

Definition at line 142 of file qgspointcloudclassifiedrenderer.h.

Member Function Documentation

◆ pointColor()

QColor QgsPointCloudClassifiedRendererPreparedData::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 387 of file qgspointcloudclassifiedrenderer.cpp.

◆ prepareBlock()

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

Prepares the renderer for using the specified block.

Returns false if preparation failed.

Implements QgsPreparedPointCloudRendererData.

Definition at line 376 of file qgspointcloudclassifiedrenderer.cpp.

◆ usedAttributes()

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

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

Implements QgsPreparedPointCloudRendererData.

Definition at line 371 of file qgspointcloudclassifiedrenderer.cpp.

Member Data Documentation

◆ attributeName

QString QgsPointCloudClassifiedRendererPreparedData::attributeName

Definition at line 152 of file qgspointcloudclassifiedrenderer.h.

◆ attributeOffset

int QgsPointCloudClassifiedRendererPreparedData::attributeOffset = 0

Definition at line 153 of file qgspointcloudclassifiedrenderer.h.

◆ attributeType

QgsPointCloudAttribute::DataType QgsPointCloudClassifiedRendererPreparedData::attributeType

Definition at line 150 of file qgspointcloudclassifiedrenderer.h.

◆ colors

QHash< int, QColor > QgsPointCloudClassifiedRendererPreparedData::colors

Definition at line 151 of file qgspointcloudclassifiedrenderer.h.


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