All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Radiant::CameraDriver Class Referenceabstract

Each camera driver should implement this interface in addition to VideoCamera interface. More...

#include <Radiant/CameraDriver.hpp>

Public Member Functions

 CameraDriver ()
 Constructor.
 
virtual VideoCameracreateCamera ()=0
 Create a new camera object using this interface. More...
 
virtual QString driverName () const =0
 Get the name of this driver. More...
 
virtual size_t queryCameras (std::vector< VideoCamera::CameraInfo > &cameras)=0
 Get a list of available cameras on the system that this driver supports. More...
 
virtual ~CameraDriver ()
 Destructor.
 

Detailed Description

Each camera driver should implement this interface in addition to VideoCamera interface.

Member Function Documentation

virtual VideoCamera* Radiant::CameraDriver::createCamera ( )
pure virtual

Create a new camera object using this interface.

Returns
Pointer to the new camer
virtual QString Radiant::CameraDriver::driverName ( ) const
pure virtual

Get the name of this driver.

Returns
name of the driver, e.g. "libdc"
virtual size_t Radiant::CameraDriver::queryCameras ( std::vector< VideoCamera::CameraInfo > &  cameras)
pure virtual

Get a list of available cameras on the system that this driver supports.

Parameters
camerasarray of cameras where the new cameras will be appended to
Returns
number of cameras found by this driver