Class: QgsColorRampPointCloud3DSymbol

class qgis.3d.QgsColorRampPointCloud3DSymbol

Bases: qgis._3d.QgsPointCloud3DSymbol

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.

New in version 3.18.

QgsColorRampPointCloud3DSymbol() Constructor for QgsColorRampPointCloud3DSymbol

QgsColorRampPointCloud3DSymbol(QgsColorRampPointCloud3DSymbol)

Methods

attribute

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

byteStride

rtype

int

clone

rtype

QgsAbstract3DSymbol

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

copyBaseSettings

Copies base class settings from this object to a destination object.

readXml

param elem

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

symbolType

rtype

str

writeXml

param elem

attribute(self)str

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

See also

setAttribute()

Return type

str

byteStride(self)int
Return type

int

clone(self)QgsAbstract3DSymbol
Return type

QgsAbstract3DSymbol

colorRampShader(self)QgsColorRampShader

Returns the color ramp shader used to render the color

Return type

QgsColorRampShader

colorRampShaderMax(self)float

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

Return type

float

colorRampShaderMin(self)float

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

Return type

float

copyBaseSettings(self, destination: QgsAbstract3DSymbol)

Copies base class settings from this object to a destination object.

readXml(self, elem: QDomElement, context: QgsReadWriteContext)
Parameters
setAttribute(self, attribute: str)

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

See also

attribute()

Parameters

attribute (str) –

setColorRampShader(self, colorRampShader: QgsColorRampShader)

Sets the color ramp shader used to render the point cloud

Parameters

colorRampShader (QgsColorRampShader) –

setColorRampShaderMinMax(self, min: float, max: float)

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

Parameters
  • min (float) –

  • max (float) –

symbolType(self)str
Return type

str

writeXml(self, elem: QDomElement, context: QgsReadWriteContext)
Parameters