Class: QgsPointCloudRgbRenderer

class qgis.core.QgsPointCloudRgbRenderer

Bases: QgsPointCloudRenderer

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

Added in version 3.18.

QgsPointCloudRgbRenderer() Constructor for QgsPointCloudRgbRenderer.

Methods

blueAttribute

Returns the attribute to use for the blue channel.

blueContrastEnhancement

Returns the contrast enhancement to use for the blue channel.

clone

rtype:

Optional[QgsPointCloudRenderer]

copyCommonProperties

Copies common point cloud properties (such as point size and screen error) to the destination renderer.

create

Creates an RGB renderer from an XML element.

drawPoint

Draws a point using a color at the specified x and y (in map coordinates).

greenAttribute

Returns the attribute to use for the green channel.

greenContrastEnhancement

Returns the contrast enhancement to use for the green channel.

pointXY

Retrieves the x and y coordinate for the point at index i.

pointZ

Retrieves the z value for the point at index i.

redAttribute

Returns the attribute to use for the red channel.

redContrastEnhancement

Returns the contrast enhancement to use for the red channel.

renderBlock

param block:

restoreCommonProperties

Restores common renderer properties (such as point size and screen error) from the specified DOM element.

save

param doc:

saveCommonProperties

Saves common renderer properties (such as point size and screen error) to the specified DOM element.

setBlueAttribute

Sets the attribute to use for the blue channel.

setBlueContrastEnhancement

Sets the contrast enhancement to use for the blue channel.

setGreenAttribute

Sets the attribute to use for the green channel.

setGreenContrastEnhancement

Sets the contrast enhancement to use for the green channel.

setRedAttribute

Sets the attribute to use for the red channel.

setRedContrastEnhancement

Sets the contrast enhancement to use for the red channel.

type

rtype:

str

usedAttributes

param context:

blueAttribute(self) str

Returns the attribute to use for the blue channel.

See also

greenAttribute()

See also

redAttribute()

Return type:

str

blueContrastEnhancement(self) QgsContrastEnhancement | None

Returns the contrast enhancement to use for the blue channel.

Return type:

Optional[QgsContrastEnhancement]

clone(self) QgsPointCloudRenderer | None
Return type:

Optional[QgsPointCloudRenderer]

copyCommonProperties(self, destination: QgsPointCloudRenderer | None)

Copies common point cloud properties (such as point size and screen error) to the destination renderer.

create(element: QDomElement, context: QgsReadWriteContext) QgsPointCloudRenderer | None

Creates an RGB renderer from an XML element.

Parameters:
Return type:

Optional[QgsPointCloudRenderer]

drawPoint(self, x: float, y: float, color: QColor | Qt.GlobalColor, context: QgsPointCloudRenderContext)

Draws a point using a color at the specified x and y (in map coordinates).

greenAttribute(self) str

Returns the attribute to use for the green channel.

See also

redAttribute()

See also

blueAttribute()

Return type:

str

greenContrastEnhancement(self) QgsContrastEnhancement | None

Returns the contrast enhancement to use for the green channel.

Return type:

Optional[QgsContrastEnhancement]

pointXY(context: QgsPointCloudRenderContext, ptr: str | None, i: int)

Retrieves the x and y coordinate for the point at index i.

pointZ(context: QgsPointCloudRenderContext, ptr: str | None, i: int) float

Retrieves the z value for the point at index i.

redAttribute(self) str

Returns the attribute to use for the red channel.

See also

greenAttribute()

See also

blueAttribute()

Return type:

str

redContrastEnhancement(self) QgsContrastEnhancement | None

Returns the contrast enhancement to use for the red channel.

Return type:

Optional[QgsContrastEnhancement]

renderBlock(self, block: QgsPointCloudBlock | None, context: QgsPointCloudRenderContext)
Parameters:
restoreCommonProperties(self, element: QDomElement, context: QgsReadWriteContext)

Restores common renderer properties (such as point size and screen error) from the specified DOM element.

save(self, doc: QDomDocument, context: QgsReadWriteContext) QDomElement
Parameters:
Return type:

QDomElement

saveCommonProperties(self, element: QDomElement, context: QgsReadWriteContext)

Saves common renderer properties (such as point size and screen error) to the specified DOM element.

setBlueAttribute(self, attribute: str | None)

Sets the attribute to use for the blue channel.

See also

blueAttribute()

Parameters:

attribute (Optional[str])

setBlueContrastEnhancement(self, enhancement: QgsContrastEnhancement | None)

Sets the contrast enhancement to use for the blue channel.

Ownership of enhancement is transferred.

Parameters:

enhancement (Optional[QgsContrastEnhancement])

setGreenAttribute(self, attribute: str | None)

Sets the attribute to use for the green channel.

See also

greenAttribute()

Parameters:

attribute (Optional[str])

setGreenContrastEnhancement(self, enhancement: QgsContrastEnhancement | None)

Sets the contrast enhancement to use for the green channel.

Ownership of enhancement is transferred.

Parameters:

enhancement (Optional[QgsContrastEnhancement])

setRedAttribute(self, attribute: str | None)

Sets the attribute to use for the red channel.

See also

redAttribute()

Parameters:

attribute (Optional[str])

setRedContrastEnhancement(self, enhancement: QgsContrastEnhancement | None)

Sets the contrast enhancement to use for the red channel.

Ownership of enhancement is transferred.

Parameters:

enhancement (Optional[QgsContrastEnhancement])

type(self) str
Return type:

str

usedAttributes(self, context: QgsPointCloudRenderContext) Set[str]
Parameters:

context (QgsPointCloudRenderContext)

Return type:

Set[str]