DataContainerInteractor#
- class DataContainerInteractor(container, vtk_widget, prefix='Cluster')[source]#
Bases:
QObjectHandle interaction between GUI and DataContainer
Attributes
DataContainerInteractor.data_changedpyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
DataContainerInteractor.render_updatepyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
DataContainerInteractor.vtk_pre_renderpyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
Methods
DataContainerInteractor.add(*args, **kwargs)DataContainerInteractor.add_selection(...[, add])Add new cloud from selected points.
DataContainerInteractor.clear()DataContainerInteractor.cluster(**kwargs)Apply cluster operation using GeometryOperations.
DataContainerInteractor.compute_normals(**kwargs)Apply compute_normals operation using GeometryOperations.
Deselect on right-click
DataContainerInteractor.downsample(**kwargs)Apply downsample operation using GeometryOperations.
DataContainerInteractor.duplicate(**kwargs)Apply duplicate operation using GeometryOperations.
DataContainerInteractor.eventFilter(self, a0, a1)DataContainerInteractor.get_event_position(event)DataContainerInteractor.highlight_clusters_from_selected_points()DataContainerInteractor.remove_outliers(**kwargs)Apply remove_outliers operation using GeometryOperations.
DataContainerInteractor.render([defer_render])Synchronize vtk actors and tree data structure with subsequent render.
Update the vtk scene.
Set selection by UUIDs.
DataContainerInteractor.skeletonize(**kwargs)Apply skeletonize operation using GeometryOperations.
DataContainerInteractor.update(container[, ...])Replace the underlying container and rebuild the tree.
DataContainerInteractor.visibility(**kwargs)Apply visibility operation using GeometryOperations.
- add_selection(selected_point_ids, add=True)[source]#
Add new cloud from selected points.
- Parameters:
- selected_point_idsdict
Mapping of vtkActor to selected point IDs.
- addbool
Whether to add the Geometry defined by selected points.
- Returns:
- int
Index of new cloud, -1 if creation failed.
- cluster(**kwargs)#
Apply cluster operation using GeometryOperations.
- compute_normals(**kwargs)#
Apply compute_normals operation using GeometryOperations.
- downsample(**kwargs)#
Apply downsample operation using GeometryOperations.
- duplicate(**kwargs)#
Apply duplicate operation using GeometryOperations.
- remove_outliers(**kwargs)#
Apply remove_outliers operation using GeometryOperations.
- render(defer_render=False)[source]#
Synchronize vtk actors and tree data structure with subsequent render.
- set_selection_by_uuid(uuids)[source]#
Set selection by UUIDs.
- Parameters:
- uuidslist of str
UUIDs to select
- skeletonize(**kwargs)#
Apply skeletonize operation using GeometryOperations.
- update(container, tree_state=None)[source]#
Replace the underlying container and rebuild the tree.
- Parameters:
- container
mosaic.container.DataContainer Container with new data.
- tree_stateTreeState, optional
Tree structure to restore. If None, items added to root.
- container
- visibility(**kwargs)#
Apply visibility operation using GeometryOperations.