public class StagePosition
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
numAxes
Deprecated.
Use
set1DPosition(java.lang.String, double) or set2DPosition(java.lang.String, double, double) to set;
use getNumberOfStageAxes() , is1DStagePosition() , or
is2DStagePosition() to access. |
java.lang.String |
stageName
Deprecated.
Use
set1DPosition(java.lang.String, double) or set2DPosition(java.lang.String, double, double) to set;
use getStageDeviceLabel() to access. |
double |
x
Deprecated.
Use methods instead.
|
double |
y
Deprecated.
Use methods instead.
|
double |
z
Deprecated.
|
Constructor and Description |
---|
StagePosition()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static StagePosition |
create1D(java.lang.String stageDeviceLabel,
double z)
Creates a new StapePosition for a 1 axis drive.
|
static StagePosition |
create2D(java.lang.String stageDeviceLabel,
double x,
double y)
Creates a new StapePosition for a 2 axis drive.
|
boolean |
equals(java.lang.Object alt)
Compare us against the provided StagePosition and return true only if
we are equal in all respects.
|
static StagePosition |
fromPropertyMap(PropertyMap pmap)
Returns the given PrropertyMap as a StagePosition.
|
double |
get1DPosition() |
double |
get2DPositionX() |
double |
get2DPositionY() |
int |
getNumberOfStageAxes() |
java.lang.String |
getStageDeviceLabel() |
java.lang.String |
getVerbose()
Verbose description of this StagePosition.
|
int |
hashCode() |
boolean |
is1DStagePosition() |
boolean |
is2DStagePosition() |
static StagePosition |
newInstance(StagePosition aPos)
Creates a copy of a StagePosition object.
|
void |
set1DPosition(java.lang.String stageDeviceLabel,
double z)
Sets the position of a stage device in this StagePosition instance.
|
void |
set2DPosition(java.lang.String stageDeviceLabel,
double x,
double y)
Sets the position of an XY stage device in this StagePosition instance.
|
PropertyMap |
toPropertyMap()
Returns this StagePosition instance as a PropertyMap.
|
java.lang.String |
toString() |
@Deprecated public double x
@Deprecated public double y
@Deprecated public double z
@Deprecated public java.lang.String stageName
set1DPosition(java.lang.String, double)
or set2DPosition(java.lang.String, double, double)
to set;
use getStageDeviceLabel()
to access.@Deprecated public int numAxes
set1DPosition(java.lang.String, double)
or set2DPosition(java.lang.String, double, double)
to set;
use getNumberOfStageAxes()
, is1DStagePosition()
, or
is2DStagePosition()
to access.@Deprecated public StagePosition()
create1D(java.lang.String, double)
or create2D(java.lang.String, double, double)
instead.public static StagePosition create1D(java.lang.String stageDeviceLabel, double z)
stageDeviceLabel
- name of the stage/drivez
- positionpublic static StagePosition create2D(java.lang.String stageDeviceLabel, double x, double y)
stageDeviceLabel
- name of the stage/drivex
- position-xy
- position-ypublic static StagePosition newInstance(StagePosition aPos)
aPos
- StagePosition to be copied. Should not be null/public void set2DPosition(java.lang.String stageDeviceLabel, double x, double y)
stageDeviceLabel
- String identifying the stagex
- New x positiony
- New Y positionpublic void set1DPosition(java.lang.String stageDeviceLabel, double z)
stageDeviceLabel
- String identifying the stagez
- New positionpublic java.lang.String getStageDeviceLabel()
public int getNumberOfStageAxes()
public boolean is2DStagePosition()
public boolean is1DStagePosition()
public double get2DPositionX()
public double get2DPositionY()
public double get1DPosition()
public java.lang.String getVerbose()
public boolean equals(java.lang.Object alt)
equals
in class java.lang.Object
alt
- Other StagePosition to compare against.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public PropertyMap toPropertyMap()
public static StagePosition fromPropertyMap(PropertyMap pmap)
pmap
- Input PropertyMap