Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

SpaceballTracker.h

Go to the documentation of this file.
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: SpaceballTracker.h,v $
00013  *      $Author: johns $        $Locker:  $             $State: Exp $
00014  *      $Revision: 1.17 $       $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  * A Tracker that gets its info from the Spaceball driver.
00021  *
00022  ***************************************************************************/
00023 #ifndef SPACEBALLTRACKER_H
00024 #define SPACEBALLTRACKER_H
00025 
00026 #include "P_Tracker.h"
00027 #if defined(VMDLIBSBALL)
00028 #include "sball.h"
00029 #endif
00030 class VMDApp;
00031 
00033 class SpaceballTracker : public VMDTracker {
00034 private:
00035   VMDApp *app;
00036   int uselocal;                      
00037 #if defined(VMDLIBSBALL)
00038   SBallHandle sball;                 
00039 #endif
00040   float transInc, rotInc, scaleInc;
00041 
00042 protected:
00043   virtual int do_start(const SensorConfig *);
00044  
00045 public:
00046   SpaceballTracker(VMDApp *);
00047   ~SpaceballTracker();
00048   virtual const char *device_name() const { return "sballtracker"; } 
00049   virtual VMDTracker *clone() { return new SpaceballTracker(app); }
00050 
00051   virtual void update();
00052   inline virtual int alive() { return 1; }
00053 };
00054 
00055 #endif

Generated on Tue Dec 10 02:46:22 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002