Skip to content

[BUG] No displayer of atlas regions once dimension field is used #233

@HARSHDIPSAHA

Description

@HARSHDIPSAHA

Describe the bug
The tooltip feature, which displays the name of the brain region under the mouse cursor, fails to function when the dimension order is changed in the napari viewer.

When a user reorders dimensions or just click that button(right click ).However, the plugin passes these coordinates directly to the BrainGlobeAtlas API, which expects coordinates in the original data dimension order (0, 1, 2).,resulting in no tooltip being displayed.

Image

To Reproduce
Please enter full details of how to reproduce this bug.
First open napari-> then load a atlas, hover over it and see that every region name is shown-> right click on this dimension button-> you may or may not change axes-> now see and hover over brain atlas, no region name being shown even if u hide or unhide it or do anything.

Expected behaviour
The tooltip should continue to correctly identify and display the brain region name under the cursor, regardless of the dimension order currently set in the viewer. The plugin should handle the coordinate transformation between "View Space" and "Data Space" automatically.

Screenshots

Computer used (please complete the following information):

  • OS: Windows 11
  • Version : latest
  • Hardware specs :independent of it...

Additional context
The issue is located in brainrender_napari/napari_atlas_representation.py within the _on_mouse_move method ig

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions