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¶
Base classes¶
Abstract base class for 2d point cloud renderers. |
Methods
Returns the attribute to use for the renderer. |
|
Returns the color ramp shader function used to visualize the attribute. |
|
Returns the maximum value for attributes which will be used by the color ramp shader. |
|
Returns the minimum value for attributes which will be used by the color ramp shader. |
|
Sets the attribute to use for the renderer. |
|
Sets the color ramp shader function used to visualize the attribute. |
|
Sets the maximum value for attributes which will be used by the color ramp shader. |
|
Sets the minimum value for attributes which will be used by the color ramp shader. |
Static Methods
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
- Return type:
str
- colorRampShader(self) QgsColorRampShader [source]¶
Returns the color ramp shader function used to visualize the attribute.
See also
- Return type:
- static create(element: QDomElement, context: QgsReadWriteContext) QgsPointCloudRenderer | None [source]¶
Creates an RGB renderer from an XML
element
.- Parameters:
element (QDomElement)
context (QgsReadWriteContext)
- 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
See also
- Return type:
float
- minimum(self) float [source]¶
Returns the minimum value for attributes which will be used by the color ramp shader.
See also
See also
- Return type:
float
- setAttribute(self, attribute: str | None)[source]¶
Sets the
attribute
to use for the renderer.See also
- Parameters:
attribute (Optional[str])
- setColorRampShader(self, shader: QgsColorRampShader)[source]¶
Sets the color ramp
shader
function used to visualize the attribute.See also
- 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
See also
- Parameters:
maximum (float)