OpenTracker

An Open Architecture for Reconfigurable Tracking based on XML | Contact

ot::VRPNSource Class Reference
[Network Classes]

VRPN client interface node. More...

#include <VRPNSource.h>

Inheritance diagram for ot::VRPNSource:

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

Collaboration graph
[legend]
List of all members.

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

type of connection

Enumerator:
TRACKER 
BUTTON 

Definition at line 87 of file VRPNSource.h.


Constructor & Destructor Documentation

VRPNSource::VRPNSource (  )  [protected]

constructor method,sets commend member

Definition at line 101 of file VRPNSource.cxx.

VRPNSource::~VRPNSource (  )  [virtual]

destructor

Definition at line 110 of file VRPNSource.cxx.

References trackerObj.


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

event object for data flow

Definition at line 91 of file VRPNSource.h.

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:

copyright (c) 2006 Graz University of Technology