An abstract base class for devices. More...
#include <Device.h>
Public Member Functions | |
virtual void | tagFrame (Frame)=0 |
Your device should implement this method to tag a frame coming back from the sensor. |
An abstract base class for devices.
Devices will typically have a bunch of methods to do their thing (e.g. the lens has methods to move it around.). Devices also typically define nested actions, and tags.
Definition at line 18 of file Device.h.
virtual void FCam::Device::tagFrame | ( | Frame | ) | [pure virtual] |
Your device should implement this method to tag a frame coming back from the sensor.
Don't forget to Sensor::attach your device to the sensor so that this gets called. Frames are tagged just before they are returned via Sensor::getFrame, which may be some time after they actually occured, so do not tag the frame with your devices current state. Instead your device should keep a history of recent state, and inspect the Frame::exposureStartTime and Frame::exposureEndTime to add the appropriate tags.
Implemented in FCam::F2::Flash, FCam::F2::Lens, FCam::Flash, FCam::Lens, FCam::N900::Flash, FCam::N900::Lens, and FCam::Sensor.