-
Notifications
You must be signed in to change notification settings - Fork 130
MMDevice: adds functions to XYStage and Stage to let them signal whether they use callbacks #808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 6 commits
24c22a2
ea7e26e
ef6f96a
b3e710f
ec73c59
b7926b5
ca8573d
d16efd5
ec8d201
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,7 +28,7 @@ | |
| // Header version | ||
| // If any of the class definitions changes, the interface version | ||
| // must be incremented | ||
| #define DEVICE_INTERFACE_VERSION 74 | ||
| #define DEVICE_INTERFACE_VERSION 75 | ||
| /////////////////////////////////////////////////////////////////////////////// | ||
|
|
||
| // N.B. | ||
|
|
@@ -603,6 +603,15 @@ namespace MM { | |
| virtual int SetOrigin() = 0; | ||
| virtual int GetLimits(double& lower, double& upper) = 0; | ||
|
|
||
| /** | ||
| * @brief Stages can use the OnStagePositionChanged callback to signal | ||
| * updates about their position. Some adapters do so, others do not, | ||
| * in which case the UI code should use polling. This function signals whether | ||
| * the device adapters uses callbacks, so that the UI knows it does not need | ||
| * to poll this device | ||
| */ | ||
| virtual bool UsesOnStagePositionChanged() = 0; | ||
|
||
|
|
||
| /** | ||
| * @brief Return the focus direction. | ||
| * | ||
|
|
@@ -709,6 +718,15 @@ namespace MM { | |
| virtual int Home() = 0; | ||
| virtual int Stop() = 0; | ||
|
|
||
| /** | ||
| * @brief XY stages can use the OnXYStagePositionChanged callback to signal | ||
| * updates about their position. Some stage adapters do so, others do not, | ||
| * in which case the UI code can use polling. This function signals whether | ||
| * the device adapters uses callbacks, so that the UI knows it does not need | ||
| * to poll this device | ||
| */ | ||
| virtual bool UsesOnXYStagePositionChanged() = 0; | ||
nicost marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| /** | ||
| * @brief Define the current position as the (hardware) origin (0, 0). | ||
| */ | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.