An abstract base class for devices. More...
|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.
|virtual void FCam::Device::tagFrame||(||Frame||)||
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.