Package gda.images.camera
Class MxOpticalCamera
java.lang.Object
gda.factory.ConfigurableBase
gda.factory.FindableConfigurableBase
gda.device.DeviceBase
gda.images.camera.CameraBase
gda.images.camera.MxOpticalCameraBase
gda.images.camera.MxOpticalCamera
- All Implemented Interfaces:
Device,Configurable,Findable,Camera,ImageScaleProvider,gda.observable.IObservable,org.springframework.beans.factory.InitializingBean
@ServiceInterface(Camera.class)
public final class MxOpticalCamera
extends MxOpticalCameraBase
implements org.springframework.beans.factory.InitializingBean
-
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 TypeMethodDescriptionvoidvoidDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.doublegetZoom()double[]voidTo enable re-reading of the zoom levels file.voidselectZoomAt(int index) Sets the zoom level via an index, based on array values (seeCamera.getZoomLevels()):voidsetCamZoomLevelPositioner(EnumPositionerBase camZoomLevelPositioner) voidsetZoomLevelsFileName(String zoomLevelsFileName) voidsetZoomScannable(Scannable zoomScannable) Sets the scannable that controls the camera zoom.protected voidupdateCameraToIndexedSettings(int verifiedIndex) Invoked (indirectly) byCameraBase.setZoom(double)for indexed zoom levels,Methods inherited from class gda.images.camera.MxOpticalCameraBase
applyCameraZoomSettings, captureImage, closeConnection, createConnection, findNearestZoomLevel, getFocus, getFocusLevels, getImage, getMicronsPerXPixel, getMicronsPerYPixel, getVideoReceiver, getZoomSimilarityTolerance, hasZoomAxis, listZoomSettings, resetConnection, setFocus, setVideoReceiverMethods inherited from class gda.images.camera.CameraBase
areSimilar, getCameraName, getImageFileName, getZoomIndex, setImageFile, setZoom, setZoomIndexMethods 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
isConfigured, setConfiguredMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gda.factory.Configurable
isConfigureAtStartup, isConfiguredMethods inherited from interface gda.device.Device
close, getAttribute, getProtectionLevel, setAttribute, setProtectionLevelMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Constructor Details
-
MxOpticalCamera
public MxOpticalCamera()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
getZoomLevels
public double[] getZoomLevels()- Specified by:
getZoomLevelsin interfaceCamera- Returns:
- double[] - the possible zoom levels
-
configure
public void configure()Description copied from class:ConfigurableBaseDefault implementation for classes that do not have to do any specific configuration.
Classes that do their own configuration should *not* call this superclass function, as it may cause the object to appear configured before it really is.- Specified by:
configurein interfaceConfigurable- Overrides:
configurein classConfigurableBase
-
reconfigure
public void reconfigure()To enable re-reading of the zoom levels file. Re-initialisation of values and states.Moved from Reconfigurable which has been deleted
- Specified by:
reconfigurein interfaceConfigurable- Overrides:
reconfigurein classConfigurableBase- See Also:
-
getZoom
- Specified by:
getZoomin interfaceCamera- Returns:
- double - current zoom level
- Throws:
DeviceException
-
selectZoomAt
Description copied from interface:CameraSets the zoom level via an index, based on array values (seeCamera.getZoomLevels()):- Specified by:
selectZoomAtin interfaceCamera- Overrides:
selectZoomAtin classCameraBase- Parameters:
index- array index of new zoom level, ignored if out of range- Throws:
DeviceException
-
setZoomScannable
Sets the scannable that controls the camera zoom.- Parameters:
zoomScannable- the zoom scannable
-
setZoomLevelsFileName
-
getCamZoomLevelPositioner
-
setCamZoomLevelPositioner
-
updateCameraToIndexedSettings
Description copied from class:CameraBaseInvoked (indirectly) byCameraBase.setZoom(double)for indexed zoom levels,- Specified by:
updateCameraToIndexedSettingsin classCameraBase- Parameters:
verifiedIndex- settings index; already verified to lie within range- Throws:
DeviceException
-