|
| double | X [get] |
| |
| double | Y [get] |
| |
Definition at line 21 of file Microscope.cs.
◆ Stage() [1/2]
| BioImager.Stage.Stage |
( |
object | st | ) |
|
Definition at line 28 of file Microscope.cs.
29 {
30 if (Properties.Settings.Default.LibPath.Contains("MTB"))
31 {
33 x = d.X;
34 y = d.Y;
36 }
37 }
PointD GetPosition(bool update)
void UpdateSWLimit()
It gets the software limits of the microscope stage.
◆ Stage() [2/2]
| BioImager.Stage.Stage |
( |
| ) |
|
◆ GetPosition()
| PointD BioImager.Stage.GetPosition |
( |
bool | update | ) |
|
If the microscope is a Prior, get the position from the Prior SDK. If the microscope is a MTB, get the position from the MTB SDK. If the microscope is a Piezosystem, get the position from the Piezosystem SDK
- Parameters
-
| update | true if the position should be updated from the microscope, false if the position should be returned from the cache. |
- Returns
- A PointD object.
Definition at line 145 of file Microscope.cs.
146 {
147 if (Properties.Settings.Default.PMicroscope)
148 {
150 Microscope.pMicroscope.GetPosition(out pd,false);
151 return pd;
152 }
153 else
154 if (Properties.Settings.Default.PycroManager)
155 {
157 MicroManager.GetPosition(out pd, false);
158 return pd;
159 }
160 else
161 if (Properties.Settings.Default.LibPath.Contains("MTB"))
162 {
166 }
167 else if (Properties.Settings.Default.LibPath.Contains("Prio"))
168 {
169 return Microscope.sdk.GetPosition();
170 }
172 }
◆ GetPositionX()
| double BioImager.Stage.GetPositionX |
( |
bool | update | ) |
|
This function returns the X position of the mouse cursor
- Parameters
-
| update | If true, the position will be updated before returning the value. |
- Returns
- The position of the object in the X axis.
Definition at line 120 of file Microscope.cs.
121 {
123 return x;
124 }
◆ GetPositionY()
| double BioImager.Stage.GetPositionY |
( |
bool | update | ) |
|
GetPositionY() returns the Y coordinate of the current position of the mouse cursor
- Parameters
-
| update | If true, the position will be updated before returning the value. |
- Returns
- The position of the object in the Y axis.
Definition at line 131 of file Microscope.cs.
132 {
134 return y;
135 }
◆ MoveDown()
| void BioImager.Stage.MoveDown |
( |
double | m | ) |
|
Move the stage down by the specified amount of microns
- Parameters
-
| m | The amount to move the object by. |
Definition at line 186 of file Microscope.cs.
187 {
190 }
double GetPositionY(bool update)
void SetPositionY(double py)
◆ MoveLeft()
| void BioImager.Stage.MoveLeft |
( |
double | m | ) |
|
Move the stage left by the specified amount of microns
- Parameters
-
| m | The amount to move the object by. |
Definition at line 204 of file Microscope.cs.
205 {
208 }
double GetPositionX(bool update)
void SetPositionX(double px)
◆ MoveRight()
| void BioImager.Stage.MoveRight |
( |
double | m | ) |
|
Move the stage right by the specified amount of microns
- Parameters
-
| m | The amount to move the object by. |
Definition at line 195 of file Microscope.cs.
◆ MoveUp()
| void BioImager.Stage.MoveUp |
( |
double | m | ) |
|
Move the stage up by the specified amount of microns
- Parameters
-
| m | The amount of pixels to move the object up by. |
Definition at line 177 of file Microscope.cs.
◆ SetPosition()
| void BioImager.Stage.SetPosition |
( |
double | px, |
|
|
double | py ) |
The function sets the position of the stage to the given coordinates
- Parameters
-
| px | x position in microns |
| py | y-coordinate |
Definition at line 69 of file Microscope.cs.
70 {
71 if (Recorder.recordMicroscope)
72 Recorder.AddLine("Microscope.Stage.SetPosition(" + px + "," + py + ");");
73 x = px;
74 y = py;
75 if(Properties.Settings.Default.PMicroscope)
76 {
77 Microscope.pMicroscope.SetPosition(
new PointD(px, py));
78 }
79 else
80 if (Properties.Settings.Default.PycroManager)
81 {
82 MicroManager.SetPosition(
new PointD(px, py));
83 }
84 else
85 if (Properties.Settings.Default.LibPath.Contains("MTB"))
86 {
88 }
89 else if (Properties.Settings.Default.LibPath.Contains("Prio"))
90 {
91 Microscope.sdk.SetPosition(
new PointD(px, py));
92 }
93 if (App.viewer != null)
94 App.viewer.UpdateView(true);
95 }
static Command RunCommand(Command c)
◆ SetPositionX()
| void BioImager.Stage.SetPositionX |
( |
double | px | ) |
|
This function sets the position of the object to the given x and y coordinates
- Parameters
-
| px | The new x position of the object |
Definition at line 100 of file Microscope.cs.
101 {
102 x = px;
104 }
void SetPosition(double px, double py)
◆ SetPositionY()
| void BioImager.Stage.SetPositionY |
( |
double | py | ) |
|
This function sets the position of the object to the given x and y coordinates
- Parameters
-
| py | The y position of the object |
Definition at line 109 of file Microscope.cs.
◆ SetSWLimit()
| void BioImager.Stage.SetSWLimit |
( |
double | xmin, |
|
|
double | xmax, |
|
|
double | ymin, |
|
|
double | ymax ) |
It sets the limits of the stage movement
- Parameters
-
| xmin | minimum x value |
| xmax | the maximum x value |
| ymin | -0.0025 |
| ymax | -0.0015 |
Definition at line 230 of file Microscope.cs.
231 {
232 if (Properties.Settings.Default.LibPath.Contains("MTB"))
233 {
236 new double[] {xmin,xmax,ymin,ymax}));
237 }
238 if (Recorder.recordMicroscope)
239 Recorder.AddLine("Microscope.Focus.SetSWLimit(" + xmin + "," + xmax + "," + ymin + "," + ymax + ");");
240 }
◆ UpdateSWLimit()
| void BioImager.Stage.UpdateSWLimit |
( |
| ) |
|
It gets the software limits of the microscope stage.
Definition at line 211 of file Microscope.cs.
212 {
213 if (Properties.Settings.Default.LibPath.Contains("MTB"))
214 {
221 }
222 }
◆ maxX
| double BioImager.Stage.maxX |
|
static |
◆ maxY
| double BioImager.Stage.maxY |
|
static |
◆ minX
| double BioImager.Stage.minX |
|
static |
◆ minY
| double BioImager.Stage.minY |
|
static |
◆ moveWait
| int BioImager.Stage.moveWait = 250 |
Definition at line 45 of file Microscope.cs.
46 {
47 get
48 {
49 return x;
50 }
51 }
Definition at line 52 of file Microscope.cs.
53 {
54 get
55 {
56 return y;
57 }
58 }
The documentation for this class was generated from the following file: