public abstract class AbstractLocalizable extends AbstractEuclideanSpace implements Localizable
Localizable interface using a
long[] array to maintain position.| Modifier and Type | Field and Description |
|---|---|
protected long[] |
position
The
Localizable interface is implemented using the position
stored here. |
n| Modifier | Constructor and Description |
|---|---|
|
AbstractLocalizable(int n) |
protected |
AbstractLocalizable(long[] 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 long[] position
Localizable interface is implemented using the position
stored here. Positionable subclasses, such as Point,
modify this array.public AbstractLocalizable(int n)
n - number of dimensions.protected AbstractLocalizable(long[] 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.