Package de.pco.sdk
Class Sdk
java.lang.Object
de.pco.sdk.Sdk
public class Sdk extends Object
Class that wraps for Java the basic C functions of the pco.sdk
- Author:
- PCO
-
Constructor Summary
Constructors Constructor Description Sdk()Constructor, loads the necessary DLLs -
Method Summary
Modifier and Type Method Description voidarmCamera()Wrapped PCO_ArmCamera function.voidcloseCamera()Wrapped PCO_CloseCamera function.booleanequals(Object obj)protected voidfinalize()AcquireModegetAcquireMode()Wrapped PCO_GetAcquireMode function.BinninggetBinning()Wrapped PCO_GetBinning function.BitAlignmentgetBitAlignment()Wrapped PCO_GetBitAlignment function.PcoDescriptiongetCameraDescription()Wrapped PCO_GetCameraDescription function.longgetCameraHandle()C pointer of the camera, currently opened in this Sdk class by openCamera or openCameraEx functionsGetCameraHealthStatusReturngetCameraHealthStatus()Wrapped PCO_GetCameraHealthStatus function.StringgetCameraName()Wrapped PCO_GetCameraName function.GetCameraTypeReturngetCameraType()Wrapped PCO_GetCameraType function.GetDelayExposureTimeReturngetDelayExposureTime()Wrapped PCO_GetDelayExposureTime function.OnOffEnumgetDoubleImageMode()Wrapped PCO_GetDoubleImageMode function.WarninggetLastCallWarning()If the last call of a native function of the current Sdk object returned a Warning, it can be obtained from hereOnOffEnumgetMetaDataMode()Wrapped PCO_GetMetaDataMode function.longgetPixelRate()Wrapped PCO_GetPixelRate function.OnOffEnumgetRecordingState()Wrapped PCO_GetRecordingState function.RoigetRoi()Wrapped PCO_GetRoi function.GetSizesReturngetSizes()Wrapped PCO_GetSizes function.GetTemperatureReturngetTemperature()Wrapped PCO_GetTemperature function.TimestampModegetTimestampMode()Wrapped PCO_GetTimestampMode function.TriggerModegetTriggerMode()Wrapped PCO_GetTriggerMode function.inthashCode()longopenCamera()Wrapped PCO_OpenCamera function.voidopenCameraEx(Interface iface, int cameraNumber)Wrapped PCO_OpenCameraEx function.voidresetLib()Wrapped PCO_ResetLib function.voidresetSettingsToDefault()Wrapped PCO_ResetSettingsToDefault function.voidsetAcquireMode(AcquireMode acquireMode)Wrapped PCO_SetAcquireMode function.voidsetBinning(byte binningX, byte binningY)Wrapped PCO_SetBinning function.voidsetBitAlignment(BitAlignment bitAlignment)Wrapped PCO_SetBitAlignment function.voidsetDelayExposureTime(long delay, long exposure, Timebase delayTimebase, Timebase exposureTimebase)Wrapped PCO_SetDelayExposureTime function.voidsetDoubleImageMode(OnOffEnum doubleImage)Wrapped PCO_SetDoubleImageMode function.voidsetMetaDataMode(OnOffEnum mode)Wrapped PCO_SetMetaDataMode function.voidsetPixelRate(long pixelRate)Wrapped PCO_SetPixelRate function.voidsetRecordingState(OnOffEnum state)Wrapped PCO_SetRecordingState function.voidsetRoi(int x0, int y0, int x1, int y1)Wrapped PCO_SetRoi function.voidsetTimestampMode(TimestampMode mode)Wrapped PCO_SetTimestampMode function.voidsetTriggerMode(TriggerMode triggerMode)Wrapped PCO_SetTriggerMode function.StringtoString()
-
Constructor Details
-
Sdk
public Sdk()Constructor, loads the necessary DLLs
-
-
Method Details
-
getCameraHandle
public long getCameraHandle()C pointer of the camera, currently opened in this Sdk class by openCamera or openCameraEx functions- Returns:
- camera handle
-
getLastCallWarning
If the last call of a native function of the current Sdk object returned a Warning, it can be obtained from here- Returns:
-
openCamera
Wrapped PCO_OpenCamera function. On success, it sets the cameraHandle private variable of the current Sdk object and also returns this cameraHandle- Returns:
- Handle to the opened camera to be used in the constructor of the Recorder class
- Throws:
PcoException
-
openCameraEx
Wrapped PCO_OpenCameraEx function. On success, it sets the cameraHandle private variable of the current Sdk object.- Parameters:
iface- Desired interface to open camera oncameraNumber- Index on the selected interface that will be associated with the opened camera (this index must not be associated previously).- Throws:
PcoException
-
closeCamera
Wrapped PCO_CloseCamera function. Sets private cameraHandle variable of this Sdk object to zero.- Throws:
PcoException
-
resetSettingsToDefault
Wrapped PCO_ResetSettingsToDefault function.- Throws:
PcoException
-
resetLib
Wrapped PCO_ResetLib function.- Throws:
PcoException
-
armCamera
Wrapped PCO_ArmCamera function.- Throws:
PcoException
-
getRecordingState
Wrapped PCO_GetRecordingState function.- Returns:
- Throws:
PcoException
-
setRecordingState
Wrapped PCO_SetRecordingState function.- Parameters:
state-- Throws:
PcoException
-
getBitAlignment
Wrapped PCO_GetBitAlignment function.- Returns:
- Throws:
PcoException
-
setBitAlignment
Wrapped PCO_SetBitAlignment function.- Parameters:
bitAlignment-- Throws:
PcoException
-
getMetaDataMode
Wrapped PCO_GetMetaDataMode function.- Returns:
- Throws:
PcoException
-
setMetaDataMode
Wrapped PCO_SetMetaDataMode function.- Parameters:
mode-- Throws:
PcoException
-
getTimestampMode
Wrapped PCO_GetTimestampMode function.- Returns:
- Throws:
PcoException
-
setTimestampMode
Wrapped PCO_SetTimestampMode function.- Parameters:
mode-- Throws:
PcoException
-
getDelayExposureTime
Wrapped PCO_GetDelayExposureTime function.- Returns:
- Throws:
PcoException
-
setDelayExposureTime
public void setDelayExposureTime(long delay, long exposure, Timebase delayTimebase, Timebase exposureTimebase) throws PcoExceptionWrapped PCO_SetDelayExposureTime function.- Parameters:
delay-exposure-delayTimebase-exposureTimebase-- Throws:
PcoException
-
getRoi
Wrapped PCO_GetRoi function.- Returns:
- Throws:
PcoException
-
setRoi
Wrapped PCO_SetRoi function.- Throws:
PcoException
-
getDoubleImageMode
Wrapped PCO_GetDoubleImageMode function.- Returns:
- Throws:
PcoException
-
setDoubleImageMode
Wrapped PCO_SetDoubleImageMode function.- Throws:
PcoException
-
getAcquireMode
Wrapped PCO_GetAcquireMode function.- Returns:
- Throws:
PcoException
-
setAcquireMode
Wrapped PCO_SetAcquireMode function.- Throws:
PcoException
-
getTriggerMode
Wrapped PCO_GetTriggerMode function.- Returns:
- Throws:
PcoException
-
setTriggerMode
Wrapped PCO_SetTriggerMode function.- Throws:
PcoException
-
getBinning
Wrapped PCO_GetBinning function.- Returns:
- Throws:
PcoException
-
setBinning
Wrapped PCO_SetBinning function.- Throws:
PcoException
-
getSizes
Wrapped PCO_GetSizes function.- Returns:
- Throws:
PcoException
-
getCameraDescription
Wrapped PCO_GetCameraDescription function.- Returns:
- Throws:
PcoException
-
getCameraType
Wrapped PCO_GetCameraType function.- Returns:
- Throws:
PcoException
-
getCameraHealthStatus
Wrapped PCO_GetCameraHealthStatus function.- Returns:
- Throws:
PcoException
-
getTemperature
Wrapped PCO_GetTemperature function.- Returns:
- Throws:
PcoException
-
getCameraName
Wrapped PCO_GetCameraName function.- Returns:
- Throws:
PcoException
-
getPixelRate
Wrapped PCO_GetPixelRate function.- Returns:
- Throws:
PcoException
-
setPixelRate
Wrapped PCO_SetPixelRate function.- Throws:
PcoException
-
finalize
-
hashCode
public int hashCode() -
equals
-
toString
-