Interface Positionable

All Superinterfaces:
EuclideanSpace
All Known Subinterfaces:
OutOfBounds<T>, RandomAccess<T>, RealOutOfBounds<T>, RealPositionable, RealRandomAccess<T>, SyncedPositionables.Private.Forwarder
All Known Implementing Classes:
AbstractConvertedRandomAccess, AbstractConvertedRealRandomAccess, AbstractLongListImg.LongListRandomAccess, AbstractOutOfBoundsMirror, AbstractOutOfBoundsValue, AbstractPositionableTransform, AbstractProjector2D, AbstractWrappedPositionableLocalizable, ArrayImgXYByteProjector, ArrayImgXYShortProjector, ArrayRandomAccess, BiConvertedRandomAccess, BiConvertedRealRandomAccess, BundleView.BundleRandomAccess, CellGrid.CellIntervalsRA, CellRandomAccess, ClampingNLinearInterpolatorRealType, ClampingNLinearInterpolatorVolatileARGB, ClampingNLinearInterpolatorVolatileRealType, CompositeView.CompositeRandomAccess, CompositeXYProjector, CompositeXYRandomAccessibleProjector, ConvertedRandomAccess, ConvertedRealRandomAccess, Floor, FloorInterpolator, FloorOffset, FullSourceMapMixedRandomAccess, FullSourceMapSlicingRandomAccess, FunctionRandomAccessible.FunctionRandomAccess, FunctionRealRandomAccessible.RealFunctionRealRandomAccess, FunctionView.FunctionRandomAccess, Grid.CellIntervalsRA, HyperSlice.HyperSliceRandomAccess, HyperSlicesView.HyperSlicesViewRandomAccess, InflateView.InflateRandomAccess, InterleaveView.InterleaveRandomAccess, InverseDistanceWeightingInterpolator, IterableIntervalProjector2D, LanczosInterpolator, LinearRealRandomAccessibleStackInterpolator, ListRandomAccess, Localizables.LocationRandomAccess, Localizables.RealLocationRealRandomAccess, MixedRandomAccess, NearestNeighborInterpolator, NearestNeighborRealRandomAccessibleStackInterpolator, NearestNeighborSearchInterpolator, NLinearInterpolator, NLinearInterpolator1D, NLinearInterpolator2D, NLinearInterpolator3D, NLinearInterpolatorARGB, NtreeRandomAccess, OutOfBoundsBorder, OutOfBoundsConstantValue, OutOfBoundsMirrorDoubleBoundary, OutOfBoundsMirrorExpWindowing, OutOfBoundsMirrorSingleBoundary, OutOfBoundsPeriodic, OutOfBoundsRandomValue, PlanarImgXYByteProjector, PlanarImgXYShortProjector, PlanarRandomAccess, PlanarRandomAccess1D, Point, PointSample, PositionRandomAccessible.PositionRandomAccess, RandomAccessibleOnRealRandomAccessible.RandomAccessOnRealRandomAccessible, RandomAccessiblePair.RandomAccess, RandomAccessibleProjector2D, RealComposite, RealOutOfBoundsRealRandomAccess, RealPoint, RealPointSample, RealPositionRealRandomAccessible.RealPositionRealRandomAccess, Round, SamplingProjector2D, SlicingRandomAccess, StackView.DefaultRA, StackView.MoveAllSlicesRA, SubsampleView.SubsampleRandomAccess, SyncedPositionables.Private.Forwarder1, SyncedPositionables.Private.Forwarder2, SyncedPositionables.Private.Forwarder3, SyncedPositionables.Private.Forwarder4, SyncedPositionables.Private.Forwarder5, SyncedPositionables.Private.GeneralForwarder, TransformRandomAccess, TranslationRandomAccess, Volatile2DRandomAccessibleProjector, WriteConvertedRandomAccess

public interface Positionable extends EuclideanSpace
An element that can be positioned in n-dimensional discrete space.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    bck(int d)
    Move by -1 in one dimension.
    void
    fwd(int d)
    Move by 1 in one dimension.
    void
    move(int[] distance)
    Move the element relative to its current location using an int[] as distance vector.
    void
    move(int distance, int d)
    Move the element in one dimension for some distance.
    void
    move(long[] distance)
    Move the element relative to its current location using a long[] as distance vector.
    void
    move(long distance, int d)
    Move the element in one dimension for some distance.
    void
    move(Localizable distance)
    Move the element relative to its current location using an Localizable as distance vector.
    void
    setPosition(int[] position)
    Set the position of the element.
    void
    setPosition(int position, int d)
    Set the position of the element for one dimension.
    void
    setPosition(long[] position)
    Set the position of the element.
    void
    setPosition(long position, int d)
    Set the position of the element for one dimension.
    void
    Place the element at the same location as a given Localizable

    Methods inherited from interface EuclideanSpace

    numDimensions
  • Method Details

    • fwd

      void fwd(int d)
      Move by 1 in one dimension.
      Parameters:
      d - dimension
    • bck

      void bck(int d)
      Move by -1 in one dimension.
      Parameters:
      d - dimension
    • move

      void move(int distance, int d)
      Move the element in one dimension for some distance.
      Parameters:
      distance - relative offset in dimension d
      d - dimension
    • move

      void move(long distance, int d)
      Move the element in one dimension for some distance.
      Parameters:
      distance - relative offset in dimension d
      d - dimension
    • move

      void move(Localizable distance)
      Move the element relative to its current location using an Localizable as distance vector.
      Parameters:
      distance - relative offset, EuclideanSpace.numDimensions() must be ≥ EuclideanSpace.numDimensions()
    • move

      void move(int[] distance)
      Move the element relative to its current location using an int[] as distance vector.
      Parameters:
      distance - relative offset, length must be ≥ EuclideanSpace.numDimensions()
    • move

      void move(long[] distance)
      Move the element relative to its current location using a long[] as distance vector.
      Parameters:
      distance - relative offset, length must be ≥ EuclideanSpace.numDimensions()
    • setPosition

      void setPosition(Localizable position)
      Place the element at the same location as a given Localizable
      Parameters:
      position - absolute position, EuclideanSpace.numDimensions() must be ≥ EuclideanSpace.numDimensions()
    • setPosition

      void setPosition(int[] position)
      Set the position of the element.
      Parameters:
      position - absolute position, length must be ≥ EuclideanSpace.numDimensions()
    • setPosition

      void setPosition(long[] position)
      Set the position of the element.
      Parameters:
      position - absolute position, length must be ≥ EuclideanSpace.numDimensions()
    • setPosition

      void setPosition(int position, int d)
      Set the position of the element for one dimension.
      Parameters:
      position - absolute position in dimension d
      d - dimension
    • setPosition

      void setPosition(long position, int d)
      Set the position of the element for one dimension.
      Parameters:
      position - absolute position in dimension d
      d - dimension