Class SpimDataTools
java.lang.Object
net.preibisch.mvrecon.fiji.spimdata.SpimDataTools
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFilteredViewDescriptions(mpicbg.spim.data.generic.sequence.AbstractSequenceDescription<?, ?, ?> seq, Map<Class<? extends mpicbg.spim.data.generic.base.Entity>, List<? extends mpicbg.spim.data.generic.base.Entity>> filters) getFilteredViewDescriptions(mpicbg.spim.data.generic.sequence.AbstractSequenceDescription<?, ?, ?> seq, Map<Class<? extends mpicbg.spim.data.generic.base.Entity>, List<? extends mpicbg.spim.data.generic.base.Entity>> filters, boolean filterMissing) getInstancesOfAttribute(mpicbg.spim.data.generic.sequence.AbstractSequenceDescription<?, ?, ?> seq, Class<? extends mpicbg.spim.data.generic.base.Entity> cl) getVDComparator(Class<? extends mpicbg.spim.data.generic.base.Entity> cl) get a Comparator to sort ViewDescriptions by the ID of the Attribute of class clgetVDListComparator(Class<? extends mpicbg.spim.data.generic.base.Entity> cl) get a Comparator of Lists of ViewDescriptions the first elements of the lists are compared by the ID of their Attribute of class cl (it is a good idea to sort the lists themselves first)
-
Constructor Details
-
SpimDataTools
public SpimDataTools()
-
-
Method Details
-
getInstancesOfAttribute
public static List<mpicbg.spim.data.generic.base.Entity> getInstancesOfAttribute(mpicbg.spim.data.generic.sequence.AbstractSequenceDescription<?, ?, ?> seq, Class<? extends mpicbg.spim.data.generic.base.Entity> cl) -
getFilteredViewDescriptions
public static List<mpicbg.spim.data.generic.sequence.BasicViewDescription<?>> getFilteredViewDescriptions(mpicbg.spim.data.generic.sequence.AbstractSequenceDescription<?, ?, ?> seq, Map<Class<? extends mpicbg.spim.data.generic.base.Entity>, List<? extends mpicbg.spim.data.generic.base.Entity>> filters) -
getFilteredViewDescriptions
public static List<mpicbg.spim.data.generic.sequence.BasicViewDescription<?>> getFilteredViewDescriptions(mpicbg.spim.data.generic.sequence.AbstractSequenceDescription<?, ?, ?> seq, Map<Class<? extends mpicbg.spim.data.generic.base.Entity>, List<? extends mpicbg.spim.data.generic.base.Entity>> filters, boolean filterMissing) -
getVDComparator
public static Comparator<mpicbg.spim.data.generic.sequence.BasicViewDescription<?>> getVDComparator(Class<? extends mpicbg.spim.data.generic.base.Entity> cl) get a Comparator to sort ViewDescriptions by the ID of the Attribute of class cl- Parameters:
cl- - the Entity class to compare by- Returns:
- - Comparator comparing by id of Entity class cl
-
getVDListComparator
public static Comparator<List<mpicbg.spim.data.generic.sequence.BasicViewDescription<?>>> getVDListComparator(Class<? extends mpicbg.spim.data.generic.base.Entity> cl) get a Comparator of Lists of ViewDescriptions the first elements of the lists are compared by the ID of their Attribute of class cl (it is a good idea to sort the lists themselves first)- Parameters:
cl- - the Entity class to compare by- Returns:
- - Comparator comparing by id of Entity class cl of first element of VD list
-