UCL / SkullBaseNavigation

Other
2 stars 1 forks source link

Simplify slice viewer logic #82

Open tdowrick opened 3 years ago

tdowrick commented 3 years ago

In GitLab by @AnastasisGeorgoulas on Oct 3, 2019, 16:44

At the moment, choosing which images to show on the layers is rather complicated, and separated across different methods which are called in order (toggle_view, toggle_colourmap, toggle_image). It would be better to have a single method that takes:

and updates the slice viewers accordingly. This could then be called whenever a relevant change happens in the GUI, whether that's from the view buttons or the image buttons.

It may even possible to do some logical analysis and see what needs to be changed, rather than setting all layers from scratch every time.