Panda3D
 All Classes Functions Variables Enumerations
vrpnAnalogDevice.cxx
1 // Filename: vrpnAnalogDevice.cxx
2 // Created by: drose (26Jan01)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "vrpnAnalogDevice.h"
16 #include "vrpnClient.h"
17 
18 TypeHandle VrpnAnalogDevice::_type_handle;
19 
20 ////////////////////////////////////////////////////////////////////
21 // Function: VrpnAnalogDevice::Constructor
22 // Access: Public
23 // Description:
24 ////////////////////////////////////////////////////////////////////
25 VrpnAnalogDevice::
26 VrpnAnalogDevice(VrpnClient *client, const string &device_name,
27  VrpnAnalog *vrpn_analog) :
28  ClientAnalogDevice(client, device_name),
29  _vrpn_analog(vrpn_analog)
30 {
31 }
32 
33 ////////////////////////////////////////////////////////////////////
34 // Function: VrpnAnalogDevice::Destructor
35 // Access: Public
36 // Description:
37 ////////////////////////////////////////////////////////////////////
38 VrpnAnalogDevice::
39 ~VrpnAnalogDevice() {
40  disconnect();
41 }
A specific ClientBase that connects to a VRPN server and records information on the connected VRPN de...
Definition: vrpnClient.h:38
void disconnect()
Disconnects the ClientDevice from its ClientBase object.
A device, attached to the ClientBase by a AnalogNode, that records the data from a single named analo...
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85
This is the actual interface to a particular VRPN analog device, and all of its numbered controls...
Definition: vrpnAnalog.h:42