ot::VRPNSource Class Reference
[Network Classes]
VRPN client interface node.
More...
#include <VRPNSource.h>
Inheritance diagram for ot::VRPNSource:


Public Types | |
| TRACKER | |
| BUTTON | |
| enum | Type { TRACKER, BUTTON } |
Public Member Functions | |
| virtual int | isEventGenerator () |
| virtual | ~VRPNSource () |
Public Attributes | |
| std::string | name |
| enum ot::VRPNSource::Type | type |
| int | station |
| Event | event |
Protected Member Functions | |
| VRPNSource () | |
| void | start () |
| void | mainloop () |
Protected Attributes | |
| vrpn_BaseClass * | trackerObj |
Friends | |
| class | VRPNModule |
Detailed Description
VRPN client interface node.Connects to a VRPN server and reports incoming tracking data.
- Author:
- Gerhard Reitmayr
Definition at line 81 of file VRPNSource.h.
Member Enumeration Documentation
| enum ot::VRPNSource::Type |
Constructor & Destructor Documentation
| VRPNSource::VRPNSource | ( | ) | [protected] |
| VRPNSource::~VRPNSource | ( | ) | [virtual] |
Member Function Documentation
| virtual int ot::VRPNSource::isEventGenerator | ( | ) | [inline, virtual] |
tests for EventGenerator interface being present.
Is overriden to return 1 always.
- Returns:
- always 1
Reimplemented from ot::Node.
Definition at line 115 of file VRPNSource.h.
| void VRPNSource::mainloop | ( | ) | [protected] |
Executes the vrpn object's mainloop.
Only for internal use by the associated module.
Definition at line 141 of file VRPNSource.cxx.
References trackerObj.
| void VRPNSource::start | ( | ) | [protected] |
Opens connection to the VRPN server.
Only for internal use by the associated module.
Definition at line 119 of file VRPNSource.cxx.
References BUTTON, buttonChangeCallback(), name, TRACKER, trackerObj, trackerPosOriCallback(), and type.
Friends And Related Function Documentation
friend class VRPNModule [friend] |
Definition at line 123 of file VRPNSource.h.
Member Data Documentation
| std::string ot::VRPNSource::name |
name
Reimplemented from ot::Node.
Definition at line 85 of file VRPNSource.h.
Referenced by ot::VRPNModule::createNode(), and start().
station number of station to report
Definition at line 89 of file VRPNSource.h.
Referenced by ot::VRPNModule::createNode().
vrpn_BaseClass* ot::VRPNSource::trackerObj [protected] |
data pointer to underlying vrpn object
Definition at line 96 of file VRPNSource.h.
Referenced by mainloop(), start(), and ~VRPNSource().
type of connection
Reimplemented from ot::Node.
Referenced by ot::VRPNModule::createNode(), and start().
The documentation for this class was generated from the following files: