DataContainer#
The DataContainer class manages collections of geometry objects, providing operations for manipulation, analysis, and visualization of point cloud data. It serves as the core data structure for organizing clusters and models within the Mosaic application.
Constructor#
Container for managing and manipulating point cloud data collections. |
Data Access and Management#
|
Add a new geometry object to the container. |
|
Remove geometries at specified indices or by geometry objects. |
|
Retrieve the Geometry object by index or UUID. |
|
Update a geometry by UUID or geometry object. |
Remove all data associated with the container. |
|
Get VTK actors from all geometries. |
UUID Resolution#
Geometries in the container are identified by unique UUIDs, allowing stable references even as indices change.
Convert a uuid to an index in self.data. |
Visualization Control#
|
Highlight specified geometries. |
Highlight specific points in a cloud. |
|
Update appearance parameters for specified geometries. |
Container Length#
The container supports the len() function to get the number of stored geometries:
container = DataContainer()
container.add(points1)
container.add(points2)
print(len(container)) # Output: 2