motile_tracker.data_views.views.ortho_views
Attributes
Functions
|
|
|
Return all property names for a Layer class. |
|
Hook to connect to sync points data and visualization between original and copied |
|
Hook to connect to paint events and process them on the original TracksLabels |
|
Hook to sync colormap changes from the original TrackLabels layer to the copied |
|
Hook to capture click events on TrackLabels and TrackPoints derived Labels and |
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: motile_tracker.data_views.views.layers.out_of_slice_points.ZOnlyPoints) 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 (ZOnlyPoints): ZOnlyPoints 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.colormap_hook(orig_layer: motile_tracker.data_views.views.layers.track_labels.TrackLabels, copied_layer: napari.layers.Labels) None
Hook to sync colormap changes from the original TrackLabels layer to the copied layers. We need a hook for the special case in which one of the views is showing a 3D
rendering in combination with partially filled contour labels. Since contours are not rendered in 3D, we want to display the non-filled labels with full opacity instead.
- Args:
- orig_layer (TrackLabels): TracksLabels layer from which the copied layer is
derived.
copied_layer (ContourLabels): ContourLabels equivalent of the TracksLabels layer.
- 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 | motile_tracker.data_views.views.layers.out_of_slice_points.ZOnlyPoints) None
Hook to capture click events on TrackLabels and TrackPoints derived Labels and ZOnlyPoints 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 | ZOnlyPoints): Labels or ZOnlyPoints 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