Panda3D
clientTrackerDevice.h
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 clientTrackerDevice.h
10  * @author drose
11  * @date 2001-01-25
12  */
13 
14 #ifndef CLIENTTRACKERDEVICE_H
15 #define CLIENTTRACKERDEVICE_H
16 
17 #include "pandabase.h"
18 
19 #include "clientDevice.h"
20 #include "trackerData.h"
21 
22 /**
23  * A device, attached to the ClientBase by a TrackerNode, that records the
24  * data from a single tracker device.
25  */
26 class EXPCL_PANDA_DEVICE ClientTrackerDevice : public ClientDevice {
27 protected:
28  INLINE ClientTrackerDevice(ClientBase *client, const std::string &device_name);
29 
30 public:
31  static TypeHandle get_class_type() {
32  return _type_handle;
33  }
34  static void init_type() {
35  ClientDevice::init_type();
36  register_type(_type_handle, "ClientTrackerDevice",
37  ClientDevice::get_class_type());
38  }
39  virtual TypeHandle get_type() const {
40  return get_class_type();
41  }
42  virtual TypeHandle force_init_type() {init_type(); return get_class_type();}
43 
44 private:
45  static TypeHandle _type_handle;
46 };
47 
48 #include "clientTrackerDevice.I"
49 
50 #endif
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
Definition: register_type.I:22
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A device, attached to the ClientBase by a TrackerNode, that records the data from a single tracker de...
An abstract base class for a family of client device interfaces–including trackers,...
Definition: clientBase.h:43
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
TypeHandle is the identifier used to differentiate C++ class types.
Definition: typeHandle.h:81
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Any of a number of different devices that might be attached to a ClientBase, including trackers,...
Definition: clientDevice.h:27