Panda3D
 All Classes Functions Variables Enumerations
vrpnDial.I
1 // Filename: vrpnDial.I
2 // Created by: drose (26Jan01)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 ////////////////////////////////////////////////////////////////////
16 // Function: VrpnDial::get_dial_name
17 // Access: Public
18 // Description: Returns the name of the dial device that was used
19 // to create this VrpnDial.
20 ////////////////////////////////////////////////////////////////////
21 INLINE const string &VrpnDial::
22 get_dial_name() const {
23  return _dial_name;
24 }
25 
26 ////////////////////////////////////////////////////////////////////
27 // Function: VrpnDial::is_empty
28 // Access: Public
29 // Description: Returns true if no VrpnDialDevices reference this
30 // VrpnDial, or false otherwise.
31 ////////////////////////////////////////////////////////////////////
32 INLINE bool VrpnDial::
33 is_empty() const {
34  return _devices.empty();
35 }
36 
37 ////////////////////////////////////////////////////////////////////
38 // Function: VrpnDial::poll
39 // Access: Public
40 // Description: Polls the connected device. Normally you should not
41 // call this directly; this will be called by the
42 // VrpnClient.
43 ////////////////////////////////////////////////////////////////////
44 INLINE void VrpnDial::
45 poll() {
46  _dial->mainloop();
47 }
const string & get_dial_name() const
Returns the name of the dial device that was used to create this VrpnDial.
Definition: vrpnDial.I:22
bool is_empty() const
Returns true if no VrpnDialDevices reference this VrpnDial, or false otherwise.
Definition: vrpnDial.I:33
void poll()
Polls the connected device.
Definition: vrpnDial.I:45