public interface AutoFocusDeviceInternal extends DeviceInternal
Modifier and Type | Method and Description |
---|---|
double |
getCurrentScore()
Returns the current focus score
|
double |
getLastScore()
Returns the last focus score.
|
double |
getOffset()
Returns the current offset.
|
boolean |
isEnabled()
Returns true if the autofocus is enabled.
|
boolean |
isLocked()
Returns true if auto-focus is locked.
|
void |
runFullFocus(int accessID)
Runs a full focus search.
|
void |
runIncrementalFocus(int accessID)
Runs an incremental focus search.
|
void |
setEnabled(boolean enable,
int accessID)
Enables or disables the auto-focus device.
|
void |
setOffset(double offset,
int accessID)
Sets the current offset.
|
getDeviceID, getDriverID, getEditableProperties, getExplicitDelay, getInitializationTime, getLibraryID, getProperties, getProperty, getType, setExplicitDelay, waitForDevice
double getLastScore() throws MicroscopeException
MicroscopeException
double getCurrentScore() throws MicroscopeException
MicroscopeException
void setEnabled(boolean enable, int accessID) throws MicroscopeException, MicroscopeLockedException
enable
- True, if focus should be engabled.accessID
- The access ID of the current microscope object. If the microscope is locked with a different accessID, a MicroscopeLockedException is thrown.MicroscopeException
MicroscopeLockedException
boolean isEnabled() throws MicroscopeException
MicroscopeException
boolean isLocked() throws MicroscopeException
MicroscopeException
void runFullFocus(int accessID) throws MicroscopeException, MicroscopeLockedException
accessID
- The access ID of the current microscope object. If the microscope is locked with a different accessID, a MicroscopeLockedException is thrown.MicroscopeException
MicroscopeLockedException
void runIncrementalFocus(int accessID) throws MicroscopeException, MicroscopeLockedException
accessID
- The access ID of the current microscope object. If the microscope is locked with a different accessID, a MicroscopeLockedException is thrown.MicroscopeException
MicroscopeLockedException
void setOffset(double offset, int accessID) throws MicroscopeException, MicroscopeLockedException
offset
- Offset to set.accessID
- The access ID of the current microscope object. If the microscope is locked with a different accessID, a MicroscopeLockedException is thrown.MicroscopeException
MicroscopeLockedException
double getOffset() throws MicroscopeException
MicroscopeException