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

Comparing trunk/OOPSE-3.0/test/brains/RigidBody.hpp (file contents):
Revision 1640 by tim, Sat Oct 23 23:09:46 2004 UTC vs.
Revision 1682 by tim, Thu Oct 28 22:34:01 2004 UTC

# Line 39 | Line 39 | namespace oopse{
39      class RigidBody : public Atom {
40          public:
41              RigidBody();
42 +
43 +           /**
44 +             * Sets  the previous rotation matrix of this stuntdouble
45 +             * @param a  new rotation matrix
46 +             */        
47 +           virtual void setPrevA(const RotMat3x3d& a);
48 +          
49 +           /**
50 +             * Sets  the current rotation matrix of this stuntdouble
51 +             * @param a  new rotation matrix
52 +             */        
53 +            virtual void setA(const RotMat3x3d& a);
54 +           /**
55 +             * Sets  the rotation matrix of this stuntdouble in specified snapshot
56 +             * @param a rotation matrix to be set
57 +             * @param snapshotNo
58 +             * @see #getA
59 +             */        
60 +            virtual void setA(const RotMat3x3d& a, int snapshotNo);
61 +
62              /**
63               * Returns the inertia tensor of this stuntdouble
64               * @return the inertia tensor of this stuntdouble
# Line 62 | Line 82 | namespace oopse{
82  
83              virtual void accept(BaseVisitor* v);
84  
85 +            void addAtom(Atom* atom);
86 +
87 +            /** calculate the reference coordinates */
88              void calcRefCoords();
89  
90              /** Convert Atomic forces and torques to total forces and torques */
# Line 74 | Line 97 | namespace oopse{
97               * Returns the atoms of this rigid body
98               * @return the atoms of this rigid body in a vector
99               */          
100 <            vector<Atom*> getAtoms() { return atomLists_;}
100 >            vector<Atom*> getAtoms() { return atoms_;}
101  
102              /**
103               * Returns the number of atoms in this rigid body
# Line 94 | Line 117 | namespace oopse{
117  
118          private:
119              
120 <            Mat3x3d inertiaTensor_;      
121 <            vector<Atom*> atomLists_;
120 >            Mat3x3d inertiaTensor_;    
121 >            RotMat3x3d sU_;               /**< body fixed standard unit vector */
122 >            
123 >            vector<Atom*> atoms_;
124              vector<Vector3d> refCoords;
125      };
126  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines