Panda3D
 All Classes Functions Variables Enumerations
vrpnDialDevice.cxx
1 // Filename: vrpnDialDevice.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 "vrpnDialDevice.h"
16 #include "vrpnClient.h"
17 
18 TypeHandle VrpnDialDevice::_type_handle;
19 
20 ////////////////////////////////////////////////////////////////////
21 // Function: VrpnDialDevice::Constructor
22 // Access: Public
23 // Description:
24 ////////////////////////////////////////////////////////////////////
25 VrpnDialDevice::
26 VrpnDialDevice(VrpnClient *client, const string &device_name,
27  VrpnDial *vrpn_dial) :
28  ClientDialDevice(client, device_name),
29  _vrpn_dial(vrpn_dial)
30 {
31 }
32 
33 ////////////////////////////////////////////////////////////////////
34 // Function: VrpnDialDevice::Destructor
35 // Access: Public
36 // Description:
37 ////////////////////////////////////////////////////////////////////
38 VrpnDialDevice::
39 ~VrpnDialDevice() {
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 DialNode, that records the data from a single named dial de...
This is the actual interface to a particular VRPN dial device, and all of its numbered dials...
Definition: vrpnDial.h:42
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85