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