OpenTracker

An Open Architecture for Reconfigurable Tracking based on XML | Contact

ot::P5GloveModule Class Reference

#include <P5GloveModule.h>

Inheritance diagram for ot::P5GloveModule:

Inheritance graph
[legend]
Collaboration diagram for ot::P5GloveModule:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 P5GloveModule ()
virtual ~P5GloveModule ()
virtual void init (StringTable &attributes, ConfigNode *localTree)
virtual NodecreateNode (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 (  ) 

constructor method.

Definition at line 77 of file P5GloveModule.cxx.

References P5device.

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
Returns:
pointer to new Node or NULL. The new Node must be allocated with new !

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 (  ) 

Definition at line 256 of file P5GloveModule.cxx.

References fFilterX, fFilterY, fFilterZ, ot::fXPos, ot::fYPos, ot::fZPos, P5device, and P5Id.

Referenced by P5Motion_Process().

void ot::P5GloveModule::P5Motion_FilterYPR (  ) 

void ot::P5GloveModule::P5Motion_InvertMouse ( int  xaxis,
int  yaxis,
int  zaxis 
)

void ot::P5GloveModule::P5Motion_SetClipRegion ( int  xstart,
int  xend,
int  ystart,
int  yend,
int  zstart,
int  zend 
)

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 111 of file P5GloveModule.h.

Referenced by P5Motion_Process(), and pushEvent().

Definition at line 111 of file P5GloveModule.h.

Referenced by P5Motion_Process(), and pushEvent().

Definition at line 111 of file P5GloveModule.h.

Referenced by P5Motion_Process(), and pushEvent().

Definition at line 112 of file P5GloveModule.h.

Referenced by P5Motion_Process().

Definition at line 112 of file P5GloveModule.h.

Referenced by P5Motion_Process().

Definition at line 112 of file P5GloveModule.h.

Referenced by P5Motion_Process().

Definition at line 110 of file P5GloveModule.h.

Referenced by P5Motion_Process().

Definition at line 110 of file P5GloveModule.h.

Referenced by P5Motion_Process().

Definition at line 110 of file P5GloveModule.h.

Referenced by P5Motion_Process().

list of P5GloveSource nodes in the tree

Definition at line 89 of file P5GloveModule.h.

Referenced by pushEvent(), and ~P5GloveModule().

Definition at line 109 of file P5GloveModule.h.

Referenced by P5Motion_Process().

Definition at line 109 of file P5GloveModule.h.

Referenced by P5Motion_Process().

Definition at line 109 of file P5GloveModule.h.

Referenced by P5Motion_Process().


The documentation for this class was generated from the following files:

copyright (c) 2006 Graz University of Technology