Panda3D
Public Member Functions
VrpnAnalog Class Reference

This is the actual interface to a particular VRPN analog device, and all of its numbered controls. More...

#include "vrpnAnalog.h"

List of all members.

Public Member Functions

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

Detailed Description

This is the actual interface to a particular VRPN analog device, and all of its numbered controls.

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

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

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

Definition at line 42 of file vrpnAnalog.h.


Member Function Documentation

const string & VrpnAnalog::get_analog_name ( ) const [inline]

Returns the name of the analog device that was used to create this VrpnAnalog.

Definition at line 22 of file vrpnAnalog.I.

bool VrpnAnalog::is_empty ( ) const [inline]

Returns true if no VrpnAnalogDevices reference this VrpnAnalog, or false otherwise.

Definition at line 33 of file vrpnAnalog.I.

void VrpnAnalog::mark ( VrpnAnalogDevice device)

Adds the indicated VrpnAnalogDevice to the list of devices that are sharing this VrpnAnalog.

Definition at line 55 of file vrpnAnalog.cxx.

void VrpnAnalog::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 vrpnAnalog.I.

Referenced by VrpnClient::do_poll().

Removes the indicated VrpnAnalogDevice from the list of devices that are sharing this VrpnAnalog.

Definition at line 69 of file vrpnAnalog.cxx.


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