GoGoCursorModel Class Reference
#include <GoGoCursorModel.h>
Inherits CursorTransformationModel.

Public Member Functions | |
| virtual TransformationData | generateCursorTransformation (TransformationData userTransformation, User *user) |
| virtual std::string | getName () |
Private Member Functions | |
| GoGoCursorModel () | |
| GoGoCursorModel (ArgumentVector *args) | |
Private Attributes | |
| ArgumentVector * | args |
| int | distanceThreshold |
| float | k |
| int | headHeight |
Friends | |
| class | GoGoCursorModelFactory |
Constructor & Destructor Documentation
| GoGoCursorModel::GoGoCursorModel | ( | ) | [private] |
Default Constructor. Default values for the distance threshold are 20, headHeigth = 10 and k = 0.5.
| GoGoCursorModel::GoGoCursorModel | ( | ArgumentVector * | args | ) | [private] |
Constructor
- Parameters:
-
an argument vector containing either the distance Threshold, k, the distance between head and shoulders or all of them.
Member Function Documentation
| TransformationData GoGoCursorModel::generateCursorTransformation | ( | TransformationData | userTransformation, | |
| User * | user | |||
| ) | [virtual] |
The method calculates the transformation of the cursor in world coordinates. If the distance between the user and the user's hand exceeds the distance threshold, the non-linear mapping is performed. resultVec = resultVec + distVec/dist * (dist-distanceThreshold)^2 * k resultVec...result vector distVec...distance vector betwenn user and user's hand dist...length of the distance vector
- Parameters:
-
userTransformation transformation of the User user the user to calculate the cursor-transformation for
- Returns:
- transformation of the user's cursor
Implements CursorTransformationModel.
| std::string GoGoCursorModel::getName | ( | ) | [virtual] |
The method returns the name of the CursorTransformationModel, which is also the name of the class: "GoGoCursorModel". This name has to be equal with the name which is checked in the CursorTransformationModelFactory.
- Returns:
- name of the model
Implements CursorTransformationModel.
Friends And Related Function Documentation
friend class GoGoCursorModelFactory [friend] |
Member Data Documentation
ArgumentVector* GoGoCursorModel::args [private] |
int GoGoCursorModel::distanceThreshold [private] |
int GoGoCursorModel::headHeight [private] |
float GoGoCursorModel::k [private] |
The documentation for this class was generated from the following files:
- src/inVRs/SystemCore/UserDatabase/GoGoCursorModel.h
- src/inVRs/SystemCore/UserDatabase/GoGoCursorModel.cpp
Generated on Wed Oct 20 16:11:56 2010 for inVRs by
1.5.8