#include <Input.hpp>
Public Member Functions | |
Constructor & Destructor | |
Input (const std::string &crConfigFilename) | |
Constructor that takes the name of the VRVis config file. | |
~Input (void) | |
Destructor. | |
Read-only Data Access | |
const float & | getBGColor (int colorIndex) const |
Get the background color for the visualization. | |
const gmtl::Point3f & | getDrawOrigin (void) |
Get the drawing origin. | |
const gmtl::Point3f & | getWandPos (void) |
Get the current wand position. | |
const gmtl::Point3f & | getHeadPos (void) |
Get the current head position. | |
Read/write Matrix Handles | |
gmtl::Matrix44f & | getTransRotMatrixHandle (void) |
Get a reference to the translation/rotation matrix. | |
gmtl::Matrix44f & | getScaleMatrixHandle (void) |
Get a reference to the scale matrix. | |
ActionSet Management | |
ActionSet * | createActionSet (const std::string &crName) |
Create a new ActionSet instance. | |
ActionSet * | createDefaultActionSet (void) |
Create an instance of the default (transformation) ActionSet. | |
void | changeActiveActionSet (void) |
Switch the active ActionSet to the next one in the queue. | |
Update | |
void | update (void) |
Check all devices for occurring events. |
|
Constructor that initializes all devices given in the VRVis config file as well as all application data.
|
|
Destructor. |
|
Enables the next ActionSet in queue and re-queues the previous one. Deactivates all Actions in the old ActionSet and activates all Actions in the new one. This method is called upon release of the "ChangeActionSet" button configured in the VRVis config file. |
|
Creates a new and empty ActionSet, which can be filled with any Actions afterwards. Input retains ownership of the ActionSet and is also responsible for its proper deletion.
|
|
Creates an instance of the default ActionSet "Transformation", which is already filled with the default Actions configured in the VRVis config file.
|
|
Get the scene background color indicated by the given RGB index.
|
|
Get the origin of the scene drawing.
|
|
Updates the current head position member and returns it.
|
|
Returns an all-access handle to the scale drawing matrix.
|
|
Returns an all-access handle to the translation/rotation drawing matrix.
|
|
Updates the current wand position member and returns it.
|
|
Triggers occurring device events in all Actions of the active ActionSet. Initiates an ActionSet change if the corresponding button is released.
|