Panda3D
clientTrackerDevice.I
1 // Filename: clientTrackerDevice.I
2 // Created by: drose (25Jan01)
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 ////////////////////////////////////////////////////////////////////
17 // Function: ClientTrackerDevice::Constructor
18 // Access: Protected
19 // Description:
20 ////////////////////////////////////////////////////////////////////
21 INLINE ClientTrackerDevice::
22 ClientTrackerDevice(ClientBase *client, const string &device_name):
23  ClientDevice(client, get_class_type(), device_name)
24 {
25 }
26 
27 ////////////////////////////////////////////////////////////////////
28 // Function: ClientTrackerDevice::get_data
29 // Access: Public
30 // Description: Returns the TrackerData that this device is
31 // reporting.
32 ////////////////////////////////////////////////////////////////////
34 get_data() const {
35  return _data;
36 }
37 
const TrackerData & get_data() const
Returns the TrackerData that this device is reporting.
Stores the kinds of data that a tracker might output.
Definition: trackerData.h:25
An abstract base class for a family of client device interfaces–including trackers, buttons, dials, and other analog inputs.
Definition: clientBase.h:47
Any of a number of different devices that might be attached to a ClientBase, including trackers...
Definition: clientDevice.h:35