CapturePlugin interface that plugins must implement. More...
#include <CapturePlugin.h>
Public Types | |
typedef std::vector < CaptureDevice > | CaptureDeviceVector |
Vector of CaptureDevices. | |
Public Member Functions | |
CapturePlugin (const std::string &captureType) | |
Constructor. | |
virtual Capture * | createCapture (const CaptureDevice captureDevice)=0 |
Create Capture class. Transfers onwership to the caller. | |
virtual CaptureDeviceVector | enumerateDevices ()=0 |
Enumerate capture devices currently available. | |
virtual | ~CapturePlugin () |
Destructor. | |
Protected Attributes | |
std::string | mCaptureType |
CapturePlugin interface that plugins must implement.
All plugins must implement the CapturePlugin interface. When the plugin is loaded, the CapturePlugin implementation will register itself with the CaptureFactory.
Definition at line 44 of file CapturePlugin.h.
Vector of CaptureDevices.
Definition at line 60 of file CapturePlugin.h.
alvar::CapturePlugin::CapturePlugin | ( | const std::string & | captureType | ) | [inline] |
Constructor.
captureType | A unique identifier for the capture plugin. |
Definition at line 52 of file CapturePlugin.h.
virtual alvar::CapturePlugin::~CapturePlugin | ( | ) | [inline, virtual] |
Destructor.
Definition at line 60 of file CapturePlugin.h.
virtual Capture* alvar::CapturePlugin::createCapture | ( | const CaptureDevice | captureDevice | ) | [pure virtual] |
Create Capture class. Transfers onwership to the caller.
captureDevice | Information of which camera to create. |
Implemented in alvar::plugins::CapturePluginDSCapture, alvar::plugins::CapturePluginPtgrey, alvar::plugins::CapturePluginHighgui, alvar::plugins::CapturePluginCmu, and alvar::plugins::CapturePluginFile.
virtual CaptureDeviceVector alvar::CapturePlugin::enumerateDevices | ( | ) | [pure virtual] |
Enumerate capture devices currently available.
Implemented in alvar::plugins::CapturePluginDSCapture, alvar::plugins::CapturePluginPtgrey, alvar::plugins::CapturePluginHighgui, alvar::plugins::CapturePluginCmu, and alvar::plugins::CapturePluginFile.
std::string alvar::CapturePlugin::mCaptureType [protected] |
Definition at line 83 of file CapturePlugin.h.