T
- public class PlanarRandomAccess1D<T extends NativeType<T>> extends PlanarRandomAccess<T>
RandomAccess
for a 1-dimensional PlanarImg
.sliceIndex, sliceSteps, type, typeIndex, width
position
n
Constructor and Description |
---|
PlanarRandomAccess1D(PlanarImg<T,?> container) |
Modifier and Type | Method and Description |
---|---|
void |
bck(int dim)
Move by -1 in one dimension.
|
void |
fwd(int dim)
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(Localizable localizable)
Move the element relative to its current location using an
Localizable as distance vector. |
void |
move(long[] distance)
Move the element relative to its current location using a long[] as
distance vector.
|
void |
setPosition(int[] position)
Set the position of the element.
|
void |
setPosition(int pos,
int dim)
Set the position of the element for one dimension.
|
void |
setPosition(Localizable localizable)
Place the element at the same location as a given
Localizable |
void |
setPosition(long[] position)
Set the position of the element.
|
copy, copyRandomAccess, get, getCurrentSliceIndex, move, setPosition
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localize
numDimensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setPositionAndGet, setPositionAndGet, setPositionAndGet
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, positionAsLongArray, positionAsPoint
localize, localize, localize, positionAsDoubleArray, positionAsRealPoint
numDimensions
public void fwd(int dim)
Positionable
fwd
in interface Positionable
fwd
in class PlanarRandomAccess<T extends NativeType<T>>
dim
- dimensionpublic void bck(int dim)
Positionable
bck
in interface Positionable
bck
in class PlanarRandomAccess<T extends NativeType<T>>
dim
- dimensionpublic void move(int distance, int d)
Positionable
move
in interface Positionable
move
in class PlanarRandomAccess<T extends NativeType<T>>
distance
- relative offset in dimension dd
- dimensionpublic void move(Localizable localizable)
Positionable
Localizable
as distance vector.move
in interface Positionable
move
in class PlanarRandomAccess<T extends NativeType<T>>
localizable
- relative offset, EuclideanSpace.numDimensions()
must be
≥ EuclideanSpace.numDimensions()
public void move(int[] distance)
Positionable
move
in interface Positionable
move
in class PlanarRandomAccess<T extends NativeType<T>>
distance
- relative offset, length must be ≥ EuclideanSpace.numDimensions()
public void move(long[] distance)
Positionable
move
in interface Positionable
move
in class PlanarRandomAccess<T extends NativeType<T>>
distance
- relative offset, length must be ≥ EuclideanSpace.numDimensions()
public void setPosition(int pos, int dim)
Positionable
setPosition
in interface Positionable
setPosition
in class PlanarRandomAccess<T extends NativeType<T>>
pos
- absolute position in dimension ddim
- dimensionpublic void setPosition(Localizable localizable)
Positionable
Localizable
setPosition
in interface Positionable
setPosition
in class PlanarRandomAccess<T extends NativeType<T>>
localizable
- absolute position, EuclideanSpace.numDimensions()
must be
≥ EuclideanSpace.numDimensions()
public void setPosition(int[] position)
Positionable
setPosition
in interface Positionable
setPosition
in class PlanarRandomAccess<T extends NativeType<T>>
position
- absolute position, length must be ≥
EuclideanSpace.numDimensions()
public void setPosition(long[] position)
Positionable
setPosition
in interface Positionable
setPosition
in class PlanarRandomAccess<T extends NativeType<T>>
position
- absolute position, length must be ≥
EuclideanSpace.numDimensions()
Copyright © 2015–2022 ImgLib2. All rights reserved.