ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libmdtools/RigidBody.hpp
(Generate patch)

Comparing trunk/OOPSE/libmdtools/RigidBody.hpp (file contents):
Revision 1108 by tim, Wed Apr 14 15:37:41 2004 UTC vs.
Revision 1118 by tim, Mon Apr 19 03:52:27 2004 UTC

# Line 39 | Line 39 | class RigidBody : public StuntDouble { (public)
39    void getFrc( double theF[3] );
40    void addFrc( double theF[3] );
41    void zeroForces();
42 +  
43 +  virtual bool isLinear() {return is_linear;}
44 +  virtual int linearAxis() {return linear_axis;}
45  
46    double getMass( void ) { return mass; }
47  
48    void printAmatIndex( void );
49 <  void setEulerAngles( double phi, double theta, double psi );
49 >  void setEuler( double phi, double theta, double psi );
50    void getQ( double the_q[4] ); // get the quanternions
51    void setQ( double the_q[4] );
52  
# Line 83 | Line 86 | class RigidBody : public StuntDouble { (public)
86    // utility routines
87  
88    void findCOM( void );
89 <  void findOrient( void );
89 >
90 >  virtual void accept(BaseVisitor* v);
91 >
92 >  vector<Atom*> getAtoms() { return myAtoms;}
93    
94   protected:
95  
# Line 97 | Line 103 | class RigidBody : public StuntDouble { (public)
103    double I[3][3];  // the inertial tensor (body fixed)
104    double sU[3][3]; // the standard unit vectors (body fixed)
105  
106 +  bool is_linear;
107 +  int linear_axis;
108 +  const static double momIntTol = 1e-6;
109 +
110    vector<Atom*> myAtoms;  // the vector of atoms
111    vector<vec3> refCoords;
112    vector<mat3x3> refOrients;
113  
104  bool com_good;
105  bool forces_good;
106  bool precalc_done;
107  bool orient_good;
108
114    char rbName[100]; //it will eventually be converted into string
115   };
116  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines