Package uk.ac.gda.api.camera
Interface CameraControl
- All Superinterfaces:
Findable,gda.observable.IObservable
- All Known Implementing Classes:
CameraControlForLiveStream,EigerOdinCameraControl,EpicsCameraControl,ExcaliburOdinCameraControl
An interface allowing access to basic camera operations
It was originally written to allow clients to control camera functions without having to export large objects such as area detectors over RMI.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclearRoi()voidDisables the processing filtervoidEnables the processing filterGet the camera acquire statedoubleGet acquire (exposure) timeReturn binning format of the camera e.g 1x1int[]Gets theImageModeof the cameraintGets the X dimension of imageintGets the Y dimension of imageintGets the number of imagesintGets the X-coordinate of the overlayintGets the Y-coordinate of the overlayint[]getRoi()shortGets the camera trigger modevoidResets the filtervoidsetAcquireTime(double acquiretime) Set acquire (exposure) timevoidsetBinningPixels(BinningFormat binningFormat) The amount ofvoidsetImageMode(ImageMode imageMode) Sets theImageModeof the cameravoidsetNumImages(int numImages) Sets the number of imagesvoidsetProcessingFilterType(int filterType) Selects the type of recursive filter to be used by the processing pluginvoidsetRoi(int left, int top, int width, int height) voidsetTriggerMode(short triggerMode) Sets the camera trigger modevoidStart acquiring datavoidStop acquiring dataMethods inherited from interface gda.observable.IObservable
addIObserver, deleteIObserver, deleteIObservers
-
Method Details
-
getAcquireTime
Get acquire (exposure) time- Returns:
- Acquire time in seconds
- Throws:
DeviceException
-
setAcquireTime
Set acquire (exposure) time- Parameters:
acquiretime- in seconds- Throws:
DeviceException
-
startAcquiring
Start acquiring data- Throws:
DeviceException
-
stopAcquiring
Stop acquiring data- Throws:
DeviceException
-
getAcquireState
Get the camera acquire state- Returns:
- acquire state
- Throws:
DeviceException
-
getBinningPixels
Return binning format of the camera e.g 1x1- Returns:
- binning format
- Throws:
DeviceException
-
setBinningPixels
The amount of- Parameters:
binningFormat-- Throws:
DeviceException
-
getFrameSize
- Returns:
- frame size
- Throws:
DeviceException
-
getRoi
- Returns:
- array of left, top, width, height
- Throws:
DeviceException
-
setRoi
- Parameters:
left-top-width-height-- Throws:
DeviceException
-
clearRoi
- Throws:
DeviceException
-
getOverlayCentreX
Gets the X-coordinate of the overlay- Returns:
- The X-coordinate of the overlay
- Throws:
DeviceException
-
getOverlayCentreY
Gets the Y-coordinate of the overlay- Returns:
- The Y-coordinate of the overlay
- Throws:
DeviceException
-
setImageMode
Sets theImageModeof the camera- Parameters:
imageMode-- Throws:
Exception
-
getImageMode
Gets theImageModeof the camera- Throws:
Exception
-
setTriggerMode
Sets the camera trigger mode- Parameters:
triggerMode- the camera specific trigger mode value- Throws:
Exception
-
getTriggerMode
Gets the camera trigger mode- Throws:
Exception
-
enableProcessingFilter
Enables the processing filter- Throws:
Exception
-
disableProcessingFilter
Disables the processing filter- Throws:
Exception
-
setProcessingFilterType
Selects the type of recursive filter to be used by the processing plugin- Throws:
Exception
-
resetFilter
Resets the filter- Throws:
Exception
-
getImageSizeX
Gets the X dimension of image- Throws:
DeviceException
-
getImageSizeY
Gets the Y dimension of image- Throws:
DeviceException
-
setNumImages
Sets the number of images- Throws:
Exception
-
getNumImages
Gets the number of images- Throws:
Exception
-