00001 /*************************************************************************** 00002 *cr 00003 *cr (C) Copyright 1995-2019 The Board of Trustees of the 00004 *cr University of Illinois 00005 *cr All Rights Reserved 00006 *cr 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * RCS INFORMATION: 00011 * 00012 * $RCSfile: P_Tracker.C,v $ 00013 * $Author: johns $ $Locker: $ $State: Exp $ 00014 * $Revision: 1.24 $ $Date: 2019/01/17 21:21:01 $ 00015 * 00016 *************************************************************************** 00017 * DESCRIPTION: 00018 * This is Paul's new Tracker code -- pgrayson@ks.uiuc.edu 00019 * 00020 * 00021 ***************************************************************************/ 00022 00023 #include <string.h> 00024 #include "Matrix4.h" 00025 #include "P_Tracker.h" 00026 00027 VMDTracker::VMDTracker() { 00028 dim = 3; 00029 pos[0]=pos[1]=pos[2]=0; 00030 orient = new Matrix4(); 00031 orient->identity(); 00032 } 00033 00034 VMDTracker::~VMDTracker() { 00035 delete orient; 00036 } 00037 00038 int VMDTracker::start(const SensorConfig *config) { 00039 set_scale(config->getscale()); 00040 set_offset(config->getoffset()); 00041 set_right_rot(config->getright_rot()); 00042 set_left_rot(config->getleft_rot()); 00043 return do_start(config); 00044 } 00045 00046