Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

vrvis::RotateYAction Class Reference

Default Action that rotates the scene around its Y coordinate axis. More...

#include <DefaultActions.hpp>

Inheritance diagram for vrvis::RotateYAction:

vrvis::RotateAction vrvis::AnalogAction vrvis::Action List of all members.

Public Member Functions

 RotateYAction (void)
 Constructor.
 ~RotateYAction (void)
 Destructor.
void execute (const float cAnalogDataValue)
 Calculate angle from the incoming analog value and rotate the scene.

Detailed Description

Part of the "DefaultActionSet". If the incoming analog value exceeds AnalogAction's THRESHOLD value, the scene is rotated around its local Y axis.
See also:
RotateXAction, AnalogAction::THRESHOLD


Constructor & Destructor Documentation

RotateYAction::RotateYAction void   ) 
 

Constructs a RotateYAction object.

RotateYAction::~RotateYAction void   ) 
 

Destructor.


Member Function Documentation

void RotateYAction::execute const float  cAnalogDataValue  )  [virtual]
 

The incoming analog value is checked for exceeding the THRESHOLD value; if yes, the angle is calculated and Input's translation/rotation matrix is rotated.

Parameters:
[in] cAnalogDataValue Analog value (0.0 - 1.0) coming from the connected analog device.

Implements vrvis::RotateAction.


The documentation for this class was generated from the following files:
Generated on Tue Sep 21 07:31:11 2004 for VRVis by doxygen 1.3.8