Raytrix Light Field SDK  4.0
Logo
Public Member Functions | List of all members
Rx::LFR::CCameraServer Class Reference

Detailed Description

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. More...
 
CCameraGetCamera (unsigned uCamIndex)
 Gets IDevice with given ID. More...
 
unsigned GetCameraCount () const
 Gets the total number of devices. 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...
 
const void * GetInterface (Interfaces::ECameraServer::ID eInterface) const
 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 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...
 
CCameraServeroperator= (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...
 

Constructor & Destructor Documentation

Rx::LFR::CCameraServer::CCameraServer ( )

Default constructor.

Rx::LFR::CCameraServer::CCameraServer ( CCameraServer &&  xCameraServer)

Move constructor.

Parameters
xCameraServer[in,out]The camera server instance.
Rx::LFR::CCameraServer::~CCameraServer ( )

Destructor.

Member Function Documentation

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.

Parameters
pxCallbackThe 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.

Parameters
sxDllLookupPath(Optional) Full path to device driver files.
Returns
The number of found cameras.
CCamera& Rx::LFR::CCameraServer::GetCamera ( unsigned  uCamIndex)

Gets IDevice with given ID.

Parameters
uCamIndexZero-based ID of the device.
Returns
null if it fails, else the device.
unsigned Rx::LFR::CCameraServer::GetCameraCount ( ) const

Gets the total number of devices.

Returns
The device count.
CCameraServer_Impl & Rx::LFR::CPimpl< CCameraServer_Impl , Interfaces::ECameraServer::ID >::GetImpl ( )
inlineinherited

Gets the non constant implementation.

Returns
The implementation.
const CCameraServer_Impl & Rx::LFR::CPimpl< CCameraServer_Impl , Interfaces::ECameraServer::ID >::GetImpl ( ) const
inlineinherited

Gets the constant implementation.

Returns
The implementation.
void* Rx::LFR::CPimpl< CCameraServer_Impl , Interfaces::ECameraServer::ID >::GetInterface ( Interfaces::ECameraServer::ID  eInterface)
inherited

Gets the interface defined by the given interface ID.

Parameters
eInterfaceThe interface ID.
Returns
Null if it fails, else the interface.
const void* Rx::LFR::CPimpl< CCameraServer_Impl , Interfaces::ECameraServer::ID >::GetInterface ( Interfaces::ECameraServer::ID  eInterface) const
inherited

Gets the interface defined by the given interface ID.

Parameters
eInterfaceThe interface ID.
Returns
Null if it fails, else the interface.
TInterface* Rx::LFR::CPimpl< CCameraServer_Impl , Interfaces::ECameraServer::ID >::GetInterface ( Interfaces::ECameraServer::ID  eInterface)
inlineinherited

Gets the interface defined by the given interface ID.

Template Parameters
TInterfaceThe interface type.
Parameters
eInterfaceThe interface.
Returns
Null if it fails, else the interface.
const TInterface* Rx::LFR::CPimpl< CCameraServer_Impl , Interfaces::ECameraServer::ID >::GetInterface ( Interfaces::ECameraServer::ID  eInterface) const
inlineinherited

Gets the interface defined by the given interface ID.

Template Parameters
TInterfaceThe interface type.
Parameters
eInterfaceThe interface ID.
Returns
Null if it fails, else the interface.
bool Rx::LFR::CPimpl< CCameraServer_Impl , Interfaces::ECameraServer::ID >::HasInterface ( Interfaces::ECameraServer::ID  eInterface)
inlineinherited

Queries if this object has the given interface.

Parameters
eInterfaceThe interface to query.
Returns
True if this class has the given interface, false if not.
CCameraServer& Rx::LFR::CCameraServer::operator= ( CCameraServer &&  xCameraServer)

Move assignment operator.

Parameters
xCameraServer[in,out]The camera server.
Returns
The instance.
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.

Parameters
pxCallbackThe 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:

  • Find only type A cameras: "TypeA"
  • Find only type A and type D cameras: "TypeA;TypeD"
Parameters
sxFilterThe filter string.