T
- public abstract class AbstractOutOfBoundsValue<T> extends AbstractLocalizable implements OutOfBounds<T>
Modifier and Type | Field and Description |
---|---|
protected long[] |
dimension |
protected boolean[] |
dimIsOutOfBounds |
protected boolean |
isOutOfBounds |
protected long[] |
max |
protected long[] |
min |
protected RandomAccess<T> |
sampler |
position
n
Modifier | Constructor and Description |
---|---|
protected |
AbstractOutOfBoundsValue(AbstractOutOfBoundsValue<T> outOfBounds) |
|
AbstractOutOfBoundsValue(F f) |
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.
|
boolean |
isOutOfBounds()
True if located out of image bounds.
|
void |
move(int[] distance)
Move the element relative to its current location using an int[] as
distance vector.
|
void |
move(int distance,
int dim)
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 |
move(long distance,
int dim)
Move the element in one dimension for some distance.
|
void |
setPosition(int[] position)
Set the position of the element.
|
void |
setPosition(int position,
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.
|
void |
setPosition(long position,
int dim)
Set the position of the element for one dimension.
|
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localize
numDimensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
copy
copyRandomAccess, setPositionAndGet, setPositionAndGet, setPositionAndGet
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, positionAsLongArray, positionAsPoint
localize, localize, localize, positionAsDoubleArray, positionAsRealPoint
numDimensions
protected final RandomAccess<T> sampler
protected final long[] dimension
protected final long[] min
protected final long[] max
protected final boolean[] dimIsOutOfBounds
protected boolean isOutOfBounds
protected AbstractOutOfBoundsValue(AbstractOutOfBoundsValue<T> outOfBounds)
public AbstractOutOfBoundsValue(F f)
public boolean isOutOfBounds()
Bounded
isOutOfBounds
in interface Bounded
public void fwd(int dim)
Positionable
fwd
in interface Positionable
dim
- dimensionpublic void bck(int dim)
Positionable
bck
in interface Positionable
dim
- dimensionpublic void move(long distance, int dim)
Positionable
move
in interface Positionable
distance
- relative offset in dimension ddim
- dimensionpublic void move(int distance, int dim)
Positionable
move
in interface Positionable
distance
- relative offset in dimension ddim
- dimensionpublic void move(Localizable localizable)
Positionable
Localizable
as distance vector.move
in interface Positionable
localizable
- relative offset, EuclideanSpace.numDimensions()
must be
≥ EuclideanSpace.numDimensions()
public void move(int[] distance)
Positionable
move
in interface Positionable
distance
- relative offset, length must be ≥ EuclideanSpace.numDimensions()
public void move(long[] distance)
Positionable
move
in interface Positionable
distance
- relative offset, length must be ≥ EuclideanSpace.numDimensions()
public void setPosition(long position, int dim)
Positionable
setPosition
in interface Positionable
position
- absolute position in dimension ddim
- dimensionpublic void setPosition(int position, int dim)
Positionable
setPosition
in interface Positionable
position
- absolute position in dimension ddim
- dimensionpublic void setPosition(Localizable localizable)
Positionable
Localizable
setPosition
in interface Positionable
localizable
- absolute position, EuclideanSpace.numDimensions()
must be
≥ EuclideanSpace.numDimensions()
public void setPosition(int[] position)
Positionable
setPosition
in interface Positionable
position
- absolute position, length must be ≥
EuclideanSpace.numDimensions()
public void setPosition(long[] position)
Positionable
setPosition
in interface Positionable
position
- absolute position, length must be ≥
EuclideanSpace.numDimensions()
Copyright © 2015–2022 ImgLib2. All rights reserved.