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 |
|
|
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 |