Panda3D
Loading...
Searching...
No Matches
vrpnTrackerDevice.cxx
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 vrpnTrackerDevice.cxx
10 * @author drose
11 * @date 2001-01-25
12 */
13
14#include "vrpnTrackerDevice.h"
15#include "vrpnClient.h"
16
17TypeHandle VrpnTrackerDevice::_type_handle;
18
19/**
20 *
21 */
22VrpnTrackerDevice::
23VrpnTrackerDevice(VrpnClient *client, const std::string &device_name,
24 int sensor, VrpnTrackerDevice::DataType data_type,
25 VrpnTracker *vrpn_tracker) :
26 ClientTrackerDevice(client, device_name),
27 _sensor(sensor),
28 _data_type(data_type),
29 _vrpn_tracker(vrpn_tracker)
30{
31}
32
33/**
34 *
35 */
36VrpnTrackerDevice::
37~VrpnTrackerDevice() {
38 disconnect();
39}
void disconnect()
Disconnects the ClientDevice from its ClientBase object.
A device, attached to the ClientBase by a TrackerNode, that records the data from a single tracker de...
TypeHandle is the identifier used to differentiate C++ class types.
Definition typeHandle.h:81
A specific ClientBase that connects to a VRPN server and records information on the connected VRPN de...
Definition vrpnClient.h:35
This is the actual interface to a particular VRPN tracker object, and all of its sensors.
Definition vrpnTracker.h:37
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.