motile_plugin.layers.track_points

Classes

TrackPoints

Extended points layer that holds the track information and emits and responds to dynamics visualization signals

Module Contents

class motile_plugin.layers.track_points.TrackPoints(viewer: napari.Viewer, tracks: motile_plugin.core.Tracks, name: str, selected_nodes: motile_plugin.utils.node_selection.NodeSelectionList, symbolmap: dict[motile_plugin.core.NodeType, str], colormap: napari.utils.Colormap)

Bases: napari.layers.Points

Extended points layer that holds the track information and emits and responds to dynamics visualization signals

colormap
symbolmap
nodes
node_index_dict
points
track_ids
colors
symbols
viewer
selected_nodes
_update_selection()

Replaces the list of selected_nodes with the selection provided by the user

get_symbols(tracks: motile_plugin.core.Tracks, symbolmap: dict[motile_plugin.core.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”