mastodon-sc / mastodon

Mastodon – a large-scale tracking and track-editing framework for large, multi-view images.
BSD 2-Clause "Simplified" License
66 stars 20 forks source link

Record movie commands for BDV views. #171

Closed tinevez closed 2 years ago

tinevez commented 2 years ago

This PR adds two commands to the BDV views. They toggle two new dialogs that let the user configure and record movies from a BDV view. Default shortcuts: ctrl R & ctrl shift R

Screenshot 2022-06-01 at 14 31 22

The first one is used to record movies from the display, as it is currently shown in the BDV. The second one does the same, but can build a MIP image over a sandwich of images above and below the displayed plane.

The two dialogs look like this:

Screenshot 2022-06-01 at 14 39 35

Screenshot 2022-06-01 at 14 39 24

The code is of course derived from the classes with the same name in the BDV core by Tobias. I adapted it so that:

Regarding the last point, it would make sense to ship these two commands in a separate, optional repo as a plugin, but we first need a plugin infrastructure that has specific plugin for each view, and attach to a view instance. For instance, we want to launch a plugin that knows of THE BDV window it has been launched on.