napari_track_edit.application_menus.editing_selection_menu

Classes

SelectionWidget

Widget with buttons to control selection of nodes on TracksViewer.

EditingMenu

EditingSelectionWidget

Combined widget for editing and selection controls, with the controls to copy

Module Contents

class napari_track_edit.application_menus.editing_selection_menu.SelectionWidget(tracks_viewer: napari_track_edit.data_views.views_coordinator.tracks_viewer.TracksViewer)

Bases: qtpy.QtWidgets.QWidget

Widget with buttons to control selection of nodes on TracksViewer.

tracks_viewer
invert_btn
jump_to_previous_btn
jump_to_next_btn
select_next_set_btn
select_previous_set_btn
deselect_btn
reselect_btn
update_selection_buttons()

Update the button states based on the current node selection (history)

_jump_to_node(forward: bool) → None

Jump to the next/previous selected node in the list

_invert_selection() → None

Invert the current selection

class napari_track_edit.application_menus.editing_selection_menu.EditingMenu(viewer: napari.Viewer)

Bases: qtpy.QtWidgets.QWidget

tracks_viewer
label
new_track_btn
delete_node_btn
swap_nodes_btn
merge_nodes_btn
connect_nodes_btn
disconnect_nodes_btn
set_division_btn
undo_btn
redo_btn
update_track_id_color()

Display track ID value and color

update_buttons()

Set the buttons to enabled/disabled depending on the selected nodes

class napari_track_edit.application_menus.editing_selection_menu.EditingSelectionWidget(viewer: napari.Viewer)

Bases: qtpy.QtWidgets.QWidget

Combined widget for editing and selection controls, with the controls to copy detections from a source layer on a separate tab.

tracks_viewer
editing_widget
selection_widget
copy_from_source_widget
tabs