Package net.imglib2
Interface Positionable
- All Superinterfaces:
EuclideanSpace
- All Known Subinterfaces:
OutOfBounds<T>,RandomAccess<T>,RealOutOfBounds<T>,RealPositionable,RealRandomAccess<T>
- All Known Implementing Classes:
AbstractConvertedRandomAccess,AbstractConvertedRealRandomAccess,AbstractLongListImg.LongListRandomAccess,AbstractOutOfBoundsMirror,AbstractOutOfBoundsValue,AbstractPositionableTransform,AbstractProjector2D,ArrayImgXYByteProjector,ArrayImgXYShortProjector,ArrayRandomAccess,CellRandomAccess,CompositeView.CompositeRandomAccess,CompositeXYProjector,CompositeXYRandomAccessibleProjector,ConvertedRandomAccess,ConvertedRealRandomAccess,Floor,FloorInterpolator,FloorOffset,FullSourceMapMixedRandomAccess,FullSourceMapSlicingRandomAccess,HyperSlice.HyperSliceRandomAccess,HyperSlicesView.HyperSlicesViewRandomAccess,InverseDistanceWeightingInterpolator,IterableIntervalProjector2D,LanczosInterpolator,ListRandomAccess,MixedRandomAccess,NearestNeighborInterpolator,NearestNeighborSearchInterpolator,NLinearInterpolator,NLinearInterpolator1D,NLinearInterpolator2D,NLinearInterpolator3D,NLinearInterpolatorARGB,NtreeRandomAccess,OutOfBoundsBorder,OutOfBoundsConstantValue,OutOfBoundsMirrorDoubleBoundary,OutOfBoundsMirrorExpWindowing,OutOfBoundsMirrorSingleBoundary,OutOfBoundsPeriodic,OutOfBoundsRandomValue,PlanarImgXYByteProjector,PlanarImgXYShortProjector,PlanarRandomAccess,PlanarRandomAccess1D,Point,RandomAccessibleOnRealRandomAccessible.RandomAccessOnRealRandomAccessible,RandomAccessiblePair.RandomAccess,RandomAccessibleProjector2D,RealOutOfBoundsRealRandomAccess,RealPoint,Round,SamplingProjector2D,SlicingRandomAccess,StackView.DefaultRA,StackView.MoveAllSlicesRA,SubsampleView.SubsampleRandomAccess,TransformRandomAccess,TranslationRandomAccess,Volatile2DRandomAccessibleProjector,WriteConvertedRandomAccess
An element that can be positioned in n-dimensional discrete space.
- Author:
- Stephan Preibisch, Stephan Saalfeld, Tobias Pietzsch
-
Method Summary
Modifier and TypeMethodDescriptionvoidbck(int d) Move by -1 in one dimension.voidfwd(int d) Move by 1 in one dimension.voidmove(int[] distance) Move the element relative to its current location using an int[] as distance vector.voidmove(int distance, int d) Move the element in one dimension for some distance.voidmove(long[] distance) Move the element relative to its current location using a long[] as distance vector.voidmove(long distance, int d) Move the element in one dimension for some distance.voidmove(Localizable localizable) Move the element relative to its current location using anLocalizableas distance vector.voidsetPosition(int[] position) Set the position of the element.voidsetPosition(int position, int d) Set the position of the element for one dimension.voidsetPosition(long[] position) Set the position of the element.voidsetPosition(long position, int d) Set the position of the element for one dimension.voidsetPosition(Localizable localizable) Place the element at the same location as a givenLocalizableMethods inherited from interface net.imglib2.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 dd- dimension
-
move
void move(long distance, int d) Move the element in one dimension for some distance.- Parameters:
distance- relative offset in dimension dd- dimension
-
move
Move the element relative to its current location using anLocalizableas distance vector.- Parameters:
localizable- 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
Place the element at the same location as a givenLocalizable- Parameters:
localizable- 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 dd- dimension
-
setPosition
void setPosition(long position, int d) Set the position of the element for one dimension.- Parameters:
position- absolute position in dimension dd- dimension
-