Open francoisebouvet opened 3 years ago
This is, I think, because the VolumeSlicer creates components that must be known at the time that the application is started.
If I understand well, it means that the volume must be known before launching the application, in other words, the user can't choose the file he/she wants to visualize. This narrows the usefullness of VolumeSlicer.
in other words, the user can't choose the file he/she wants to visualize.
Well, that's up for the developer. You can certainly make it that way, e.g. by creating multiple slicers beforehand, and only showing one at a time. That may not be perfect, but I think this is a more a limitation of Dash, or just the fact that this a server-client architecture.
With Dash, I am able to choose the image I want to visualize and to change it during the session. So I don't think that it is a limitation of Dash.
Actually, I'm having the same problem as @francoisebouvet , I'm not able to update the data through a callback because the user needs to choose the file when the application is running. It would be nice to be possible to have this feature. I'm trying to do it with the create_overlay_data feature, however with unsuccessful results yet. I hope to get it soon. :(
In all the given examples, the volume and the slicer are global variables. It would be useful to be able to declare these variables in a callback. It would allow the user to select the file to vizualize during the session. The code below doesn't work: the slicer are well designed but the images remain completely blank.