Panda3D
Loading...
Searching...
No Matches
clientDevice.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 clientDevice.I
10 * @author drose
11 * @date 2001-01-25
12 */
13
14/**
15 * Returns the ClientBase this device is associated with.
16 */
18get_client() const {
19 return _client;
20}
21
22/**
23 * Returns the type of device this is considered to be to the ClientBase: a
24 * ClientTrackerDevice, ClientAnalogDevice, or what have you. This is not
25 * exactly the same thing as get_type(), because it does not return the exact
26 * type of the ClientDevice (e.g. it reports ClientTrackerDevice, not
27 * VrpnTrackerDevice).
28 */
30get_device_type() const {
31 return _device_type;
32}
An abstract base class for a family of client device interfaces–including trackers,...
Definition clientBase.h:43
ClientBase * get_client() const
Returns the ClientBase this device is associated with.
TypeHandle get_device_type() const
Returns the type of device this is considered to be to the ClientBase: a ClientTrackerDevice,...
TypeHandle is the identifier used to differentiate C++ class types.
Definition typeHandle.h:81