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

Comparing branches/new_design/OOPSE-3.0/src/types/BendType.hpp (file contents):
Revision 1745 by tim, Wed Nov 17 01:11:36 2004 UTC vs.
Revision 1746 by tim, Wed Nov 17 06:37:56 2004 UTC

# Line 25 | Line 25
25  
26   /**
27   * @file BendType.hpp
28 < * @author    tlin
29 < * @date  11/01/2004
28 > * @author    teng lin
29 > * @date  11/16/2004
30   * @version 1.0
31   */
32  
# Line 35 | Line 35 | namespace oopse {
35  
36   namespace oopse {
37    
38 <  /**
39 <   * @class BendType BendType.hpp "types/BendType.hpp"
40 <   */
41 <  class BendType {
42 <  public:
43 <    virtual ~BendType() {}
44 <    
45 <    virtual void calcForce(double theta, double& V, double& dVdTheta);  
38 > /**
39 > * @class BendType BendType.hpp "types/BendType.hpp"
40 > */
41 > class BendType {
42 >    public:
43 >        BendType(double theta) : theta0_(theta) {}
44 >        virtual ~BendType() {}
45  
46 <    
47 <  };
48 < }
46 >        virtual void calcForce(double theta, double& V, double& dVdTheta) = 0;  
47 >
48 >        double getTheta() {
49 >            return theta0_;
50 >        }
51 >        
52 >        void setTheta(double theta) {
53 >            theta0_ = theta;
54 >        }
55 >
56 >    protected:
57 >        double theta0_;        
58 > };
59 >
60 > } //end namespace oopse
61   #endif //TYPES_BENDTYPE_HPP

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines