public abstract class AbstractLocalizableInt extends AbstractEuclideanSpace implements Localizable
Localizable interface using an
int[] array to maintain position.
This is identical to AbstractLocalizable, except that the position is
limited to Integer.MAX_VALUE in every dimension.
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
position
The
Localizable interface is implemented using the position
stored here. |
n| Modifier | Constructor and Description |
|---|---|
|
AbstractLocalizableInt(int n) |
protected |
AbstractLocalizableInt(int[] position)
Protected constructor that re-uses the passed position array.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getDoublePosition(int d)
Return the current position in a given dimension.
|
float |
getFloatPosition(int d)
Return the current position in a given dimension.
|
int |
getIntPosition(int d)
Return the current position in a given dimension.
|
long |
getLongPosition(int d)
Return the current position in a given dimension.
|
void |
localize(double[] pos)
Write the current position into the passed array.
|
void |
localize(float[] pos)
Write the current position into the passed array.
|
void |
localize(int[] pos)
Write the current position into the passed array.
|
void |
localize(long[] pos)
Write the current position into the passed array.
|
numDimensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitlocalize, positionAsLongArray, positionAsPointlocalize, positionAsDoubleArray, positionAsRealPointnumDimensionsprotected final int[] position
Localizable interface is implemented using the position
stored here. Positionable subclasses, such as Point,
modify this array.public AbstractLocalizableInt(int n)
n - number of dimensions.protected AbstractLocalizableInt(int[] position)
position - position array to use.public void localize(float[] pos)
RealLocalizablelocalize in interface RealLocalizablepos - receives current positionpublic void localize(double[] pos)
RealLocalizablelocalize in interface RealLocalizablepos - receives current positionpublic void localize(int[] pos)
Localizablelocalize in interface Localizablepos - receives current positionpublic void localize(long[] pos)
Localizablelocalize in interface Localizablepos - receives current positionpublic float getFloatPosition(int d)
RealLocalizablegetFloatPosition in interface LocalizablegetFloatPosition in interface RealLocalizabled - dimensionpublic double getDoublePosition(int d)
RealLocalizablegetDoublePosition in interface LocalizablegetDoublePosition in interface RealLocalizabled - dimensionpublic int getIntPosition(int d)
LocalizablegetIntPosition in interface Localizabled - dimensionpublic long getLongPosition(int d)
LocalizablegetLongPosition in interface Localizabled - dimensionCopyright © 2015–2022 ImgLib2. All rights reserved.