Public Member Functions

FCam::Device Class Reference

An abstract base class for devices. More...

#include <Device.h>

Inheritance diagram for FCam::Device:
Inheritance graph
[legend]
Collaboration diagram for FCam::Device:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void tagFrame (Frame)=0
 Your device should implement this method to tag a frame coming back from the sensor.

Detailed Description

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.


Member Function Documentation

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.


The documentation for this class was generated from the following file: