Package net.imglib2
Interface Localizable
- All Superinterfaces:
EuclideanSpace,RealLocalizable
- All Known Subinterfaces:
Cursor<T>,OutOfBounds<T>,RandomAccess<T>,RealOutOfBounds<T>
- All Known Implementing Classes:
AbstractArrayCursor,AbstractArrayLocalizingCursor,AbstractConvertedCursor,AbstractConvertedRandomAccess,AbstractCursor,AbstractCursorInt,AbstractLocalizable,AbstractLocalizableInt,AbstractLocalizingCursor,AbstractLocalizingCursorInt,AbstractLongListImg.LongListCursor,AbstractLongListImg.LongListLocalizingCursor,AbstractLongListImg.LongListRandomAccess,AbstractOutOfBoundsMirror,AbstractOutOfBoundsValue,AbstractProjector2D,ArrayCursor,ArrayImgXYByteProjector,ArrayImgXYShortProjector,ArrayLocalizingCursor,ArrayLocalizingSubIntervalCursor,ArrayRandomAccess,ArraySubIntervalCursor,CellCursor,CellLocalizingCursor,CellRandomAccess,CompositeView.CompositeRandomAccess,CompositeXYProjector,CompositeXYRandomAccessibleProjector,ConvertedCursor,ConvertedRandomAccess,FullSourceMapMixedRandomAccess,FullSourceMapSlicingRandomAccess,HyperSlice.HyperSliceRandomAccess,HyperSlicesView.HyperSlicesViewRandomAccess,IntervalIterator,IterableIntervalProjector2D,ListCursor,ListLocalizingCursor,ListRandomAccess,LocalizingIntervalIterator,LocalizingZeroMinIntervalIterator,MixedRandomAccess,NtreeCursor,NtreeRandomAccess,OffsetableIntervalIterator,OffsetableLocalizingIntervalIterator,OutOfBoundsBorder,OutOfBoundsConstantValue,OutOfBoundsMirrorDoubleBoundary,OutOfBoundsMirrorExpWindowing,OutOfBoundsMirrorSingleBoundary,OutOfBoundsPeriodic,OutOfBoundsRandomValue,PlanarCursor,PlanarCursor1D,PlanarCursor2D,PlanarImgXYByteProjector,PlanarImgXYShortProjector,PlanarLocalizingCursor,PlanarLocalizingCursor1D,PlanarLocalizingCursor2D,PlanarPlaneSubsetCursor,PlanarPlaneSubsetLocalizingCursor,PlanarRandomAccess,PlanarRandomAccess1D,Point,PointSampleList.PointSampleListCursor,RandomAccessibleIntervalCursor,RandomAccessibleOnRealRandomAccessible.RandomAccessOnRealRandomAccessible,RandomAccessiblePair.RandomAccess,RandomAccessibleProjector2D,SamplingProjector2D,SlicingCursor,SlicingRandomAccess,StackView.DefaultRA,StackView.MoveAllSlicesRA,SubsampleView.SubsampleRandomAccess,TransformRandomAccess,TranslationRandomAccess,Volatile2DRandomAccessibleProjector,WriteConvertedCursor,WriteConvertedRandomAccess,ZeroMinIntervalIterator
The
Localizable interface can localize itself in an n-dimensional
discrete space. Not only Cursors can use this interface, it might be
used by much more classes as RandomAccesss can take any
Localizable as input for where they should move to.- Author:
- Stephan Preibisch, Stephan Saalfeld
-
Method Summary
Modifier and TypeMethodDescriptionintgetIntPosition(int d) Return the current position in a given dimension.longgetLongPosition(int d) Return the current position in a given dimension.voidlocalize(int[] position) Write the current position into the passed array.voidlocalize(long[] position) Write the current position into the passed array.Methods inherited from interface net.imglib2.EuclideanSpace
numDimensionsMethods inherited from interface net.imglib2.RealLocalizable
getDoublePosition, getFloatPosition, localize, localize
-
Method Details
-
localize
void localize(int[] position) Write the current position into the passed array.- Parameters:
position- receives current position
-
localize
void localize(long[] position) Write the current position into the passed array.- Parameters:
position- receives current position
-
getIntPosition
int getIntPosition(int d) Return the current position in a given dimension.- Parameters:
d- dimension- Returns:
- dimension of current position
-
getLongPosition
long getLongPosition(int d) Return the current position in a given dimension.- Parameters:
d- dimension- Returns:
- dimension of current position
-