Panda3D
vrpnTrackerDevice.I
1 // Filename: vrpnTrackerDevice.I
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 
16 ////////////////////////////////////////////////////////////////////
17 // Function: VrpnTrackerDevice::get_sensor
18 // Access: Public
19 // Description: Returns the particular sensor index that this device
20 // wants to hear about from the VrpnTracker.
21 ////////////////////////////////////////////////////////////////////
22 INLINE int VrpnTrackerDevice::
23 get_sensor() const {
24  return _sensor;
25 }
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: VrpnTrackerDevice::get_data_type
29 // Access: Public
30 // Description: Returns the type of data this device represents from
31 // the VrpnTracker. This may be position, velocity, or
32 // acceleration.
33 ////////////////////////////////////////////////////////////////////
34 INLINE VrpnTrackerDevice::DataType VrpnTrackerDevice::
35 get_data_type() const {
36  return _data_type;
37 }
38 
39 ////////////////////////////////////////////////////////////////////
40 // Function: VrpnTrackerDevice::get_vrpn_tracker
41 // Access: Public
42 // Description: Returns a pointer to the particular VrpnTracker this
43 // device gets its data from. This pointer may be
44 // shared with other VrpnTrackerDevice objects (each
45 // representing a different portion of the tracker
46 // data).
47 ////////////////////////////////////////////////////////////////////
50  return _vrpn_tracker;
51 }
DataType get_data_type() const
Returns the type of data this device represents from the VrpnTracker.
VrpnTracker * get_vrpn_tracker() const
Returns a pointer to the particular VrpnTracker this device gets its data from.
int get_sensor() const
Returns the particular sensor index that this device wants to hear about from the VrpnTracker...
This is the actual interface to a particular VRPN tracker object, and all of its sensors.
Definition: vrpnTracker.h:41