Panda3D
 All Classes Functions Variables Enumerations
vrpnAnalog.I
00001 // Filename: vrpnAnalog.I
00002 // Created by:  drose (26Jan01)
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: VrpnAnalog::get_analog_name
00017 //       Access: Public
00018 //  Description: Returns the name of the analog device that was used
00019 //               to create this VrpnAnalog.
00020 ////////////////////////////////////////////////////////////////////
00021 INLINE const string &VrpnAnalog::
00022 get_analog_name() const {
00023   return _analog_name;
00024 }
00025 
00026 ////////////////////////////////////////////////////////////////////
00027 //     Function: VrpnAnalog::is_empty
00028 //       Access: Public
00029 //  Description: Returns true if no VrpnAnalogDevices reference this
00030 //               VrpnAnalog, or false otherwise.
00031 ////////////////////////////////////////////////////////////////////
00032 INLINE bool VrpnAnalog::
00033 is_empty() const {
00034   return _devices.empty();
00035 }
00036 
00037 ////////////////////////////////////////////////////////////////////
00038 //     Function: VrpnAnalog::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 VrpnAnalog::
00045 poll() {
00046   _analog->mainloop();
00047 }
 All Classes Functions Variables Enumerations