Class: QgsPointCloudAttributeByRampRenderer

class qgis.core.QgsPointCloudAttributeByRampRenderer

Bases: QgsPointCloudRenderer

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

New in version 3.18.

QgsPointCloudAttributeByRampRenderer() Constructor for QgsPointCloudAttributeByRampRenderer.

Methods

attribute

Returns the attribute to use for the renderer.

clone

rtype

QgsPointCloudRenderer

colorRampShader

Returns the color ramp shader function used to visualize the attribute.

create

Creates an RGB renderer from an XML element.

createLegendNodes

param nodeLayer

maximum

Returns the maximum value for attributes which will be used by the color ramp shader.

minimum

Returns the minimum value for attributes which will be used by the color ramp shader.

renderBlock

param block

save

param doc

setAttribute

Sets the attribute to use for the renderer.

setColorRampShader

Sets the color ramp shader function used to visualize the attribute.

setMaximum

Sets the maximum value for attributes which will be used by the color ramp shader.

setMinimum

Sets the minimum value for attributes which will be used by the color ramp shader.

type

rtype

str

usedAttributes

param context

attribute(self) str

Returns the attribute to use for the renderer.

See also

setAttribute()

Return type

str

clone(self) QgsPointCloudRenderer
Return type

QgsPointCloudRenderer

colorRampShader(self) QgsColorRampShader

Returns the color ramp shader function used to visualize the attribute.

Return type

QgsColorRampShader

create(element: QDomElement, context: QgsReadWriteContext) QgsPointCloudRenderer

Creates an RGB renderer from an XML element.

Parameters
Return type

QgsPointCloudRenderer

createLegendNodes(self, nodeLayer: QgsLayerTreeLayer) List[QgsLayerTreeModelLegendNode]
Parameters

nodeLayer (QgsLayerTreeLayer) –

Return type

List[QgsLayerTreeModelLegendNode]

maximum(self) float

Returns the maximum value for attributes which will be used by the color ramp shader.

See also

setMaximum()

See also

minimum()

Return type

float

minimum(self) float

Returns the minimum value for attributes which will be used by the color ramp shader.

See also

setMinimum()

See also

maximum()

Return type

float

renderBlock(self, block: QgsPointCloudBlock, context: QgsPointCloudRenderContext)
Parameters
save(self, doc: QDomDocument, context: QgsReadWriteContext) QDomElement
Parameters
Return type

QDomElement

setAttribute(self, attribute: str)

Sets the attribute to use for the renderer.

See also

attribute()

Parameters

attribute (str) –

setColorRampShader(self, shader: QgsColorRampShader)

Sets the color ramp shader function used to visualize the attribute.

Parameters

shader (QgsColorRampShader) –

setMaximum(self, maximum: float)

Sets the maximum value for attributes which will be used by the color ramp shader.

See also

maximum()

See also

setMinimum()

Parameters

maximum (float) –

setMinimum(self, minimum: float)

Sets the minimum value for attributes which will be used by the color ramp shader.

See also

minimum()

See also

setMaximum()

Parameters

minimum (float) –

type(self) str
Return type

str

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

context (QgsPointCloudRenderContext) –

Return type

Set[str]