Skip to content
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

Can't find how to add / remove overlays in SourceGroup #183

Open
NicoKiaru opened this issue May 16, 2024 · 0 comments
Open

Can't find how to add / remove overlays in SourceGroup #183

NicoKiaru opened this issue May 16, 2024 · 0 comments

Comments

@NicoKiaru
Copy link
Contributor

Hello!

I'm struggling when trying to programmatically add / remove overlays in a source group. Drag and drop overlays from the gui works, but I think that there's a missing way to do it programmatically.

For instance if I create a BdvOverlay like this:

bos = BdvFunctions.showOverlay(selectorOverlay, "Selector_Overlay",
			BdvOptions.options().addTo(bdvh));

I can't find a way to access the SouceAndConverter to use in addSourcesToGroup:

bdvh.getViewerPanel().state().addSourcesToGroup(Collections.singleton(bos.???), group)

Maybe there's a missing accessor in BdvOverlaySource ?

https://github.com/bigdataviewer/bigdataviewer-vistools/blob/b89d8404bd11813e96363e9aecd0cbb58b65b89b/src/main/java/bdv/util/BdvOverlaySource.java#L50-L53

@tpietzsch tpietzsch transferred this issue from bigdataviewer/bigdataviewer-vistools Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant