• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

src/Flash.cpp

00001 #include "FCam/Flash.h"
00002 #include "FCam/Action.h"
00003 #include "FCam/Frame.h"
00004 
00005 #include "Debug.h"
00006 
00007 
00008 namespace FCam {
00009     Flash::~Flash() {}
00010 
00011     Flash::FireAction::FireAction(Flash *f) : flash(f) {
00012         latency = flash->fireLatency();        
00013         time = 0;
00014     }
00015 
00016     Flash::FireAction::FireAction(Flash *f, int t) :
00017         flash(f) {
00018         time = t;
00019         latency = flash->fireLatency();        
00020         brightness = flash->maxBrightness();
00021         duration = flash->minDuration();
00022     }
00023 
00024     Flash::FireAction::FireAction(Flash *f, int t, float b, int d) : 
00025         brightness(b), duration(d), flash(f) {
00026         time = t;
00027         latency = flash->fireLatency();
00028     }
00029 
00030     void Flash::FireAction::doAction() {
00031         flash->fire(brightness, duration);
00032     }
00033 
00035     Flash::Tags::Tags(Frame f) {
00036         start      = f["flash.start"];
00037         duration   = f["flash.duration"];
00038         peak       = f["flash.peak"];
00039         brightness = f["flash.brightness"];
00040     }
00041 
00042 }

Generated on Mon Aug 16 2010 14:25:45 for FCam by  doxygen 1.7.1