Skip to content

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

@NicoKiaru

Description

@NicoKiaru

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions