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:
the selected base image (e.g. T1 or T2)
whether the colourmap is selected
the current view (US or neurostimulation)
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.
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.