public class PixelPosition extends ChannelPosition
Modifier and Type | Field and Description |
---|---|
static char |
X_ID |
static char |
Y_ID |
C_ID_0, C_ID_1
T_ID, Z_ID
Constructor and Description |
---|
PixelPosition() |
PixelPosition(int t,
int z,
int c,
int x,
int y) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ImagePosition o)
Compare to another ImagePosition with following priority T -> Z -> C
|
void |
copyFrom(PixelPosition pp) |
int |
get(char ident) |
char |
getFirstEmptyPos()
Return first undefined position (T -> Z -> C -> Y -> X)
|
char |
getLastEmptyPos()
Return last undefined position (X -> Y -> C -> Z -> T)
|
int |
getX() |
int |
getY() |
boolean |
isSamePos(PixelPosition pp,
char posIdent) |
boolean |
isUndefined() |
boolean |
isValidIdent(char ident) |
static boolean |
isValidIdentStatic(char ident) |
boolean |
isXUndefined() |
boolean |
isYUndefined() |
void |
set(int t,
int z,
int c,
int x,
int y) |
void |
setX(int x) |
void |
setY(int y) |
void |
switchLeft() |
void |
switchRight() |
alternateCompareTo, copyFrom, getAlternateFirstEmptyPos, getAlternateLastEmptyPos, getC, isCUndefined, isSamePos, set, setC
copyFrom, getT, getZ, isSamePos, isTUndefined, isZUndefined, set, setT, setZ
public static final char X_ID
public static final char Y_ID
public PixelPosition(int t, int z, int c, int x, int y)
t
- z
- c
- public PixelPosition()
public void copyFrom(PixelPosition pp)
public void switchLeft()
switchLeft
in class ChannelPosition
public void switchRight()
switchRight
in class ChannelPosition
public int getX()
public void setX(int x)
x
- the x to setpublic int getY()
public void setY(int y)
y
- the y to setpublic void set(int t, int z, int c, int x, int y)
public int get(char ident)
get
in class ChannelPosition
public static boolean isValidIdentStatic(char ident)
public boolean isValidIdent(char ident)
isValidIdent
in class ChannelPosition
public boolean isXUndefined()
public boolean isYUndefined()
public boolean isUndefined()
isUndefined
in class ChannelPosition
public char getFirstEmptyPos()
getFirstEmptyPos
in class ChannelPosition
public char getLastEmptyPos()
getLastEmptyPos
in class ChannelPosition
public boolean isSamePos(PixelPosition pp, char posIdent)
public int compareTo(ImagePosition o)
ChannelPosition
compareTo
in interface java.lang.Comparable<ImagePosition>
compareTo
in class ChannelPosition