An Action to initiate a change in focus during an exposure (for example, for rubber focus). More...
#include <Lens.h>
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. |
An Action to initiate a change in focus during an exposure (for example, for rubber focus).
Definition at line 152 of file Lens.h.
FCam::Lens::FocusAction::FocusAction | ( | Lens * | l | ) |
Make a new FocusAction associated with a particular lens.
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.
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.
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.