--- trunk/OOPSE/libmdtools/RigidBody.hpp 2004/04/16 02:39:05 1117 +++ trunk/OOPSE/libmdtools/RigidBody.hpp 2004/04/19 03:52:27 1118 @@ -39,6 +39,9 @@ class RigidBody : public StuntDouble { (public) void getFrc( double theF[3] ); void addFrc( double theF[3] ); void zeroForces(); + + virtual bool isLinear() {return is_linear;} + virtual int linearAxis() {return linear_axis;} double getMass( void ) { return mass; } @@ -83,6 +86,10 @@ class RigidBody : public StuntDouble { (public) // utility routines void findCOM( void ); + + virtual void accept(BaseVisitor* v); + + vector getAtoms() { return myAtoms;} protected: @@ -96,6 +103,10 @@ class RigidBody : public StuntDouble { (public) double I[3][3]; // the inertial tensor (body fixed) double sU[3][3]; // the standard unit vectors (body fixed) + bool is_linear; + int linear_axis; + const static double momIntTol = 1e-6; + vector myAtoms; // the vector of atoms vector refCoords; vector refOrients;