IS3D::PolledDevice Class Reference

#include <PolledDevice.H>

Inherited by IS3D::ICubeXDevice, IS3D::PhantomDevice, IS3D::ShMemEventRelay, IS3D::VRPNAnalogDevice, IS3D::VRPNButtonDevice, and IS3D::VRPNTrackerDevice.

List of all members.

Public Member Functions

 PolledDevice ()
virtual ~PolledDevice ()
virtual void pollForEvents ()=0
void queueEventWithFsaMgr (const char *eventName)
void queueCoordinateFrameEventWithFsaMgr (const char *eventName, double *matrix)


Detailed Description

This is a base class for implementations of devices that generate events. Trackers, phantoms, etc.. If your device driver is callback based and therefore does not need to be polled for events, then you don't need to use this, you can just create events in the callback and queue them up in the FsaMgr right away. This base class requires you to implement a pollForEvents() method where you should queue up your own events. If you use IS3D and you register your implementation with the DeviceMgr then your pollForEvents() method will get called at an appropriate time each frame.

Constructor & Destructor Documentation

IS3D::PolledDevice::PolledDevice (  )  [inline]

virtual IS3D::PolledDevice::~PolledDevice (  )  [inline, virtual]


Member Function Documentation

virtual void IS3D::PolledDevice::pollForEvents (  )  [pure virtual]

void IS3D::PolledDevice::queueEventWithFsaMgr ( const char *  eventName  ) 

Queue an event with IS3D, use this generic method if your device driver needs to avoid including any IS3D/G3D files because of conflicts

void IS3D::PolledDevice::queueCoordinateFrameEventWithFsaMgr ( const char *  eventName,
double *  matrix 
)

Queue an event with IS3D, use this generic method if your device driver needs to avoid including any IS3D/G3D files because of conflicts


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

Generated on Wed Jan 26 06:31:20 2011 for IS3D by  doxygen 1.5.6