ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-3.0/src/primitives/Bend.hpp
(Generate patch)

Comparing branches/new_design/OOPSE-3.0/src/primitives/Bend.hpp (file contents):
Revision 1802 by tim, Wed Nov 24 20:55:03 2004 UTC vs.
Revision 1803 by tim, Tue Nov 30 17:54:22 2004 UTC

# Line 39 | Line 39 | class Bend {
39  
40   class Bend {
41      public:
42 <        Bend(Atom* atom1, Atom* atom2, Atom* atom3, BendType* bt);
42 >        Bend(Atom* atom1, Atom* atom2, Atom* atom3, BendType* bt)
43 >            : atom1_(atom1), atom2_(atom2), atom3_(atom3), bendType_(bt) {}
44  
45 +
46          void calcForce();
47          
48          double getPotential() {
49              return potential_;
50          }
51  
52 +        Atom* getAtomA() {
53 +            return atom1_;
54 +        }
55 +
56 +        Atom* getAtomB() {
57 +            return atom2_;
58 +        }
59 +
60 +        Atom* getAtomC() {
61 +            return atom3_;
62 +        }
63 +
64 +        BendType * getBendType() {
65 +            return bendType_;
66 +        }
67 +
68      protected:
51        //virtual BendType* getBendType() {
52        //    return bendType_;
53        //}
69  
70          BendType* bendType_; /**< bend type */
71          Atom* atom1_;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines