Class: QgsPointCloudClassifiedRenderer

Renders point clouds by a classification attribute.

Added in version 3.18.

Class Hierarchy

Inheritance diagram of qgis.core.QgsPointCloudClassifiedRenderer

Base classes

QgsPointCloudRenderer

Abstract base class for 2d point cloud renderers.

Methods

addCategory

Adds a category to the renderer.

attribute

Returns the attribute to use for the renderer.

categories

Returns the classification categories used for rendering.

setAttribute

Sets the attribute to use for the renderer.

setCategories

Sets the classification categories used for rendering.

Static Methods

create

Creates an RGB renderer from an XML element.

defaultCategories

Returns the default list of categories.

class qgis.core.QgsPointCloudClassifiedRenderer[source]

Bases: QgsPointCloudRenderer

__init__(attributeName: str | None = '', categories: Iterable[QgsPointCloudCategory] = [])

Constructor for QgsPointCloudClassifiedRenderer.

Parameters:
addCategory(self, category: QgsPointCloudCategory)[source]

Adds a category to the renderer.

See also

categories()

Parameters:

category (QgsPointCloudCategory)

attribute(self) str[source]

Returns the attribute to use for the renderer.

See also

setAttribute()

Return type:

str

categories(self) List[QgsPointCloudCategory][source]

Returns the classification categories used for rendering.

See also

setCategories()

Return type:

List[QgsPointCloudCategory]

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

Creates an RGB renderer from an XML element.

Parameters:
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 attribute to use for the renderer.

See also

attribute()

Parameters:

attribute (Optional[str])

setCategories(self, categories: Iterable[QgsPointCloudCategory])[source]

Sets the classification categories used for rendering.

See also

categories()

Parameters:

categories (Iterable[QgsPointCloudCategory])