Panda3D

vrpnTracker.I

00001 // Filename: vrpnTracker.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 //     Function: VrpnTracker::get_tracker_name
00017 //       Access: Public
00018 //  Description: Returns the name of the tracker device that was used
00019 //               to create this VrpnTracker.
00020 ////////////////////////////////////////////////////////////////////
00021 INLINE const string &VrpnTracker::
00022 get_tracker_name() const {
00023   return _tracker_name;
00024 }
00025 
00026 ////////////////////////////////////////////////////////////////////
00027 //     Function: VrpnTracker::is_empty
00028 //       Access: Public
00029 //  Description: Returns true if no VrpnTrackerDevices reference this
00030 //               VrpnTracker, or false otherwise.
00031 ////////////////////////////////////////////////////////////////////
00032 INLINE bool VrpnTracker::
00033 is_empty() const {
00034   return _devices.empty();
00035 }
00036 
00037 ////////////////////////////////////////////////////////////////////
00038 //     Function: VrpnTracker::poll
00039 //       Access: Public
00040 //  Description: Polls the connected device.  Normally you should not
00041 //               call this directly; this will be called by the
00042 //               VrpnClient.
00043 ////////////////////////////////////////////////////////////////////
00044 INLINE void VrpnTracker::
00045 poll() {
00046   _tracker->mainloop();
00047 }
 All Classes Functions Variables Enumerations