Class: QgsPointCloudAttributeByRampRenderer

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.QgsPointCloudAttributeByRampRenderer

Base classes

QgsPointCloudRenderer

Abstract base class for 2d point cloud renderers.

Methods

attribute

Returns the attribute to use for the renderer.

colorRampShader

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

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.

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.

Static Methods

create

Creates an RGB renderer from an XML element.

class qgis.core.QgsPointCloudAttributeByRampRenderer[source]

Bases: QgsPointCloudRenderer

__init__()

Constructor for QgsPointCloudAttributeByRampRenderer.

attribute(self) str[source]

Returns the attribute to use for the renderer.

See also

setAttribute()

Return type:

str

colorRampShader(self) QgsColorRampShader[source]

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

Return type:

QgsColorRampShader

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

Creates an RGB renderer from an XML element.

Parameters:
Return type:

Optional[QgsPointCloudRenderer]

maximum(self) float[source]

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[source]

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

See also

setMinimum()

See also

maximum()

Return type:

float

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

Sets the attribute to use for the renderer.

See also

attribute()

Parameters:

attribute (Optional[str])

setColorRampShader(self, shader: QgsColorRampShader)[source]

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

Parameters:

shader (QgsColorRampShader)

setMaximum(self, maximum: float)[source]

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)[source]

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

See also

minimum()

See also

setMaximum()

Parameters:

minimum (float)