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: MobileTracker.h,v $ 00013 * $Author: johns $ $Locker: $ $State: Exp $ 00014 * $Revision: 1.3 $ $Date: 2019/01/17 21:21:00 $ 00015 * 00016 *************************************************************************** 00017 * DESCRIPTION: 00018 * A Tracker that gets its info from a WiFi smartphone, tablet, etc. 00019 * 00020 ***************************************************************************/ 00021 #ifndef MOBILETRACKER_H 00022 #define MOBILETRACKER_H 00023 00024 #include "P_Tracker.h" 00025 class VMDApp; 00026 00028 class MobileTracker : public VMDTracker { 00029 private: 00030 VMDApp *app; 00031 float transInc, rotInc, scaleInc; 00032 00033 protected: 00034 virtual int do_start(const SensorConfig *); 00035 00036 public: 00037 MobileTracker(VMDApp *); 00038 ~MobileTracker(); 00039 virtual const char *device_name() const { return "mobiletracker"; } 00040 virtual VMDTracker *clone() { return new MobileTracker(app); } 00041 00042 virtual void update(); 00043 inline virtual int alive() { return 1; } 00044 }; 00045 00046 #endif