Raytrix Light Field SDK
5.0
|
The camera server.
Inherits Rx::LFR::CPimpl< CCameraServer_Impl, Interfaces::ECameraServer::ID >.
Public Member Functions | |
CCameraServer () | |
Default constructor. More... | |
CCameraServer (CCameraServer &&xCameraServer) | |
Move constructor. More... | |
~CCameraServer () | |
Destructor. More... | |
void | AddStatusMessageCallback (TFuncStatusMsg pxCallback, void *pvContext) |
Adds the given status message callback function to the internal list of callbacks. More... | |
unsigned | FindCameras (const CRxString &sxDllLookupPath="") |
Searches for all cameras matching the filter string set by SetFindOnlyFilterString. More... | |
CCamera & | GetCamera (unsigned uCamIndex) |
Gets IDevice with given ID. More... | |
unsigned | GetCameraCount () const |
Gets the total number of devices found by the last call of FindCameras. More... | |
unsigned | GetCameraFirmwareMismatchCount () const |
Gets the number of camera firmware mismatches that were found by the last call of FindCameras. More... | |
CRxString | GetCameraFirmwareMismatchDescription (unsigned uIndex) |
Gets camera firmware mismatch description. More... | |
CCameraServer_Impl & | GetImpl () |
Gets the non constant implementation. More... | |
const CCameraServer_Impl & | GetImpl () const |
Gets the constant implementation. More... | |
void * | GetInterface (Interfaces::ECameraServer::ID eInterface) |
Gets the interface defined by the given interface ID. More... | |
TInterface * | GetInterface (Interfaces::ECameraServer::ID eInterface) |
Gets the interface defined by the given interface ID. More... | |
const void * | GetInterface (Interfaces::ECameraServer::ID eInterface) const |
Gets the interface defined by the given interface ID. More... | |
const TInterface * | GetInterface (Interfaces::ECameraServer::ID eInterface) const |
Gets the interface defined by the given interface ID. More... | |
bool | HasInterface (Interfaces::ECameraServer::ID eInterface) |
Queries if this object has the given interface. More... | |
CCameraServer & | operator= (CCameraServer &&xCameraServer) |
Move assignment operator. More... | |
void | Release () |
Releases the driver DLLs and destroys all cameras. More... | |
void | RemoveStatusMessageCallback (TFuncStatusMsg pxCallback) |
Removes the given status message callback function. More... | |
void | SetFindOnlyFilterString (const CRxString &sxFilter) |
Sets a string that activates a find filter in the FindCameras method. More... | |
Rx::LFR::CCameraServer::CCameraServer | ( | ) |
Default constructor.
Rx::LFR::CCameraServer::CCameraServer | ( | CCameraServer && | xCameraServer | ) |
Move constructor.
xCameraServer | [in,out]The camera server instance. |
Rx::LFR::CCameraServer::~CCameraServer | ( | ) |
Destructor.
void Rx::LFR::CCameraServer::AddStatusMessageCallback | ( | TFuncStatusMsg | pxCallback, |
void * | pvContext | ||
) |
Adds the given status message callback function to the internal list of callbacks.
Adding the same function pointer twice will only update the given context pointer. This prevents multiple adds of the same callback function.
pxCallback | [in] The callback function. |
pvContext | [in] The callback context. Can be any pointer that is passed to the callback function. |
unsigned Rx::LFR::CCameraServer::FindCameras | ( | const CRxString & | sxDllLookupPath = "" | ) |
Searches for all cameras matching the filter string set by SetFindOnlyFilterString.
sxDllLookupPath | (Optional) [in] Full path to device driver files. |
CCamera& Rx::LFR::CCameraServer::GetCamera | ( | unsigned | uCamIndex | ) |
Gets IDevice with given ID.
uCamIndex | [in] Zero-based ID of the device. |
unsigned Rx::LFR::CCameraServer::GetCameraCount | ( | ) | const |
Gets the total number of devices found by the last call of FindCameras.
unsigned Rx::LFR::CCameraServer::GetCameraFirmwareMismatchCount | ( | ) | const |
Gets the number of camera firmware mismatches that were found by the last call of FindCameras.
CRxString Rx::LFR::CCameraServer::GetCameraFirmwareMismatchDescription | ( | unsigned | uIndex | ) |
Gets camera firmware mismatch description.
uIndex | [in] The index. |
|
inlineinherited |
Gets the non constant implementation.
|
inlineinherited |
Gets the constant implementation.
|
inherited |
Gets the interface defined by the given interface ID.
eInterface | [in] The interface ID. |
|
inlineinherited |
Gets the interface defined by the given interface ID.
TInterface | [in] The interface type. |
eInterface | [in] The interface. |
|
inherited |
Gets the interface defined by the given interface ID.
eInterface | [in] The interface ID. |
|
inlineinherited |
Gets the interface defined by the given interface ID.
TInterface | [in] The interface type. |
eInterface | [in] The interface ID. |
|
inlineinherited |
Queries if this object has the given interface.
eInterface | [in] The interface to query. |
CCameraServer& Rx::LFR::CCameraServer::operator= | ( | CCameraServer && | xCameraServer | ) |
Move assignment operator.
xCameraServer | [in,out]The camera server. |
void Rx::LFR::CCameraServer::Release | ( | ) |
Releases the driver DLLs and destroys all cameras.
void Rx::LFR::CCameraServer::RemoveStatusMessageCallback | ( | TFuncStatusMsg | pxCallback | ) |
Removes the given status message callback function.
Does nothing if the given function pointer has not been added to the list of callbacks.
pxCallback | [in] The callback function to remove. |
void Rx::LFR::CCameraServer::SetFindOnlyFilterString | ( | const CRxString & | sxFilter | ) |
Sets a string that activates a find filter in the FindCameras method.
By default the FindCameras method searches for all cameras (empty string). If you want to find only cameras of a certain type you can provide a filter here.
Examples:
sxFilter | [in] The filter string. |