mobie / mobie.github.io

1 stars 3 forks source link

Additional view fields (for large grid views) #62

Closed constantinpape closed 3 years ago

constantinpape commented 3 years ago

I think we should add a flag visible to imageDisplay and segmentationDisplay, that determines whether the corresponding layer in the viewer will be shown or not when the view is loaded. This should be optional and default to true. I think we discussed this already and decided against this to keep complexity low; however for large grid views it would be important to have this: there the best way to show a full plate is to add all sources to a single view. But, in order to not load too many images upon loading the view, it would be very helpful if only a single of the layers could be activated.

(For the same use-case, it would also be good to do something similar with the segmentation tables, but I want to check how it works right now and can't due to https://github.com/mobie/mobie.github.io/issues/58#issuecomment-891041547)

cc @tischi @K-Meech

tischi commented 3 years ago

I think adding this field makes sense, because it is something that exists in the UI state and thus would be good to reflect in the JSON. If you add it as an example somewhere I can implement it on the Java side.

constantinpape commented 3 years ago

If you add it as an example somewhere I can implement it on the Java side.

Ok, I would wait till you fix https://github.com/mobie/mobie.github.io/issues/58#issuecomment-891041547 and then add it to that grid view.

constantinpape commented 3 years ago

@tischi I have added two fields now visible (determines if sources are active in viewer) in imageDisplay and segmentationDisplay and showTable (determines if table GUI is active) in segmentationDisplay and annotationDisplay.

I have updated the grid view in the covid if project accordingly.

constantinpape commented 3 years ago

@tischi For completeness I think we should also add the visible field to the annotationDisplay, to control the visibility of the colored overlay for these. What do you think?

tischi commented 3 years ago

For completeness I think we should also add the visible field to the annotationDisplay, to control the visibility of the colored overlay for these. What do you think?

yes, in fact I sort of had it there already because I added the visible field to SourceDisplay which is the base class of all the display classes. I just forgot to use it somewhere else in the code where the display is shown. But next time I update MoBIE-beta it will be there.

constantinpape commented 3 years ago

Ok,I have added it. I think we have everything we need here now :).