Class: QgsPointCloudClassifiedRenderer¶
Renders point clouds by a classification attribute.
Added in version 3.18.
Class Hierarchy¶
Base classes¶
Abstract base class for 2d point cloud renderers.  | 
Methods
Adds a category to the renderer.  | 
|
Returns the attribute to use for the renderer.  | 
|
Returns the classification categories used for rendering.  | 
|
Sets the attribute to use for the renderer.  | 
|
Sets the classification categories used for rendering.  | 
Static Methods
Creates an RGB renderer from an XML element.  | 
|
Returns the default list of categories.  | 
- class qgis.core.QgsPointCloudClassifiedRenderer[source]¶
 Bases:
QgsPointCloudRenderer- __init__(attributeName: str | None = '', categories: Iterable[QgsPointCloudCategory] = [])
 Constructor for QgsPointCloudClassifiedRenderer.
- Parameters:
 attributeName (Optional[str] = '')
categories (Iterable[QgsPointCloudCategory] = [])
- addCategory(self, category: QgsPointCloudCategory)[source]¶
 Adds a
categoryto the renderer.See also
- Parameters:
 category (QgsPointCloudCategory)
- attribute(self) str[source]¶
 Returns the attribute to use for the renderer.
See also
- Return type:
 str
- categories(self) List[QgsPointCloudCategory][source]¶
 Returns the classification categories used for rendering.
See also
- Return type:
 List[QgsPointCloudCategory]
- 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]
- static defaultCategories() List[QgsPointCloudCategory][source]¶
 Returns the default list of categories.
- Return type:
 List[QgsPointCloudCategory]
- setAttribute(self, attribute: str | None)[source]¶
 Sets the
attributeto use for the renderer.See also
- Parameters:
 attribute (Optional[str])
- setCategories(self, categories: Iterable[QgsPointCloudCategory])[source]¶
 Sets the classification
categoriesused for rendering.See also
- Parameters:
 categories (Iterable[QgsPointCloudCategory])