Public Member Functions | Public Attributes

FCam::Lens::FocusAction Class Reference

An Action to initiate a change in focus during an exposure (for example, for rubber focus). More...

#include <Lens.h>

Inheritance diagram for FCam::Lens::FocusAction:
Inheritance graph
[legend]
Collaboration diagram for FCam::Lens::FocusAction:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 FocusAction (Lens *)
 Make a new FocusAction associated with a particular lens.
 FocusAction (Lens *, int, float)
 Make a new FocusAction to change the focus of the given lens, at the given number of microseconds into the exposure, towards the given focus.
 FocusAction (Lens *, int, float, float)
 Make a new FocusAction to change the focus of the given lens, at the given number of microseconds into the exposure, towards the given focus, at the given speed.
void doAction ()
 Perform the action.

Public Attributes

float focus
 The target focus in diopters.
float speed
 The speed at which to change focus in diopters per second.

Detailed Description

An Action to initiate a change in focus during an exposure (for example, for rubber focus).

Definition at line 152 of file Lens.h.


Constructor & Destructor Documentation

FCam::Lens::FocusAction::FocusAction ( Lens l  ) 

Make a new FocusAction associated with a particular lens.

Definition at line 10 of file Lens.cpp.

FCam::Lens::FocusAction::FocusAction ( Lens l,
int  t,
float  f 
)

Make a new FocusAction to change the focus of the given lens, at the given number of microseconds into the exposure, towards the given focus.

Definition at line 18 of file Lens.cpp.

FCam::Lens::FocusAction::FocusAction ( Lens l,
int  t,
float  f,
float  s 
)

Make a new FocusAction to change the focus of the given lens, at the given number of microseconds into the exposure, towards the given focus, at the given speed.

Definition at line 25 of file Lens.cpp.


Member Function Documentation

void FCam::Lens::FocusAction::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 31 of file Lens.cpp.


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