Package gda.images.camera
Class MxOpticalCameraBase
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.images.camera.CameraBase
gda.images.camera.MxOpticalCameraBase
- All Implemented Interfaces:
Device,Configurable,Findable,Camera,ImageScaleProvider,gda.observable.IObservable
- Direct Known Subclasses:
MxOpticalCamera,MxOpticalCameraNoZoom,MxOpticalCameraZoomPositioner
-
Field Summary
Fields inherited from class gda.images.camera.CameraBase
cameraName, cameraZoomIndexStatus, imageFile, UNSET_ARRAY_INDEXFields inherited from class gda.device.DeviceBase
DEFAULT_PROTECTION_LEVEL_PROPERTYFields inherited from interface gda.images.camera.Camera
FOCUS_SET, IMAGE_UPDATED, ZOOM_SET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final voidapplyCameraZoomSettings(CameraZoomLevels zoomSettings) Sets the Camera zoom levels, an input of null clears the existing settingsvoidcaptureImage(String imageName) Writes the current image to disk.voidvoidfindNearestZoomLevel(double zoom) doublegetFocus()double[]getImage()Captures and returns an image.doubleget image resolution in X direction in micronsPerPixeldoubleget image resolution in Y direction in micronsPerPixelprotected doublebooleanvoidvoidsetFocus(double focus) Sets the focus level.voidsetVideoReceiver(VideoReceiver<Image> videoReceiver) Methods inherited from class gda.images.camera.CameraBase
areSimilar, getCameraName, getImageFileName, getZoomIndex, selectZoomAt, setImageFile, setZoom, setZoomIndex, updateCameraToIndexedSettingsMethods inherited from class gda.device.DeviceBase
addIObserver, close, deleteIObserver, deleteIObservers, getAttribute, getName, getProtectionLevel, isBeingObserved, isConfigureAtStartup, notifyIObservers, setAttribute, setConfigureAtStartup, setName, setProtectionLevelMethods inherited from class gda.factory.ConfigurableBase
configure, isConfigured, reconfigure, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.images.camera.Camera
getZoom, getZoomLevelsMethods inherited from interface gda.factory.Configurable
configure, isConfigureAtStartup, isConfigured, reconfigureMethods inherited from interface gda.device.Device
close, getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Constructor Details
-
MxOpticalCameraBase
public MxOpticalCameraBase()
-
-
Method Details
-
applyCameraZoomSettings
Sets the Camera zoom levels, an input of null clears the existing settings- Parameters:
zoomSettings-
-
getVideoReceiver
-
setVideoReceiver
-
hasZoomAxis
public boolean hasZoomAxis() -
captureImage
Description copied from interface:CameraWrites the current image to disk.Filename should be the full path of the file to create. If it is null then the file listed in the configuration file will be overwritten.
- Parameters:
imageName-- Throws:
DeviceException
-
closeConnection
public void closeConnection() -
createConnection
public void createConnection() -
resetConnection
public void resetConnection() -
getImage
Description copied from interface:CameraCaptures and returns an image.- Throws:
DeviceException
-
getFocus
- Returns:
- double - current focus level
- Throws:
DeviceException
-
setFocus
Description copied from interface:CameraSets the focus level. Number must be a member of the list returned by getFcouslevels.- Parameters:
focus-- Throws:
DeviceException
-
getFocusLevels
- Returns:
- double[] - the possible focus levels
- Throws:
DeviceException
-
getMicronsPerXPixel
public double getMicronsPerXPixel()get image resolution in X direction in micronsPerPixel- Returns:
- micronsPerXPixel
-
getMicronsPerYPixel
public double getMicronsPerYPixel()get image resolution in Y direction in micronsPerPixel- Returns:
- micronsPerYPixel
-
findNearestZoomLevel
- Throws:
DeviceException
-
getZoomSimilarityTolerance
protected double getZoomSimilarityTolerance()- Specified by:
getZoomSimilarityTolerancein classCameraBase
-
listZoomSettings
-