Class ChangeViewSetupId


  • public class ChangeViewSetupId
    extends Object
    • Constructor Detail

      • ChangeViewSetupId

        public ChangeViewSetupId()
    • Method Detail

      • assignNewViewSetupIds

        public static Map<Integer,​Integer> assignNewViewSetupIds​(mpicbg.spim.data.generic.AbstractSpimData<?> spimData,
                                                                       Set<Integer> idsInUse)
        For the specified spimData data set, re-assign setup id's that are already in use. As a result, setup ids in spimData are updated and the set of used ids idsInUse is 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 spimData had 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 -