public final class MultiStagePosition
extends java.lang.Object
Constructor and Description |
---|
MultiStagePosition()
Default constructor.
|
MultiStagePosition(java.lang.String xyStage,
double x,
double y,
java.lang.String zStage,
double z)
Convenient constructor where the motion system consists of one XY stage and one focus stage.
|
Modifier and Type | Method and Description |
---|---|
void |
add(StagePosition sp)
Add one stage position point
|
StagePosition |
get(int idx)
Return stage position based on index
|
StagePosition |
get(java.lang.String stageName)
Returns position for a specific stage.
|
java.lang.String |
getDefaultXYStage() |
java.lang.String |
getDefaultZStage() |
int |
getGridColumn()
Returns rectangular grid column.
|
int |
getGridRow()
Returns rectangular grid row.
|
java.lang.String |
getLabel()
Returns position label.
|
java.lang.String |
getProperty(java.lang.String key)
Returns property value for a given key (name)
|
java.lang.String[] |
getPropertyNames()
Return the array of property keys (names) associated with this position
|
double |
getX()
Returns "X" coordinate of the position.
|
double |
getY()
Returns "Y" coordinate of the position.
|
double |
getZ()
Returns "Z" - focus coordinate of the position.
|
static void |
goToPosition(MultiStagePosition msp,
mmcorej.CMMCore core_)
Moves all stages to the specified positions.
|
boolean |
hasProperty(java.lang.String key)
Checks if the position has a particular property
|
static MultiStagePosition |
newInstance(MultiStagePosition aMps)
Copy constructor.
|
void |
remove(StagePosition sp) |
void |
setDefaultXYStage(java.lang.String stage)
Defines which stage serves as the XY motion control device
|
void |
setDefaultZStage(java.lang.String stage)
Defines which stage serves as focus control
|
void |
setGridCoordinates(int row,
int col)
Sets grid parameters for the rectangular grid
|
void |
setLabel(java.lang.String lab)
Sets position label (such as well name, etc.)
|
void |
setProperty(java.lang.String key,
java.lang.String value)
Add a generalized property-value par to the position.
|
int |
size()
Number of stages.
|
public MultiStagePosition()
public MultiStagePosition(java.lang.String xyStage, double x, double y, java.lang.String zStage, double z)
xyStage
- namex
- - coordinate in micronsy
- - coordinate in micronszStage
- namez
- - focus position in micronspublic static MultiStagePosition newInstance(MultiStagePosition aMps)
aMps
- - another instance of the MultiStagePoswition classpublic void add(StagePosition sp)
public void remove(StagePosition sp)
public int size()
public StagePosition get(int idx)
idx
- - position indexpublic void setProperty(java.lang.String key, java.lang.String value)
public java.lang.String[] getPropertyNames()
public boolean hasProperty(java.lang.String key)
public java.lang.String getProperty(java.lang.String key)
public StagePosition get(java.lang.String stageName)
public java.lang.String getLabel()
public void setLabel(java.lang.String lab)
public void setDefaultZStage(java.lang.String stage)
public java.lang.String getDefaultZStage()
public java.lang.String getDefaultXYStage()
public void setDefaultXYStage(java.lang.String stage)
public static void goToPosition(MultiStagePosition msp, mmcorej.CMMCore core_) throws java.lang.Exception
core_
- - microscope APIjava.lang.Exception
public double getX()
public double getY()
public double getZ()
public void setGridCoordinates(int row, int col)
row
- col
- public int getGridRow()
public int getGridColumn()