Class: QgsPointCloudRgbRenderer

An RGB renderer for 2d visualisation of point clouds using embedded red, green and blue attributes.

Added in version 3.18.

Class Hierarchy

Inheritance diagram of qgis.core.QgsPointCloudRgbRenderer

Base classes

QgsPointCloudRenderer

Abstract base class for 2d point cloud renderers.

class qgis.core.QgsPointCloudRgbRenderer[source]

Bases: QgsPointCloudRenderer

__init__()

Constructor for QgsPointCloudRgbRenderer.

blueAttribute(self) str[source]

Returns the attribute to use for the blue channel.

See also

greenAttribute()

See also

redAttribute()

Return type:

str

blueContrastEnhancement(self) QgsContrastEnhancement | None[source]

Returns the contrast enhancement to use for the blue channel.

Return type:

Optional[QgsContrastEnhancement]

static create(element: QDomElement, context: QgsReadWriteContext) QgsPointCloudRenderer | None[source]

Creates an RGB renderer from an XML element.

Parameters:
Return type:

Optional[QgsPointCloudRenderer]

greenAttribute(self) str[source]

Returns the attribute to use for the green channel.

See also

redAttribute()

See also

blueAttribute()

Return type:

str

greenContrastEnhancement(self) QgsContrastEnhancement | None[source]

Returns the contrast enhancement to use for the green channel.

Return type:

Optional[QgsContrastEnhancement]

redAttribute(self) str[source]

Returns the attribute to use for the red channel.

See also

greenAttribute()

See also

blueAttribute()

Return type:

str

redContrastEnhancement(self) QgsContrastEnhancement | None[source]

Returns the contrast enhancement to use for the red channel.

Return type:

Optional[QgsContrastEnhancement]

setBlueAttribute(self, attribute: str | None)[source]

Sets the attribute to use for the blue channel.

See also

blueAttribute()

Parameters:

attribute (Optional[str])

setBlueContrastEnhancement(self, enhancement: QgsContrastEnhancement | None)[source]

Sets the contrast enhancement to use for the blue channel.

Ownership of enhancement is transferred.

Parameters:

enhancement (Optional[QgsContrastEnhancement])

setGreenAttribute(self, attribute: str | None)[source]

Sets the attribute to use for the green channel.

See also

greenAttribute()

Parameters:

attribute (Optional[str])

setGreenContrastEnhancement(self, enhancement: QgsContrastEnhancement | None)[source]

Sets the contrast enhancement to use for the green channel.

Ownership of enhancement is transferred.

Parameters:

enhancement (Optional[QgsContrastEnhancement])

setRedAttribute(self, attribute: str | None)[source]

Sets the attribute to use for the red channel.

See also

redAttribute()

Parameters:

attribute (Optional[str])

setRedContrastEnhancement(self, enhancement: QgsContrastEnhancement | None)[source]

Sets the contrast enhancement to use for the red channel.

Ownership of enhancement is transferred.

Parameters:

enhancement (Optional[QgsContrastEnhancement])