@Namespace(value="FlyCapture2") @NoOffset @Properties(inherit=FlyCapture2.class) public class CameraBase extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
CameraBase(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Error |
Connect() |
Error |
Connect(PGRGuid pGuid)
Connects the camera object to the camera specified by the GUID.
|
Error |
DeregisterAllEvents() |
Error |
DeregisterEvent(EventOptions pOpts) |
Error |
Disconnect()
Disconnects the camera object from the camera.
|
Error |
EnableLUT(boolean on)
Enable or disable LUT functionality on the camera.
|
Error |
FireSoftwareTrigger() |
Error |
FireSoftwareTrigger(boolean broadcast)
Fire the software trigger according to the DCAM specifications.
|
Error |
GetActiveLUTBank(int[] pActiveBank) |
Error |
GetActiveLUTBank(IntBuffer pActiveBank) |
Error |
GetActiveLUTBank(IntPointer pActiveBank)
Get the LUT bank that is currently being used.
|
Error |
GetCameraInfo(CameraInfo pCameraInfo)
Retrieves information from the camera such as serial number, model
name and other camera information.
|
Error |
GetConfiguration(FC2Config pConfig)
Get the configuration associated with the camera object.
|
Error |
GetCycleTime(TimeStamp timeStamp)
Returns a Timestamp struct containing 1394 CYCLE_TIME information
|
Error |
GetEmbeddedImageInfo(EmbeddedImageInfo pInfo)
Get the current status of the embedded image information register,
as well as the availability of each embedded property.
|
Error |
GetGPIOPinDirection(int pin,
int[] pDirection) |
Error |
GetGPIOPinDirection(int pin,
IntBuffer pDirection) |
Error |
GetGPIOPinDirection(int pin,
IntPointer pDirection)
Get the GPIO pin direction for the specified pin.
|
Error |
GetLUTBankInfo(int bank,
boolean[] pReadSupported,
boolean[] pWriteSupported) |
Error |
GetLUTBankInfo(int bank,
BoolPointer pReadSupported,
BoolPointer pWriteSupported)
Query the read/write status of a single LUT bank.
|
Error |
GetLUTChannel(int bank,
int channel,
int sizeEntries,
int[] pEntries) |
Error |
GetLUTChannel(int bank,
int channel,
int sizeEntries,
IntBuffer pEntries) |
Error |
GetLUTChannel(int bank,
int channel,
int sizeEntries,
IntPointer pEntries)
Get the LUT channel settings from the camera.
|
Error |
GetLUTInfo(LUTData pData)
Query if LUT support is available on the camera.
|
Error |
GetMemoryChannel(int[] pCurrentChannel) |
Error |
GetMemoryChannel(IntBuffer pCurrentChannel) |
Error |
GetMemoryChannel(IntPointer pCurrentChannel)
Retrieve the current memory channel from the camera.
|
Error |
GetMemoryChannelInfo(int[] pNumChannels) |
Error |
GetMemoryChannelInfo(IntBuffer pNumChannels) |
Error |
GetMemoryChannelInfo(IntPointer pNumChannels)
Query the camera for memory channel support.
|
Error |
GetProperty(Property pProp)
Reads the settings for the specified property from the camera.
|
Error |
GetPropertyInfo(PropertyInfo pPropInfo)
Retrieves information about the specified camera property.
|
Error |
GetStats(CameraStats pStats) |
Error |
GetStrobe(StrobeControl pStrobeControl)
Retrieve current strobe settings from the camera.
|
Error |
GetStrobeInfo(StrobeInfo pStrobeInfo)
Retrieve strobe information from the camera.
|
Error |
GetTriggerDelay(Property pTriggerDelay)
Retrieve current trigger delay settings from the camera.
|
Error |
GetTriggerDelayInfo(PropertyInfo pTriggerDelayInfo)
Retrieve trigger delay information from the camera.
|
Error |
GetTriggerMode(TriggerMode pTriggerMode)
Retrieve current trigger settings from the camera.
|
Error |
GetTriggerModeInfo(TriggerModeInfo pTriggerModeInfo)
Retrieve trigger information from the camera.
|
boolean |
IsConnected()
Checks if the camera object is connected to a physical camera
specified by a GUID.
|
Error |
ReadRegister(int _address,
int[] pValue) |
Error |
ReadRegister(int _address,
IntBuffer pValue) |
Error |
ReadRegister(int _address,
IntPointer pValue)
Read the specified register from the camera.
|
Error |
ReadRegisterBlock(short addressHigh,
int addressLow,
int[] pBuffer,
int length) |
Error |
ReadRegisterBlock(short addressHigh,
int addressLow,
IntBuffer pBuffer,
int length) |
Error |
ReadRegisterBlock(short addressHigh,
int addressLow,
IntPointer pBuffer,
int length)
Read from the specified register block on the camera.
|
Error |
RegisterAllEvents(EventOptions pOpts) |
Error |
RegisterEvent(EventOptions pOpts) |
Error |
ResetStats() |
Error |
RestoreFromMemoryChannel(int channel)
Restore the specfied current memory channel.
|
Error |
RetrieveBuffer(Image pImage)
Retrieves the the next image object containing the next image.
|
Error |
SaveToMemoryChannel(int channel)
Save the current settings to the specfied current memory channel.
|
Error |
SetActiveLUTBank(int activeBank)
Set the LUT bank that will be used.
|
Error |
SetCallback(ImageEventCallback callbackFn) |
Error |
SetCallback(ImageEventCallback callbackFn,
Pointer pCallbackData)
Sets the callback data to be used on completion of image transfer.
|
Error |
SetConfiguration(FC2Config pConfig)
Set the configuration associated with the camera object.
|
Error |
SetEmbeddedImageInfo(EmbeddedImageInfo pInfo)
Sets the on/off values of the embedded image information structure
to the camera.
|
Error |
SetGPIOPinDirection(int pin,
int direction) |
Error |
SetGPIOPinDirection(int pin,
int direction,
boolean broadcast)
Set the GPIO pin direction for the specified pin.
|
Error |
SetLUTChannel(int bank,
int channel,
int sizeEntries,
int[] pEntries) |
Error |
SetLUTChannel(int bank,
int channel,
int sizeEntries,
IntBuffer pEntries) |
Error |
SetLUTChannel(int bank,
int channel,
int sizeEntries,
IntPointer pEntries)
Set the LUT channel settings to the camera.
|
Error |
SetProperty(Property pProp) |
Error |
SetProperty(Property pProp,
boolean broadcast)
Writes the settings for the specified property to the camera.
|
Error |
SetStrobe(StrobeControl pStrobeControl) |
Error |
SetStrobe(StrobeControl pStrobeControl,
boolean broadcast)
Set current strobe settings to the camera.
|
Error |
SetTriggerDelay(Property pTriggerDelay) |
Error |
SetTriggerDelay(Property pTriggerDelay,
boolean broadcast)
Set the specified trigger delay settings to the camera.
|
Error |
SetTriggerMode(TriggerMode pTriggerMode) |
Error |
SetTriggerMode(TriggerMode pTriggerMode,
boolean broadcast)
Set the specified trigger settings to the camera.
|
Error |
SetUserBuffers(byte[] pMemBuffers,
int size,
int numBuffers) |
Error |
SetUserBuffers(ByteBuffer pMemBuffers,
int size,
int numBuffers) |
Error |
SetUserBuffers(BytePointer pMemBuffers,
int size,
int numBuffers)
Specify user allocated buffers to use as image data buffers.
|
Error |
StartCapture() |
Error |
StartCapture(ImageEventCallback callbackFn,
Pointer pCallbackData)
Starts isochronous image capture.
|
Error |
StopCapture()
Stops isochronous image transfer and cleans up all associated
resources.
|
Error |
WaitForBufferEvent(Image pImage,
int eventNumber)
Retrieves the next image event containing the next part of the image.
|
Error |
WriteRegister(int _address,
int value) |
Error |
WriteRegister(int _address,
int value,
boolean broadcast)
Write to the specified register on the camera.
|
Error |
WriteRegisterBlock(short addressHigh,
int addressLow,
int[] pBuffer,
int length) |
Error |
WriteRegisterBlock(short addressHigh,
int addressLow,
IntBuffer pBuffer,
int length) |
Error |
WriteRegisterBlock(short addressHigh,
int addressLow,
IntPointer pBuffer,
int length)
Write to the specified register block on the camera.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic CameraBase(Pointer p)
Pointer(Pointer).@ByVal public Error Connect(PGRGuid pGuid)
pGuid - The unique identifier for a specific camera on the PC.BusManager::GetCameraFromIndex(),
BusManager::GetCameraFromSerialNumber()@ByVal public Error Disconnect()
Connect()@Cast(value="bool") public boolean IsConnected()
Connect(),
Disconnect()@ByVal public Error SetCallback(ImageEventCallback callbackFn, @Const Pointer pCallbackData)
callbackFn - A function to be called when a new image is
received.pCallbackData - A pointer to data that can be passed to the
callback function.StartCapture()@ByVal public Error SetCallback(ImageEventCallback callbackFn)
@ByVal public Error StartCapture(ImageEventCallback callbackFn, @Const Pointer pCallbackData)
callbackFn - A function to be called when a new image is
received.pCallbackData - A pointer to data that can be passed to the
callback function.RetrieveBuffer(),
StartSyncCapture(),
StopCapture()@ByVal public Error RetrieveBuffer(Image pImage)
pImage - Pointer to Image object to store image data.StartCapture(),
StopCapture()@ByVal public Error StopCapture()
StartCapture(),
RetrieveBuffer()@ByVal public Error WaitForBufferEvent(Image pImage, @Cast(value="unsigned int") int eventNumber)
pImage - Pointer to Image object to store image data.eventNumber - The event number to wait for.StartCapture(),
RetrieveBuffer(),
StopCapture()@ByVal public Error SetUserBuffers(@Cast(value="unsigned char*const") BytePointer pMemBuffers, int size, int numBuffers)
pMemBuffers - Pointer to memory buffers to be written to.size - The size of each buffer (in bytes).numBuffers - Number of buffers in the array.StartCapture(),
RetrieveBuffer(),
StopCapture()@ByVal public Error SetUserBuffers(@Cast(value="unsigned char*const") ByteBuffer pMemBuffers, int size, int numBuffers)
@ByVal public Error SetUserBuffers(@Cast(value="unsigned char*const") byte[] pMemBuffers, int size, int numBuffers)
@ByVal public Error GetConfiguration(FC2Config pConfig)
pConfig - Pointer to the configuration structure to be filled.SetConfiguration()@ByVal public Error SetConfiguration(@Const FC2Config pConfig)
pConfig - Pointer to the configuration structure to be used.GetConfiguration()@ByVal public Error GetCameraInfo(CameraInfo pCameraInfo)
pCameraInfo - Pointer to the camera information structure
to be filled.@ByVal public Error GetPropertyInfo(PropertyInfo pPropInfo)
pPropInfo - Pointer to the PropertyInfo structure to be filled.GetProperty(),
SetProperty()@ByVal public Error GetProperty(Property pProp)
pProp - Pointer to the Property structure to be filled.GetPropertyInfo(),
SetProperty()@ByVal public Error SetProperty(@Const Property pProp, @Cast(value="bool") boolean broadcast)
pProp - Pointer to the Property structure to be used.broadcast - Whether the action should be broadcast.GetPropertyInfo(),
GetProperty()@ByVal public Error GetGPIOPinDirection(@Cast(value="unsigned int") int pin, @Cast(value="unsigned int*") IntPointer pDirection)
pin - Pin to get the direction for.pDirection - Direction of the pin. 0 for input, 1 for output.SetGPIOPinDirection()@ByVal public Error GetGPIOPinDirection(@Cast(value="unsigned int") int pin, @Cast(value="unsigned int*") IntBuffer pDirection)
@ByVal public Error GetGPIOPinDirection(@Cast(value="unsigned int") int pin, @Cast(value="unsigned int*") int[] pDirection)
@ByVal public Error SetGPIOPinDirection(@Cast(value="unsigned int") int pin, @Cast(value="unsigned int") int direction, @Cast(value="bool") boolean broadcast)
pin - Pin to get the direction for.direction - Direction of the pin. 0 for input, 1 for output.broadcast - Whether the action should be broadcast.GetGPIOPinDirection()@ByVal public Error SetGPIOPinDirection(@Cast(value="unsigned int") int pin, @Cast(value="unsigned int") int direction)
@ByVal public Error GetTriggerModeInfo(TriggerModeInfo pTriggerModeInfo)
pTriggerModeInfo - Structure to receive trigger information.GetTriggerMode(),
SetTriggerMode(),
GetTriggerDelayInfo(),
GetTriggerDelay(),
SetTriggerDelay()@ByVal public Error GetTriggerMode(TriggerMode pTriggerMode)
pTriggerMode - Structure to receive trigger mode settings.GetTriggerModeInfo(),
SetTriggerMode(),
GetTriggerDelayInfo(),
GetTriggerDelay(),
SetTriggerDelay()@ByVal public Error SetTriggerMode(@Const TriggerMode pTriggerMode, @Cast(value="bool") boolean broadcast)
pTriggerMode - Structure providing trigger mode settings.broadcast - Whether the action should be broadcast.GetTriggerModeInfo(),
GetTriggerMode(),
GetTriggerDelayInfo(),
GetTriggerDelay(),
SetTriggerDelay()@ByVal public Error SetTriggerMode(@Const TriggerMode pTriggerMode)
@ByVal public Error FireSoftwareTrigger(@Cast(value="bool") boolean broadcast)
broadcast - Whether the action should be broadcast.@ByVal public Error GetTriggerDelayInfo(@Cast(value="FlyCapture2::TriggerDelayInfo*") PropertyInfo pTriggerDelayInfo)
pTriggerDelayInfo - Structure to receive trigger delay information.GetTriggerModeInfo(),
GetTriggerMode(),
SetTriggerMode(),
GetTriggerDelay(),
SetTriggerDelay()@ByVal public Error GetTriggerDelay(@Cast(value="FlyCapture2::TriggerDelay*") Property pTriggerDelay)
pTriggerDelay - Structure to receive trigger delay settings.GetTriggerModeInfo(),
GetTriggerMode(),
SetTriggerMode(),
GetTriggerDelayInfo(),
SetTriggerDelay()@ByVal public Error SetTriggerDelay(@Cast(value="const FlyCapture2::TriggerDelay*") Property pTriggerDelay, @Cast(value="bool") boolean broadcast)
pTriggerDelay - Structure providing trigger delay settings.broadcast - Whether the action should be broadcast.GetTriggerModeInfo(),
GetTriggerMode(),
SetTriggerMode(),
GetTriggerDelayInfo(),
GetTriggerDelay()@ByVal public Error SetTriggerDelay(@Cast(value="const FlyCapture2::TriggerDelay*") Property pTriggerDelay)
@ByVal public Error GetStrobeInfo(StrobeInfo pStrobeInfo)
pStrobeInfo - Structure to receive strobe information.GetStrobe(),
SetStrobe()@ByVal public Error GetStrobe(StrobeControl pStrobeControl)
pStrobeControl - Structure to receive strobe settings.GetStrobeInfo(),
SetStrobe()@ByVal public Error SetStrobe(@Const StrobeControl pStrobeControl, @Cast(value="bool") boolean broadcast)
pStrobeControl - Structure providing strobe settings.broadcast - Whether the action should be broadcast.GetStrobeInfo(),
GetStrobe()@ByVal public Error SetStrobe(@Const StrobeControl pStrobeControl)
@ByVal public Error GetLUTInfo(LUTData pData)
pData - The LUT structure to be filled.EnableLUT(),
GetLUTChannel(),
SetLUTChannel()@ByVal public Error GetLUTBankInfo(@Cast(value="unsigned int") int bank, @Cast(value="bool*") BoolPointer pReadSupported, @Cast(value="bool*") BoolPointer pWriteSupported)
bank - The bank to query.pReadSupported - Whether reading from the bank is supported.pWriteSupported - Whether writing to the bank is supported.@ByVal public Error GetLUTBankInfo(@Cast(value="unsigned int") int bank, @Cast(value="bool*") boolean[] pReadSupported, @Cast(value="bool*") boolean[] pWriteSupported)
@ByVal public Error GetActiveLUTBank(@Cast(value="unsigned int*") IntPointer pActiveBank)
pActiveBank - The currently active bank.@ByVal public Error GetActiveLUTBank(@Cast(value="unsigned int*") IntBuffer pActiveBank)
@ByVal public Error GetActiveLUTBank(@Cast(value="unsigned int*") int[] pActiveBank)
@ByVal public Error SetActiveLUTBank(@Cast(value="unsigned int") int activeBank)
activeBank - The bank to be set as active.@ByVal public Error EnableLUT(@Cast(value="bool") boolean on)
on - Whether to enable or disable LUT.GetLUTInfo(),
GetLUTChannel(),
SetLUTChannel()@ByVal public Error GetLUTChannel(@Cast(value="unsigned int") int bank, @Cast(value="unsigned int") int channel, @Cast(value="unsigned int") int sizeEntries, @Cast(value="unsigned int*") IntPointer pEntries)
bank - Bank to retrieve.channel - Channel to retrieve.sizeEntries - Number of entries in LUT table to read.pEntries - Array to store LUT entries.GetLUTInfo(),
EnableLUT(),
SetLUTChannel()@ByVal public Error GetLUTChannel(@Cast(value="unsigned int") int bank, @Cast(value="unsigned int") int channel, @Cast(value="unsigned int") int sizeEntries, @Cast(value="unsigned int*") IntBuffer pEntries)
@ByVal public Error GetLUTChannel(@Cast(value="unsigned int") int bank, @Cast(value="unsigned int") int channel, @Cast(value="unsigned int") int sizeEntries, @Cast(value="unsigned int*") int[] pEntries)
@ByVal public Error SetLUTChannel(@Cast(value="unsigned int") int bank, @Cast(value="unsigned int") int channel, @Cast(value="unsigned int") int sizeEntries, @Cast(value="const unsigned int*") IntPointer pEntries)
bank - Bank to set.channel - Channel to set.sizeEntries - Number of entries in LUT table to write. This must be the
same size as numEntries returned by GetLutInfo().pEntries - Array containing LUT entries to write.GetLUTInfo(),
EnableLUT(),
GetLUTChannel()@ByVal public Error SetLUTChannel(@Cast(value="unsigned int") int bank, @Cast(value="unsigned int") int channel, @Cast(value="unsigned int") int sizeEntries, @Cast(value="const unsigned int*") IntBuffer pEntries)
@ByVal public Error SetLUTChannel(@Cast(value="unsigned int") int bank, @Cast(value="unsigned int") int channel, @Cast(value="unsigned int") int sizeEntries, @Cast(value="const unsigned int*") int[] pEntries)
@ByVal public Error GetMemoryChannel(@Cast(value="unsigned int*") IntPointer pCurrentChannel)
pCurrentChannel - Current memory channel.SaveToMemoryChannel(),
RestoreFromMemoryChannel(),
GetMemoryChannelInfo()@ByVal public Error GetMemoryChannel(@Cast(value="unsigned int*") IntBuffer pCurrentChannel)
@ByVal public Error GetMemoryChannel(@Cast(value="unsigned int*") int[] pCurrentChannel)
@ByVal public Error SaveToMemoryChannel(@Cast(value="unsigned int") int channel)
channel - Memory channel to save to.GetMemoryChannel(),
RestoreFromMemoryChannel(),
GetMemoryChannelInfo()@ByVal public Error RestoreFromMemoryChannel(@Cast(value="unsigned int") int channel)
channel - Memory channel to restore from.GetMemoryChannel(),
SaveToMemoryChannel(),
GetMemoryChannelInfo()@ByVal public Error GetMemoryChannelInfo(@Cast(value="unsigned int*") IntPointer pNumChannels)
pNumChannels - Number of memory channels supported.GetMemoryChannel(),
SaveToMemoryChannel(),
RestoreFromMemoryChannel()@ByVal public Error GetMemoryChannelInfo(@Cast(value="unsigned int*") IntBuffer pNumChannels)
@ByVal public Error GetMemoryChannelInfo(@Cast(value="unsigned int*") int[] pNumChannels)
@ByVal public Error GetEmbeddedImageInfo(EmbeddedImageInfo pInfo)
pInfo - Structure to be filled.SetEmbeddedImageInfo()@ByVal public Error SetEmbeddedImageInfo(EmbeddedImageInfo pInfo)
pInfo - Structure to be used.GetEmbeddedImageInfo()@ByVal public Error WriteRegister(@Cast(value="unsigned int") int _address, @Cast(value="unsigned int") int value, @Cast(value="bool") boolean broadcast)
address - DCAM address to be written to.value - The value to be written.broadcast - Whether the action should be broadcast.ReadRegister()@ByVal public Error WriteRegister(@Cast(value="unsigned int") int _address, @Cast(value="unsigned int") int value)
@ByVal public Error ReadRegister(@Cast(value="unsigned int") int _address, @Cast(value="unsigned int*") IntPointer pValue)
address - DCAM address to be read from.pValue - The value that is read.WriteRegister()@ByVal public Error ReadRegister(@Cast(value="unsigned int") int _address, @Cast(value="unsigned int*") IntBuffer pValue)
@ByVal public Error ReadRegister(@Cast(value="unsigned int") int _address, @Cast(value="unsigned int*") int[] pValue)
@ByVal public Error WriteRegisterBlock(@Cast(value="unsigned short") short addressHigh, @Cast(value="unsigned int") int addressLow, @Cast(value="const unsigned int*") IntPointer pBuffer, @Cast(value="unsigned int") int length)
addressHigh - Top 16 bits of the 48 bit absolute address to
write to.addressLow - Bottom 32 bits of the 48 bits absolute address to
write to.pBuffer - Array containing data to be written.length - Size of array, in quadlets.ReadRegisterBlock()@ByVal public Error WriteRegisterBlock(@Cast(value="unsigned short") short addressHigh, @Cast(value="unsigned int") int addressLow, @Cast(value="const unsigned int*") IntBuffer pBuffer, @Cast(value="unsigned int") int length)
@ByVal public Error WriteRegisterBlock(@Cast(value="unsigned short") short addressHigh, @Cast(value="unsigned int") int addressLow, @Cast(value="const unsigned int*") int[] pBuffer, @Cast(value="unsigned int") int length)
@ByVal public Error ReadRegisterBlock(@Cast(value="unsigned short") short addressHigh, @Cast(value="unsigned int") int addressLow, @Cast(value="unsigned int*") IntPointer pBuffer, @Cast(value="unsigned int") int length)
addressHigh - Top 16 bits of the 48 bit absolute address to
read from.addressLow - Bottom 32 bits of the 48 bits absolute address to
read from.pBuffer - Array to store read data.length - Size of array, in quadlets.WriteRegisterBlock()@ByVal public Error ReadRegisterBlock(@Cast(value="unsigned short") short addressHigh, @Cast(value="unsigned int") int addressLow, @Cast(value="unsigned int*") IntBuffer pBuffer, @Cast(value="unsigned int") int length)
@ByVal public Error ReadRegisterBlock(@Cast(value="unsigned short") short addressHigh, @Cast(value="unsigned int") int addressLow, @Cast(value="unsigned int*") int[] pBuffer, @Cast(value="unsigned int") int length)
@ByVal public Error GetCycleTime(TimeStamp timeStamp)
registerVal - The register value to query.@ByVal public Error GetStats(CameraStats pStats)
@ByVal public Error RegisterEvent(EventOptions pOpts)
@ByVal public Error DeregisterEvent(EventOptions pOpts)
@ByVal public Error RegisterAllEvents(EventOptions pOpts)
Copyright © 2021. All rights reserved.