DataContainerInteractor#
- class DataContainerInteractor(session, role, prefix='Cluster')[source]#
Bases:
QObjectHandle interaction between GUI and DataContainer
Attributes
The DataContainer this pane operates on.
DataContainerInteractor.data_changedpyqtSignal(*types, name: str = ..., revision: int = ..., arguments: Sequence = ...) -> PYQT_SIGNAL
Methods
DataContainerInteractor.add(*args, **kwargs)Append a point to the active drawing cluster.
DataContainerInteractor.add_selection(...[, add])Add new cloud from selected points.
DataContainerInteractor.apply(changes, *, undo)Apply each change in the given direction, then refresh once.
DataContainerInteractor.attach_viewport(viewport)Wire this pane to its ViewportInteractor.
DataContainerInteractor.clear()Deselect on right-click
DataContainerInteractor.duplicate(geometries)DataContainerInteractor.highlight_clusters_from_selected_points()DataContainerInteractor.pick_prop(picked_prop)Select the geometry whose actor was picked by the viewport, if any.
Remove the given geometries from the container and notify listeners.
Drop selected points (or whole geometries when fully selected).
DataContainerInteractor.render([defer_render])Set the UUID of the cluster receiving drawn points (
Noneto clear).Set selection by UUIDs.
DataContainerInteractor.update([tree_state])Resync the tree widget after the session swapped containers.
DataContainerInteractor.visibility(geometries)- add_selection(selected_point_ids, add=True)[source]#
Add new cloud from selected points.
- Parameters:
- selected_point_idsdict
Mapping of geometry UUID to selected point IDs.
- addbool
Whether to add the Geometry defined by selected points.
- Returns:
- int
Index of new cloud, -1 if creation failed.
- property container#
The DataContainer this pane operates on.
- remove(uuids_or_geometries)[source]#
Remove the given geometries from the container and notify listeners.
- set_active_cluster(uuid)[source]#
Set the UUID of the cluster receiving drawn points (
Noneto clear).