Class SyncedPositionables

java.lang.Object
net.imglib2.loops.SyncedPositionables

public final class SyncedPositionables extends Object
Helper for the implementation of LoopBuilder. Used to bind together a list of Positionables:

Positionable synced = SyncedPositionables.create(listOfPositionables);

A call of a method for relative movement of synced moves all the Positionables in the list (listOfPositionable) accordingly.

e.g.: A call to synced.fwd(d), is functionally equivalent to for(Positionable p : listOfPostionables) { p.fwd(d); }

Methods Positionable.fwd(int), Positionable.bck(int) and Positionable.move(int, int) are supported. But calling Positionable.setPosition(Localizable) or EuclideanSpace.numDimensions() will throw an UnsupportedOperationException.