motile_tracker.data_views.views.ortho_views

Attributes

sync_filters

Functions

copy_layer(layer[, name])

get_property_names_from_class(layer_cls)

Return all property names for a Layer class.

point_data_hook(→ None)

Hook to connect to sync points data and visualization between original and copied

paint_event_hook(→ None)

Hook to connect to paint events and process them on the original TracksLabels

track_layers_hook(→ None)

Hook to capture click events on TrackLabels and TrackPoints derived Labels and

initialize_ortho_views(...)

Initialize orthoviews on the current napari Viewer and register hooks and filters.

Module Contents

motile_tracker.data_views.views.ortho_views.copy_layer(layer: napari.layers.Layer, name: str = '')
motile_tracker.data_views.views.ortho_views.get_property_names_from_class(layer_cls)

Return all property names for a Layer class.

motile_tracker.data_views.views.ortho_views.sync_filters
motile_tracker.data_views.views.ortho_views.point_data_hook(orig_layer: motile_tracker.data_views.views.layers.track_points.TrackPoints, copied_layer: napari.layers.Points) None

Hook to connect to sync points data and visualization between original and copied Points layers.

Args:
orig_layer (TrackPoints): TracksLabels layer from which the copied layer is

derived.

copied_layer (Points): Points equivalent of the TracksPoints layer.

motile_tracker.data_views.views.ortho_views.paint_event_hook(orig_layer: motile_tracker.data_views.views.layers.track_labels.TrackLabels, copied_layer: napari.layers.Labels) None

Hook to connect to paint events and process them on the original TracksLabels layer.

Args:
orig_layer (TrackLabels): TracksLabels layer from which the copied layer is

derived.

copied_layer (Labels): Labels equivalent of the TracksLabels layer. Instead of

processing paint actions on this copy, we want to send them to the original layer and process them there.

motile_tracker.data_views.views.ortho_views.track_layers_hook(orig_layer: motile_tracker.data_views.views.layers.track_labels.TrackLabels | motile_tracker.data_views.views.layers.track_points.TrackPoints, copied_layer: napari.layers.Labels | napari.layers.Points) None

Hook to capture click events on TrackLabels and TrackPoints derived Labels and Points layers, and forward them to their original layer. Also, register key binds for view mode, undo & redo to copied layer, that call functions on the original layer.

Args:
orig_layer (TrackLabels | TrackPoints): TracksLabels or TrackPoints layer from

which the copied layer is derived.

copied_layer (Labels | Points): Labels or Points equivalent of the TracksLabels

or TrackPoints layer.

motile_tracker.data_views.views.ortho_views.initialize_ortho_views(viewer: napari.Viewer) napari_orthogonal_views.ortho_view_manager.OrthoViewManager

Initialize orthoviews on the current napari Viewer and register hooks and filters. Args:

viewer (napari.Viewer): viewer to set the orthogonal views for.

Returns:

OrthoViewManager: reference to the OrthoViewManager instance