public class CellCntrMarker extends Object
In the MTB Cell Counter in addition to a position a marker also owns a shape, e.g., a region contour.
Modifier and Type | Field and Description |
---|---|
private boolean |
isActive
Flag to indicate if marker is active, by default true.
|
private CellCntrMarkerShape |
shape
(Optional) shape of marker.
|
private int |
x
x-coordinate of marker.
|
private int |
y
y-coordinate of marker.
|
private int |
z
z-coordinate of marker.
|
Modifier | Constructor and Description |
---|---|
private |
CellCntrMarker()
Creates a new instance of marker class.
|
|
CellCntrMarker(int xc,
int yc,
int zc,
CellCntrMarkerShape s)
Constructor with given coordinates and shape.
|
Modifier and Type | Method and Description |
---|---|
CellCntrMarkerShape |
getShape()
Get shape of marker.
|
int |
getX()
Get x-coordinate.
|
int |
getY()
Get y-coordinate.
|
int |
getZ()
Get z-coordinate.
|
boolean |
isActive()
Check if marker is active.
|
void |
resetShape()
Delete shape object, i.e. reset to null.
|
void |
setActive()
Set marker active.
|
void |
setInactive()
Set marker inactive.
|
void |
setShape(CellCntrMarkerShape s)
Set shape of marker.
|
void |
setX(int xc)
Set x-coordinate of marker.
|
void |
setY(int yc)
Set y-coordinate of marker.
|
void |
setZ(int zc)
Set z-coordinate of marker.
|
private int x
private int y
private int z
private CellCntrMarkerShape shape
private boolean isActive
private CellCntrMarker()
public CellCntrMarker(int xc, int yc, int zc, CellCntrMarkerShape s)
xc
- x-coordinate of marker.yc
- y-coordinate of marker.zc
- z-coordinate of marker.s
- Shape of marker.public int getX()
public void setX(int xc)
xc
- New x-coordinate.public int getY()
public void setY(int yc)
yc
- New y-coordinate.public int getZ()
public void setZ(int zc)
zc
- New z-coordinate.public CellCntrMarkerShape getShape()
public void setShape(CellCntrMarkerShape s)
s
- New shape object.public void resetShape()
public boolean isActive()
public void setActive()
public void setInactive()
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.