bigdataviewer / bigdataviewer-core

ImgLib2-based viewer for registered SPIM stacks and more
BSD 2-Clause "Simplified" License
33 stars 35 forks source link

Access to Groups and Sources via their names #192

Open tischi opened 5 years ago

tischi commented 5 years ago

@tpietzsch @tibuch It would be really helpful to be able to write code like this:

bdv.getViewerPanel().getState().getVisibilityAndGrouping().setGroupActive( (String) nameOfGroup, boolean );
bdv.getViewerPanel().getState().getVisibilityAndGrouping().setSourceActive( (String) nameOfSource, boolean );

Without this one has to constantly keep track of how the respective names map to the respective indices.