Main Page | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields

osgTracker::VRPNTracker Class Reference

Tracker interface for connecting to a VRPN server.

Inherits osgTracker::Tracker.


Public Member Functions

 VRPNTracker (std::string trackerName)
virtual void update ()
void updateFromVRPN (const vrpn_TRACKERCB info)
virtual bool requestSensor (unsigned int sensorID)


Constructor & Destructor Documentation

VRPNTracker::VRPNTracker std::string  trackerName  ) 
 

Creates a tracker that is a vrpn client and updates the transform based on the readings sent by the vrpn server

Parameters:
trackerName the name of the tracker


Member Function Documentation

bool VRPNTracker::requestSensor unsigned int  sensorID  )  [virtual]
 

requests a sensor to be associated with a given transform

Parameters:
sensorID the sensor ID

Reimplemented from osgTracker::Tracker.

void VRPNTracker::update void   )  [virtual]
 

update is called by the tracker handler. It sets all transforms as not being tracked and calls vrpn mainloop.

Implements osgTracker::Tracker.

void VRPNTracker::updateFromVRPN const vrpn_TRACKERCB  info  ) 
 

a callback function called by VRPN when a new tracker reading is available


The documentation for this class was generated from the following files:
Generated on Wed Nov 17 12:22:38 2004 for osgAR by doxygen 1.3.7