CapturePlugin interface that plugins must implement. More...
#include <CapturePlugin.h>
Public Types | |
typedef std::vector< CaptureDevice > | CaptureDeviceVector |
Vector of CaptureDevices. More... | |
Public Member Functions | |
CapturePlugin (const std::string &captureType) | |
Constructor. More... | |
virtual Capture * | createCapture (const CaptureDevice captureDevice)=0 |
Create Capture class. Transfers onwership to the caller. More... | |
virtual CaptureDeviceVector | enumerateDevices ()=0 |
Enumerate capture devices currently available. More... | |
virtual | ~CapturePlugin () |
Destructor. 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.
typedef std::vector<CaptureDevice> alvar::CapturePlugin::CaptureDeviceVector |
Vector of CaptureDevices.
Definition at line 60 of file CapturePlugin.h.
|
inline |
Constructor.
captureType | A unique identifier for the capture plugin. |
Definition at line 52 of file CapturePlugin.h.
|
inlinevirtual |
Destructor.
Definition at line 60 of file CapturePlugin.h.
|
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.
|
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.
|
protected |
Definition at line 83 of file CapturePlugin.h.