- java.lang.Object
-
- bdv.spimdata.tools.ChangeViewSetupId
-
public class ChangeViewSetupId extends Object
-
-
Constructor Summary
Constructors Constructor Description ChangeViewSetupId()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<Integer,Integer>assignNewViewSetupIds(mpicbg.spim.data.generic.AbstractSpimData<?> spimData, Set<Integer> idsInUse)For the specifiedspimDatadata set, re-assign setup id's that are already in use.static voidchangeViewSetupId(mpicbg.spim.data.generic.AbstractSpimData<?> spimData, int oldViewSetupId, int newViewSetupId)TODO
-
-
-
Method Detail
-
assignNewViewSetupIds
public static Map<Integer,Integer> assignNewViewSetupIds(mpicbg.spim.data.generic.AbstractSpimData<?> spimData, Set<Integer> idsInUse)
For the specifiedspimDatadata set, re-assign setup id's that are already in use. As a result, setup ids inspimDataare updated and the set of used idsidsInUseis updated.This method takes care af re-assigning ids in the setups themselves, as well as in the
ViewRegistrations.- Parameters:
spimData- dataset whose setups to make unique. Will be updated as a result of this method.idsInUse- Set of setup ids already used. Will be updated as a result of this method.- Returns:
- a map from old id to new id (the setups in
spimDatahad the old id before calling this method, and have the new id after calling this method).
-
changeViewSetupId
public static void changeViewSetupId(mpicbg.spim.data.generic.AbstractSpimData<?> spimData, int oldViewSetupId, int newViewSetupId)
TODO- Parameters:
spimData-oldViewSetupId-newViewSetupId-
-
-