![]() |
My Project
|
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. More... | |
virtual | ~CapturePlugin () |
Destructor. | |
virtual CaptureDeviceVector | enumerateDevices ()=0 |
Enumerate capture devices currently available. More... | |
virtual Capture * | createCapture (const CaptureDevice captureDevice)=0 |
Create Capture class. Transfers onwership to the caller. More... | |
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.
|
inline |
Constructor.
captureType | A unique identifier for the capture plugin. |
Definition at line 52 of file CapturePlugin.h.
|
pure virtual |
Create Capture class. Transfers onwership to the caller.
captureDevice | Information of which camera to create. |
Implemented in CapturePluginPtgrey, CapturePluginHighgui, CapturePluginFile, CapturePluginDSCapture, and CapturePluginCmu.
|
pure virtual |
Enumerate capture devices currently available.
Implemented in CapturePluginPtgrey, CapturePluginHighgui, CapturePluginFile, CapturePluginDSCapture, and CapturePluginCmu.