Class: QgsColorRampPointCloud3DSymbol

3D symbol that draws point cloud geometries as 3D objects using color ramp shader.

Warning

This is not considered stable API, and may change in future QGIS releases. It is exposed to the Python bindings as a tech preview only.

Added in version 3.18.

Class Hierarchy

Inheritance diagram of qgis._3d.QgsColorRampPointCloud3DSymbol

Base classes

QgsPointCloud3DSymbol

3D symbol that draws point cloud geometries as 3D objects.

QgsAbstract3DSymbol

Abstract base class for 3D symbols that are used by VectorLayer3DRenderer objects.

Methods

attribute

Returns the attribute used to select the color of the point cloud.

colorRampShader

Returns the color ramp shader used to render the color

colorRampShaderMax

Returns the maximum value used when classifying colors in the color ramp shader

colorRampShaderMin

Returns the minimum value used when classifying colors in the color ramp shader

readBaseXml

setAttribute

Sets the attribute used to select the color of the point cloud.

setColorRampShader

Sets the color ramp shader used to render the point cloud

setColorRampShaderMinMax

Sets the minimum and maximum values used when classifying colors in the color ramp shader

writeBaseXml

class qgis._3d.QgsColorRampPointCloud3DSymbol[source]

Bases: QgsPointCloud3DSymbol

attribute(self) str[source]

Returns the attribute used to select the color of the point cloud.

See also

setAttribute()

Return type:

str

colorRampShader(self) QgsColorRampShader[source]

Returns the color ramp shader used to render the color

Return type:

QgsColorRampShader

colorRampShaderMax(self) float[source]

Returns the maximum value used when classifying colors in the color ramp shader

Return type:

float

colorRampShaderMin(self) float[source]

Returns the minimum value used when classifying colors in the color ramp shader

Return type:

float

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

Sets the attribute used to select the color of the point cloud.

See also

attribute()

Parameters:

attribute (Optional[str])

setColorRampShader(self, colorRampShader: QgsColorRampShader)[source]

Sets the color ramp shader used to render the point cloud

Parameters:

colorRampShader (QgsColorRampShader)

setColorRampShaderMinMax(self, min: float, max: float)[source]

Sets the minimum and maximum values used when classifying colors in the color ramp shader

Parameters:
  • min (float)

  • max (float)

writeBaseXml()