ot::P5GloveModule Class Reference
#include <P5GloveModule.h>
Inheritance diagram for ot::P5GloveModule:


Public Member Functions | |
| P5GloveModule () | |
| virtual | ~P5GloveModule () |
| virtual void | init (StringTable &attributes, ConfigNode *localTree) |
| virtual Node * | createNode (const std::string &name, StringTable &attributes) |
| virtual void | close () |
| virtual void | start () |
| virtual void | pushEvent () |
| void | P5Motion_SetClipRegion (int xstart, int xend, int ystart, int yend, int zstart, int zend) |
| void | P5Motion_InvertMouse (int xaxis, int yaxis, int zaxis) |
| void | P5Motion_Process () |
| void | P5Motion_FilterXYZ () |
| void | P5Motion_FilterYPR () |
Public Attributes | |
| CP5DLL * | P5device |
| int | P5Id |
| int | nXPos |
| int | nYPos |
| int | nZPos |
| float | fXMickey |
| float | fYMickey |
| float | fZMickey |
| float | fAbsYawPos |
| float | fAbsPitchPos |
| float | fAbsRollPos |
| float | fRelYawPos |
| float | fRelPitchPos |
| float | fRelRollPos |
| float | fFilterX |
| float | fFilterY |
| float | fFilterZ |
Protected Attributes | |
| NodeVector | nodes |
Detailed Description
Definition at line 84 of file P5GloveModule.h.
Constructor & Destructor Documentation
| ot::P5GloveModule::P5GloveModule | ( | ) |
| ot::P5GloveModule::~P5GloveModule | ( | ) | [virtual] |
Destructor method, clears nodes member.
Definition at line 83 of file P5GloveModule.cxx.
References nodes.
Member Function Documentation
| void ot::P5GloveModule::close | ( | ) | [virtual] |
closes P5Glove
Reimplemented from ot::Module.
Definition at line 147 of file P5GloveModule.cxx.
References ot::Module::isInitialized(), and P5device.
| virtual Node* ot::P5GloveModule::createNode | ( | const std::string & | name, | |
| StringTable & | attributes | |||
| ) | [virtual] |
This method is called to construct a new Node.
It compares name to the P5GloveSource element name, and if it matches creates a new P5GloveSource node.
- Parameters:
-
name reference to string containing element name reference to StringTable containing attribute values
Implements ot::NodeFactory.
| void ot::P5GloveModule::init | ( | StringTable & | attributes, | |
| ConfigNode * | localTree | |||
| ) | [virtual] |
initializes the P5Glove module
- Parameters:
-
attributes StringTable of elements attribute values. Should be possibly , but is not for convenience. localTree pointer to root of configuration nodes tree
Reimplemented from ot::Module.
Definition at line 89 of file P5GloveModule.cxx.
References ot::StringTable::get(), ot::Module::init(), and P5Id.
| void ot::P5GloveModule::P5Motion_FilterXYZ | ( | ) |
| void ot::P5GloveModule::P5Motion_FilterYPR | ( | ) |
Definition at line 361 of file P5GloveModule.cxx.
References ot::fFilterPitch, ot::fFilterRoll, ot::fFilterYaw, ot::fPitch, ot::fRoll, ot::fYaw, P5device, and P5Id.
Referenced by P5Motion_Process().
| void ot::P5GloveModule::P5Motion_InvertMouse | ( | int | xaxis, | |
| int | yaxis, | |||
| int | zaxis | |||
| ) |
| void ot::P5GloveModule::P5Motion_Process | ( | ) |
Definition at line 415 of file P5GloveModule.cxx.
References fAbsPitchPos, fAbsRollPos, fAbsYawPos, ot::fFilterPitch, ot::fFilterRoll, fFilterX, fFilterY, ot::fFilterYaw, fFilterZ, fRelPitchPos, fRelRollPos, fRelYawPos, fXMickey, fYMickey, fZMickey, ot::nxclipend, ot::nxclipstart, ot::nxinvert, nXPos, ot::nyclipend, ot::nyclipstart, ot::nyinvert, nYPos, ot::nzclipend, ot::nzclipstart, ot::nzinvert, nZPos, P5Motion_FilterXYZ(), and P5Motion_FilterYPR().
Referenced by pushEvent().
| void ot::P5GloveModule::P5Motion_SetClipRegion | ( | int | xstart, | |
| int | xend, | |||
| int | ystart, | |||
| int | yend, | |||
| int | zstart, | |||
| int | zend | |||
| ) |
Definition at line 222 of file P5GloveModule.cxx.
References ot::nxclipend, ot::nxclipstart, ot::nyclipend, ot::nyclipstart, ot::nzclipend, and ot::nzclipstart.
| void ot::P5GloveModule::pushEvent | ( | ) | [virtual] |
pushes events into the tracker tree.
Checks all P5GloveSources and pushes new events, if a P5GloveSource fires. The events store structure with position and status of the buttons.
button not implemented yet if the button is pushed (changes event) in any event --> button clicked there is only one button, so event.getButton() = 0 OR 1
Reimplemented from ot::Module.
Definition at line 158 of file P5GloveModule.cxx.
References ot::MathUtils::eulerToQuaternion(), fAbsPitchPos, fAbsRollPos, fAbsYawPos, fFilterX, fFilterY, fFilterZ, ot::Module::isInitialized(), nodes, P5device, P5Id, P5Motion_Process(), and ot::MathUtils::Pi.
| void ot::P5GloveModule::start | ( | ) | [virtual] |
starts P5Glove
Reimplemented from ot::Module.
Definition at line 124 of file P5GloveModule.cxx.
References ot::Module::isInitialized(), P5device, and P5Id.
Member Data Documentation
Definition at line 113 of file P5GloveModule.h.
Referenced by P5Motion_FilterXYZ(), P5Motion_Process(), and pushEvent().
Definition at line 113 of file P5GloveModule.h.
Referenced by P5Motion_FilterXYZ(), P5Motion_Process(), and pushEvent().
Definition at line 113 of file P5GloveModule.h.
Referenced by P5Motion_FilterXYZ(), P5Motion_Process(), and pushEvent().
NodeVector ot::P5GloveModule::nodes [protected] |
list of P5GloveSource nodes in the tree
Definition at line 89 of file P5GloveModule.h.
Referenced by pushEvent(), and ~P5GloveModule().
| CP5DLL* ot::P5GloveModule::P5device |
Definition at line 93 of file P5GloveModule.h.
Referenced by close(), P5GloveModule(), P5Motion_FilterXYZ(), P5Motion_FilterYPR(), pushEvent(), and start().
Definition at line 94 of file P5GloveModule.h.
Referenced by init(), P5Motion_FilterXYZ(), P5Motion_FilterYPR(), pushEvent(), and start().
The documentation for this class was generated from the following files: