Panda3D
vrpnTrackerDevice.cxx
1 // Filename: vrpnTrackerDevice.cxx
2 // Created by: drose (25Jan01)
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 "vrpnTrackerDevice.h"
16 #include "vrpnClient.h"
17 
18 TypeHandle VrpnTrackerDevice::_type_handle;
19 
20 ////////////////////////////////////////////////////////////////////
21 // Function: VrpnTrackerDevice::Constructor
22 // Access: Public
23 // Description:
24 ////////////////////////////////////////////////////////////////////
25 VrpnTrackerDevice::
26 VrpnTrackerDevice(VrpnClient *client, const string &device_name,
27  int sensor, VrpnTrackerDevice::DataType data_type,
28  VrpnTracker *vrpn_tracker) :
29  ClientTrackerDevice(client, device_name),
30  _sensor(sensor),
31  _data_type(data_type),
32  _vrpn_tracker(vrpn_tracker)
33 {
34 }
35 
36 ////////////////////////////////////////////////////////////////////
37 // Function: VrpnTrackerDevice::Destructor
38 // Access: Public
39 // Description:
40 ////////////////////////////////////////////////////////////////////
41 VrpnTrackerDevice::
42 ~VrpnTrackerDevice() {
43  disconnect();
44 }
A specific ClientBase that connects to a VRPN server and records information on the connected VRPN de...
Definition: vrpnClient.h:38
This is the actual interface to a particular VRPN tracker object, and all of its sensors.
Definition: vrpnTracker.h:41
A device, attached to the ClientBase by a TrackerNode, that records the data from a single tracker de...
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:85