00001 // Filename: vrpnTrackerDevice.I 00002 // Created by: drose (25Jan01) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 00020 //////////////////////////////////////////////////////////////////// 00021 // Function: VrpnTrackerDevice::get_sensor 00022 // Access: Public 00023 // Description: Returns the particular sensor index that this device 00024 // wants to hear about from the VrpnTracker. 00025 //////////////////////////////////////////////////////////////////// 00026 INLINE int VrpnTrackerDevice:: 00027 get_sensor() const { 00028 return _sensor; 00029 } 00030 00031 //////////////////////////////////////////////////////////////////// 00032 // Function: VrpnTrackerDevice::get_data_type 00033 // Access: Public 00034 // Description: Returns the type of data this device represents from 00035 // the VrpnTracker. This may be position, velocity, or 00036 // acceleration. 00037 //////////////////////////////////////////////////////////////////// 00038 INLINE VrpnTrackerDevice::DataType VrpnTrackerDevice:: 00039 get_data_type() const { 00040 return _data_type; 00041 } 00042 00043 //////////////////////////////////////////////////////////////////// 00044 // Function: VrpnTrackerDevice::get_vrpn_tracker 00045 // Access: Public 00046 // Description: Returns a pointer to the particular VrpnTracker this 00047 // device gets its data from. This pointer may be 00048 // shared with other VrpnTrackerDevice objects (each 00049 // representing a different portion of the tracker 00050 // data). 00051 //////////////////////////////////////////////////////////////////// 00052 INLINE VrpnTracker *VrpnTrackerDevice:: 00053 get_vrpn_tracker() const { 00054 return _vrpn_tracker; 00055 }