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) |
double |
get1DPosition() |
double |
get2DPositionX() |
double |
get2DPositionY() |
int |
getNumberOfStageAxes() |
java.lang.String |
getStageDeviceLabel() |
java.lang.String |
getVerbose() |
int |
hashCode() |
boolean |
is1DStagePosition() |
boolean |
is2DStagePosition() |
static StagePosition |
newInstance(StagePosition aPos) |
void |
set1DPosition(java.lang.String stageDeviceLabel,
double z) |
void |
set2DPosition(java.lang.String stageDeviceLabel,
double x,
double y) |
PropertyMap |
toPropertyMap() |
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
- public void set2DPosition(java.lang.String stageDeviceLabel, double x, double y)
public void set1DPosition(java.lang.String stageDeviceLabel, double z)
public 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)