Public Member Functions | Public Attributes

FCam::Flash::FireAction Class Reference

An action to fire the flash during an exposure. More...

#include <Flash.h>

Inheritance diagram for FCam::Flash::FireAction:
Inheritance graph
[legend]
Collaboration diagram for FCam::Flash::FireAction:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 FireAction (Flash *f)
 Construct a FireAction to fire the given flash.
 FireAction (Flash *f, int time)
 Construct a FireAction to fire the given flash, starting at the given time into the exposure (in microseconds).
 FireAction (Flash *f, int time, float brightness, int duration)
 Construct a FireAction to fire the given flash, starting at the given time into the exposure (in microseconds), at the given brightness, for the given duration (in microseconds).
void doAction ()
 Perform the action.
FlashgetFlash ()
 Get the flash associated with this fire event.

Public Attributes

float brightness
 The brightness setting for this flash fire.
int duration
 The length of time the flash should fire for.

Detailed Description

An action to fire the flash during an exposure.

Definition at line 49 of file Flash.h.


Constructor & Destructor Documentation

FCam::Flash::FireAction::FireAction ( Flash f  ) 

Construct a FireAction to fire the given flash.

Definition at line 11 of file Flash.cpp.

FCam::Flash::FireAction::FireAction ( Flash f,
int  time 
)

Construct a FireAction to fire the given flash, starting at the given time into the exposure (in microseconds).

Definition at line 16 of file Flash.cpp.

FCam::Flash::FireAction::FireAction ( Flash f,
int  time,
float  brightness,
int  duration 
)

Construct a FireAction to fire the given flash, starting at the given time into the exposure (in microseconds), at the given brightness, for the given duration (in microseconds).

Definition at line 24 of file Flash.cpp.


Member Function Documentation

void FCam::Flash::FireAction::doAction (  )  [virtual]

Perform the action.

Derived classes should override this. This method will be called in the highest priority thread possible to allow for precise timing, so don't perform any long running computations in it unless you really want the entire OS to freeze.

Implements FCam::Action.

Definition at line 30 of file Flash.cpp.

Flash* FCam::Flash::FireAction::getFlash (  )  [inline]

Get the flash associated with this fire event.

Definition at line 75 of file Flash.h.


Member Data Documentation

The brightness setting for this flash fire.

Units are platform specific. Peak lumens are suggested.

Definition at line 67 of file Flash.h.

The length of time the flash should fire for.

Definition at line 70 of file Flash.h.


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