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).
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_or_uuid)Retrieve the Geometry object by index or UUID.
Get VTK actors from all geometries.
highlight
(uuids_or_geometries)Highlight specified geometries.
highlight_points
(uuid_or_geometry, ...)Highlight specific points in a cloud.
remove
(uuids_or_geometries)Remove geometries at specified indices or by geometry objects.
update
(uuid_or_geometry, new_geometry)Update a geometry by UUID or geometry object.
update_appearance
(uuids_or_geometries, ...)Update appearance parameters for specified geometries.
uuid_to_index
(uuid)Convert a uuid to an index in self.data.