DataContainerInteractor#

class DataContainerInteractor(container, vtk_widget, prefix='Cluster')[source]#

Bases: QObject

Handle interaction between GUI and DataContainer

Attributes

DataContainerInteractor.data_changed

pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL

DataContainerInteractor.render_update

pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL

DataContainerInteractor.vtk_pre_render

pyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL

Methods

DataContainerInteractor.activate_drawing_mode()

DataContainerInteractor.activate_picking_mode()

DataContainerInteractor.activate_viewing_mode()

DataContainerInteractor.add(*args, **kwargs)

DataContainerInteractor.add_selection(...[, add])

Add new cloud from selected points.

DataContainerInteractor.attach_area_picker()

DataContainerInteractor.change_representation(...)

DataContainerInteractor.clear()

DataContainerInteractor.cluster(**kwargs)

Apply cluster operation using GeometryOperations.

DataContainerInteractor.compute_normals(**kwargs)

Apply compute_normals operation using GeometryOperations.

DataContainerInteractor.deselect()

Deselect on right-click

DataContainerInteractor.deselect_points()

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.get_selected_geometries()

DataContainerInteractor.highlight_clusters_from_selected_points()

DataContainerInteractor.highlight_selected_points(color)

DataContainerInteractor.merge()

DataContainerInteractor.next_color()

DataContainerInteractor.refresh_actors()

DataContainerInteractor.remove()

DataContainerInteractor.remove_outliers(**kwargs)

Apply remove_outliers operation using GeometryOperations.

DataContainerInteractor.render([defer_render])

Synchronize vtk actors and tree data structure with subsequent render.

DataContainerInteractor.render_vtk()

Update the vtk scene.

DataContainerInteractor.set_coloring_mode(mode)

DataContainerInteractor.set_selection_by_uuid(uuids)

Set selection by UUIDs.

DataContainerInteractor.skeletonize(**kwargs)

Apply skeletonize operation using GeometryOperations.

DataContainerInteractor.undo()

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.

deselect()[source]#

Deselect on right-click

downsample(**kwargs)#

Apply downsample operation using GeometryOperations.

duplicate(**kwargs)#

Apply duplicate operation using GeometryOperations.

eventFilter(self, a0: QObject | None, a1: QEvent | None) bool[source]#
remove_outliers(**kwargs)#

Apply remove_outliers operation using GeometryOperations.

render(defer_render=False)[source]#

Synchronize vtk actors and tree data structure with subsequent render.

render_vtk()[source]#

Update the vtk scene.

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:
containermosaic.container.DataContainer

Container with new data.

tree_stateTreeState, optional

Tree structure to restore. If None, items added to root.

visibility(**kwargs)#

Apply visibility operation using GeometryOperations.