Panda3D
vrpnTrackerDevice.I
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file vrpnTrackerDevice.I
10  * @author drose
11  * @date 2001-01-25
12  */
13 
14 /**
15  * Returns the particular sensor index that this device wants to hear about
16  * from the VrpnTracker.
17  */
18 INLINE int VrpnTrackerDevice::
19 get_sensor() const {
20  return _sensor;
21 }
22 
23 /**
24  * Returns the type of data this device represents from the VrpnTracker. This
25  * may be position, velocity, or acceleration.
26  */
27 INLINE VrpnTrackerDevice::DataType VrpnTrackerDevice::
28 get_data_type() const {
29  return _data_type;
30 }
31 
32 /**
33  * Returns a pointer to the particular VrpnTracker this device gets its data
34  * from. This pointer may be shared with other VrpnTrackerDevice objects
35  * (each representing a different portion of the tracker data).
36  */
39  return _vrpn_tracker;
40 }
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:37