Namespace: Rx::LFR – Class: CCamera – Header: Rx.LFR/Camera.h

CCamera Class

C++
#include "Rx.LFR/Camera.h"
class CCamera : public CPimpl<CCamera_Impl, ECameraInterface>

Provides methods for communication with a camera attached to the system.

Constructors

CCamera()

Constructor.

CCamera(xCamera)

Move constructor.

Destructor

~CCamera()

Destructor.

Methods

AssignDevices(device, driverName, grabber)

Assigns the camera interface plus an optional frame grabber interface.

AddImageCapturedCallback(pxCallback, pvContext)

Adds the given callback function with the given context to the list of image captured callbacks.

RemoveImageCapturedCallback(pxCallback)

Removes the given callback function from the list of image captured callbacks. Does nothing if it's not in the list.

GetImageFormat()

Gets the format of the images captured by this camera.

IsOpen()

Query if this camera is open.

GetDriverName()

Gets the driver name, e.g. "TypeA".

GetInternalSerial()

Gets the internal serial string. Is only available after the camera has been initialized.

GetHardwareID()

Gets the hardware ID string. Is only available after the camera has been initialized.

GetIndex()

Gets the camera index. This is the index in the list of cameras in the camera server.

Open()

Opens the device and prepares the communication.

Close()

Closes the device and finalizes the communication. Does nothing if not open.

Start()

Starts the camera. The configured trigger mode determines when the camera captures images.

Start(eTriggerMode)

Starts the camera. The given trigger mode determines when the camera captures images.

Stop()

Stops the camera.

Suspend(bSuspend)

Suspends the camera.

Trigger()

Triggers the camera.

IsPropertyAvailable(eProp)

Queries if a property is available.

GetProperty(eProp, fValue)

Gets a property value of type float.

GetProperty(eProp, iValue)

Gets a property value of type int.

GetProperty(eProp, sxValue)

Gets the value of a string property.

SetProperty(eProp, fValue)

Sets a property value of type float.

SetProperty(eProp, iValue)

Sets a property value of type int.

SetProperty(eProp, sxValue)

Sets the value of a string property.

GetPropertyRange(eProp, fMin, fMax)

Gets the property value range of the given property of type float.

GetPropertyRange(eProp, iMin, iMax)

Gets the property value range of the given property of type int.

GetPropertyRange(eProp, aiValue)

Gets the possible values of an integer property.

SetThreadGroupAffinity(group, mask)

Sets the thread group affinity of the internal camera threads.

GetInterface(eData)

Gets the camera interface.

GetInterface(eData)

Gets the camera interface.

GetImpl()

Gets the non constant implementation.

(Inherited from CPimpl)
GetImpl()

Gets the constant implementation.

(Inherited from CPimpl)
HasInterface(eInterface)

Queries if this object has the given interface.

(Inherited from CPimpl)

Operators

operator=(xCamera)

Move assignment operator.