Panda3D

vrpnTrackerDevice.I

00001 // Filename: vrpnTrackerDevice.I
00002 // Created by:  drose (25Jan01)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////
00017 //     Function: VrpnTrackerDevice::get_sensor
00018 //       Access: Public
00019 //  Description: Returns the particular sensor index that this device
00020 //               wants to hear about from the VrpnTracker.
00021 ////////////////////////////////////////////////////////////////////
00022 INLINE int VrpnTrackerDevice::
00023 get_sensor() const {
00024   return _sensor;
00025 }
00026 
00027 ////////////////////////////////////////////////////////////////////
00028 //     Function: VrpnTrackerDevice::get_data_type
00029 //       Access: Public
00030 //  Description: Returns the type of data this device represents from
00031 //               the VrpnTracker.  This may be position, velocity, or
00032 //               acceleration.
00033 ////////////////////////////////////////////////////////////////////
00034 INLINE VrpnTrackerDevice::DataType VrpnTrackerDevice::
00035 get_data_type() const {
00036   return _data_type;
00037 }
00038 
00039 ////////////////////////////////////////////////////////////////////
00040 //     Function: VrpnTrackerDevice::get_vrpn_tracker
00041 //       Access: Public
00042 //  Description: Returns a pointer to the particular VrpnTracker this
00043 //               device gets its data from.  This pointer may be
00044 //               shared with other VrpnTrackerDevice objects (each
00045 //               representing a different portion of the tracker
00046 //               data).
00047 ////////////////////////////////////////////////////////////////////
00048 INLINE VrpnTracker *VrpnTrackerDevice::
00049 get_vrpn_tracker() const {
00050   return _vrpn_tracker;
00051 }
 All Classes Functions Variables Enumerations