Panda3D
 All Classes Functions Variables Enumerations
vrpnTrackerDevice.cxx
00001 // Filename: vrpnTrackerDevice.cxx
00002 // Created by:  drose (25Jan01)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "vrpnTrackerDevice.h"
00016 #include "vrpnClient.h"
00017 
00018 TypeHandle VrpnTrackerDevice::_type_handle;
00019 
00020 ////////////////////////////////////////////////////////////////////
00021 //     Function: VrpnTrackerDevice::Constructor
00022 //       Access: Public
00023 //  Description:
00024 ////////////////////////////////////////////////////////////////////
00025 VrpnTrackerDevice::
00026 VrpnTrackerDevice(VrpnClient *client, const string &device_name,
00027                   int sensor, VrpnTrackerDevice::DataType data_type,
00028                   VrpnTracker *vrpn_tracker) :
00029   ClientTrackerDevice(client, device_name),
00030   _sensor(sensor),
00031   _data_type(data_type),
00032   _vrpn_tracker(vrpn_tracker)
00033 {
00034 }
00035 
00036 ////////////////////////////////////////////////////////////////////
00037 //     Function: VrpnTrackerDevice::Destructor
00038 //       Access: Public
00039 //  Description:
00040 ////////////////////////////////////////////////////////////////////
00041 VrpnTrackerDevice::
00042 ~VrpnTrackerDevice() {
00043   disconnect();
00044 }
 All Classes Functions Variables Enumerations