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 1693 by tim, Mon Nov 1 21:37:13 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 34 | Line 34 | namespace oopse {
34   #define TYPES_BENDTYPE_HPP
35  
36   namespace oopse {
37 +  
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 <    /**
39 <     * @class BendType BendType.hpp "types/BendType.hpp"
40 <     */
41 <    class BendType {
42 <        public:
43 <            BendType();
44 <            virtual ~BendType() {}
46 >        virtual void calcForce(double theta, double& V, double& dVdTheta) = 0;  
47  
48 <            virtual void calcForce(double angle, double& force, double& potential);
48 >        double getTheta() {
49 >            return theta0_;
50 >        }
51 >        
52 >        void setTheta(double theta) {
53 >            theta0_ = theta;
54 >        }
55  
56 <            double getPotential();
57 <            
58 <        protected:
59 <            
60 <            double potential;
53 <    };
54 < }
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