motile_plugin.data_views.views.layers.track_points
Classes
Extended points layer that holds the track information and emits and |
Module Contents
- class motile_plugin.data_views.views.layers.track_points.TrackPoints(name: str, tracks_viewer: motile_plugin.data_views.views_coordinator.tracks_viewer.TracksViewer)
Bases:
napari.layers.Points
Extended points layer that holds the track information and emits and responds to dynamics visualization signals
- property _type_string: str
- tracks_viewer
- nodes
- node_index_dict
- _refresh()
Refresh the data in the points layer
- _create_node_attrs(new_point: numpy.array) tuple[numpy.array, dict]
Create attributes for a new node at given time point
- _update_data(event)
Calls the tracks controller with to update the data in the Tracks object and dispatch the update
- _update_selection()
Replaces the list of selected_nodes with the selection provided by the user
- get_symbols(tracks: motile_plugin.data_model.Tracks, symbolmap: dict[motile_plugin.data_model.NodeType, str]) list[str]
- update_point_outline(visible: list[int] | str) None
Update the outline color of the selected points and visibility according to display mode
- Args:
visible (list[int] | str): A list of track ids, or “all”