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