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