Skip to content

Simplify slice viewer logic #82

@tdowrick

Description

@tdowrick

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions