mosaic.container.DataContainer#

class DataContainer(base_color=(0.7, 0.7, 0.7), highlight_color=(0.8, 0.2, 0.2))[source]#

Bases: object

Container for managing and manipulating point cloud data collections.

Parameters:
base_colortuple of float, optional

Default color for points in RGB format in range 0-1. Default is (0.7, 0.7, 0.7).

highlight_colortuple of float, optional

Highlight color for points in RGB format in range 0-1. Default is (0.8, 0.2, 0.2).

__init__(base_color=(0.7, 0.7, 0.7), highlight_color=(0.8, 0.2, 0.2))[source]#

Methods

__init__([base_color, highlight_color])

add(points[, color])

Add a new geometry object to the container.

clear()

Remove all data associated with the container.

get(index)

Retrieve the Geometry object at index.

get_actors()

Get VTK actors from all geometries.

get_cluster_size()

Get number of points in each cloud.

highlight(indices)

Highlight specified geometries.

highlight_points(index, point_ids, color)

Highlight specific points in a cloud.

remove(indices)

Remove geometries at specified indices.

update_appearance(indices, parameters)