00001 // suTrackPoint.h 00002 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 00003 // Copyright 2002-2003 00004 // Authors: Frank C. Anderson, Darryl G. Thelen 00005 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 00006 #ifndef __suTrackPoint_h__ 00007 #define __suTrackPoint_h__ 00008 00009 00010 //============================================================================ 00011 // INCLUDE 00012 //============================================================================ 00013 #include "suTrackControllerDLL.h" 00014 #include <rdModel.h> 00015 #include "suTrackObject.h" 00016 00017 00018 //============================================================================= 00019 //============================================================================= 00026 class SUTRACKCONTROLLER_API suTrackPoint : public suTrackObject 00027 { 00028 00029 //============================================================================= 00030 // DATA 00031 //============================================================================= 00032 public: 00033 00034 protected: 00036 int _body; 00039 double _point[3]; 00040 00041 //============================================================================= 00042 // METHODS 00043 //============================================================================= 00044 //-------------------------------------------------------------------------- 00045 // CONSTRUCTION 00046 //-------------------------------------------------------------------------- 00047 public: 00048 suTrackPoint(int aBody,double aPoint[]); 00049 virtual ~suTrackPoint(); 00050 void setNull(); 00051 00052 //-------------------------------------------------------------------------- 00053 // GET AND SET 00054 //-------------------------------------------------------------------------- 00055 inline bool* getActive() { return _active;}; 00056 inline bool getActive(int i) { return _active[i];}; 00057 inline setActive(int i, bool value) { _active[i]=value;}; 00058 00059 //-------------------------------------------------------------------------- 00060 // COMPUTATIONS 00061 //-------------------------------------------------------------------------- 00062 virtual void computePositionError(double time,double posErr[]); 00063 virtual void computeVelocityError(double time,double velErr[]); 00064 virtual void computeDesiredAccelerations(double time,double acc[]); 00065 virtual void computeJacobian(); 00066 virtual void computeEffectiveMassMatrix(); 00067 00068 00069 //============================================================================= 00070 }; // END of class suTrackPoint 00071 //============================================================================= 00072 //============================================================================= 00073 00074 #endif // __suTrackPoint_h__ 00075 00076
1.3