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 1100 by gezelter, Mon Apr 12 21:02:01 2004 UTC vs.
Revision 1174 by gezelter, Wed May 12 20:54:10 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 53 | Line 56 | class RigidBody : public StuntDouble { (public)
56    void getJ( double theJ[3] );
57    void setJ( double theJ[3] );
58  
59 +  virtual void setType(char* type) {strcpy(rbName, type);}
60 +  virtual char* getType() { return rbName;}
61 +
62    void getTrq( double theT[3] );
63    void addTrq( double theT[3] );
64  
# Line 80 | 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 94 | 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 +  double momIntTol;
109 +
110    vector<Atom*> myAtoms;  // the vector of atoms
111    vector<vec3> refCoords;
112    vector<mat3x3> refOrients;
113  
114 <  bool com_good;
102 <  bool forces_good;
103 <  bool precalc_done;
104 <  bool orient_good;
114 >  char rbName[100]; //it will eventually be converted into string
115   };
116  
117   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines