Panda3D
Public Member Functions

VrpnTracker Class Reference

This is the actual interface to a particular VRPN tracker object, and all of its sensors. More...

#include "vrpnTracker.h"

List of all members.

Public Member Functions

 VrpnTracker (const string &tracker_name, vrpn_Connection *connection)
const string & get_tracker_name () const
 Returns the name of the tracker device that was used to create this VrpnTracker.
bool is_empty () const
 Returns true if no VrpnTrackerDevices reference this VrpnTracker, or false otherwise.
void mark (VrpnTrackerDevice *device)
 Adds the indicated VrpnTrackerDevice to the list of devices that are sharing this VrpnTracker.
void output (ostream &out) const
void poll ()
 Polls the connected device.
void unmark (VrpnTrackerDevice *device)
 Removes the indicated VrpnTrackerDevice from the list of devices that are sharing this VrpnTracker.
void write (ostream &out, int indent_level=0) const

Detailed Description

This is the actual interface to a particular VRPN tracker object, and all of its sensors.

A pointer to this object is stored in the VrpnClient class for each differently-named VRPN tracker we connect to.

The VRPN callbacks go here, which in turn get vectored out to any VrpnTrackerDevice objects that register with this. When the last VrpnTrackerDevice object unregisters, the VrpnTracker will be deleted by the VrpnClient.

This class does not need to be exported from the DLL.

Definition at line 41 of file vrpnTracker.h.


Member Function Documentation

const string & VrpnTracker::get_tracker_name ( ) const [inline]

Returns the name of the tracker device that was used to create this VrpnTracker.

Definition at line 22 of file vrpnTracker.I.

bool VrpnTracker::is_empty ( ) const [inline]

Returns true if no VrpnTrackerDevices reference this VrpnTracker, or false otherwise.

Definition at line 33 of file vrpnTracker.I.

void VrpnTracker::mark ( VrpnTrackerDevice device)

Adds the indicated VrpnTrackerDevice to the list of devices that are sharing this VrpnTracker.

Definition at line 57 of file vrpnTracker.cxx.

void VrpnTracker::poll ( ) [inline]

Polls the connected device.

Normally you should not call this directly; this will be called by the VrpnClient.

Definition at line 45 of file vrpnTracker.I.

Referenced by VrpnClient::do_poll().

void VrpnTracker::unmark ( VrpnTrackerDevice device)

Removes the indicated VrpnTrackerDevice from the list of devices that are sharing this VrpnTracker.

Definition at line 71 of file vrpnTracker.cxx.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations