napari_track_edit.data_views.views.layers.tracks_layer_group
Classes
Module Contents
- class napari_track_edit.data_views.views.layers.tracks_layer_group.TracksLayerGroup(viewer: napari.Viewer, tracks: funtracks.data_model.Tracks, name: str, tracks_viewer: napari_track_edit.data_views.views_coordinator.tracks_viewer.TracksViewer)
- viewer
- tracks_viewer
- tracks
- name
- tracks_layer: napari_track_edit.data_views.views.layers.track_graph.TrackGraph | None = None
- points_layer: napari_track_edit.data_views.views.layers.track_points.TrackPoints | None = None
- seg_layer: napari_track_edit.data_views.views.layers.track_labels.TrackLabels | None = None
- set_tracks(tracks, name)
- remove_napari_layer(layer: napari.layers.Layer | None) None
Remove a layer from the napari viewer, if present
- remove_napari_layers() None
Remove all tracking layers from the viewer
- add_napari_layers() None
Add new tracking layers to the viewer
- link_experimental_clipping_planes()
Link the clipping planes of all tracking layers
- unlink_experimental_clipping_planes()
Unlink the clipping planes of all tracking layers
- _refresh() None
Refresh the tracking layers with new tracks info
- update_visible(visible_nodes: list[int] | str)
- center_view(node)
Adjust the current_step and camera center of the viewer to jump to the node location, if the node is not already in the field of view.
Centering is skipped while the segmentation (or points) layer is not in pan_zoom mode, but only for requests coming from the napari canvas itself. Requests from the other views (tree view, table, menus) always center.