55 : mCaptureDevice(captureDevice)
93 virtual void setResolution(
const unsigned long xResolution,
const unsigned long yResolution)
102 virtual bool start() = 0;
107 virtual void stop() = 0;
116 virtual IplImage *captureImage() = 0;
125 if (!isCapturing()) {
131 serialization << (*this);
146 if (!isCapturing()) {
152 serialization >> (*this);
164 virtual bool showSettingsDialog() = 0;
169 virtual std::string SerializeId() = 0;
CaptureDevice captureDevice()
The camera information associated to this capture object.
CaptureDevice mCaptureDevice
unsigned long mXResolution
unsigned long xResolution()
The resolution along the x axis (horizontal).
unsigned long yResolution()
The resolution along the y axis (vertical).
CaptureDevice holder for camera information.
virtual ~Capture()
Destructor.
This file implements generic utility functions and a serialization interface.
bool isCapturing()
Test if the camera was properly initialized.
Capture interface that plugins must implement.
This file implements a capture device to hold camera information.
Class for serializing class content to/from file or std::iostream.
virtual bool loadSettings(std::string filename)
Load camera settings from a file.
virtual void setResolution(const unsigned long xResolution, const unsigned long yResolution)
Set the resolution.
This file defines library export definitions, version numbers and build information.
virtual bool saveSettings(std::string filename)
Save camera settings to a file.
unsigned long mYResolution
Capture(const CaptureDevice captureDevice)
Constructor.