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

Comparing trunk/OOPSE/libmdtools/ConstraintElement.hpp (file contents):
Revision 1253 by tim, Thu Jun 3 21:51:55 2004 UTC vs.
Revision 1254 by tim, Wed Jun 9 16:16:33 2004 UTC

# Line 62 | Line 62 | class ConstraintElement{
62      void   setZangle(double zAngle) {refSd->setZangle(zAngle);}
63      void   addZangle(double zAngle) {refSd->addZangle(zAngle);}
64  
65 +    StuntDouble* getStuntDouble() {return refSd;}
66  
67      virtual void getOldPos(double pos[3])=0;
68      virtual void getOldVel(double vel[3])=0;
# Line 180 | Line 181 | class ConstraintRigidBody : public ConstraintElement{
181      
182      void getOldAtomPos(double pos[3]) {oldRb->getAtomPos(pos, consAtomIndex);}
183      void getCurAtomPos(double pos[3]) {((RigidBody*)refSd)->getAtomPos(pos, consAtomIndex);}
184 <    
184 >
185 >    void getRefCoor(double pos[3]) {return ((RigidBody*)refSd)->getAtomRefCoor(pos, consAtomIndex);}
186      RigidBody* getRigidBody() { return dynamic_cast<RigidBody*>(refSd);}
187  
188      virtual void saveOldState();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines