-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore timepoints and source group when using the editor mode #272
Comments
This is in fact fixed in BIOP/bigdataviewer-selector@4432147 |
@tpietzsch just FYI, when BdvOverlay#removeFromBdv is called in a bdv window, there's a lot of things from the bdv state which are changed: the number of timepoints is reset to one, the sources within the groups are reset, and probably some other things. To go around this issue, I have to save the state snapshot and restore "manually" parts of the state. This is okayish, but it would be better if I could avoid that (see https://github.com/BIOP/bigdataviewer-selector/blob/44321479fc44c35348937b6dae849dfd0bca593b/src/main/java/ch/epfl/biop/bdv/select/SourceSelectorBehaviour.java#L196-L205) Not that important, but I wanted to mention it to you since it impairs the user experience. |
TODO: do a clean issue in bigdataviewer-vistools |
Todo fix the SourceGroup workaround in bigdataviewer-selector once bigdataviewer/bigdataviewer-core#177 is fixed |
@NicoKiaru I merged your fix for bigdataviewer/bigdataviewer-core#177 Can you explain how you use timepoints? When BdvOverlay#removeFromBdv is called, vistools recomputes the numTimepoints as the max So it looks like, either, your overlay had more timepoints than the other sources, or you set the numTimepoints directly in the viewerstate (bypassing vistools BdvSources)? |
Most of the time, I build directly the And then each source is added via: Line 284 in ee30c16
So yes, I'm adding the SourceAndConverter object to the state directly. Thanks for linking the logic. I'll dig a bit more. ( and thanks for merging the PR ) |
Yes, right, neither This only happens on the vistools layer ( Of course it would be better to make it more seamless to mix vistools and core. But I don't have a perfect solution at the moment. |
Ah yes, thanks, I can try that. I think a minor inconvenience is that I will need to call this for each source in order to specify the timepoints instead of a single call with a List of sources. But maybe that's not a real problem. |
No description provided.
The text was updated successfully, but these errors were encountered: