10 #ifndef IMPKINEMATICS_DO_F_H
11 #define IMPKINEMATICS_DO_F_H
13 #include "kinematics_config.h"
17 IMPKINEMATICS_BEGIN_NAMESPACE
38 DOF(
double v,
double min,
double max,
double step_size);
40 double get_value()
const {
return value_; }
42 void set_value(
double v) { value_ = v; }
44 std::pair<double, double> get_range()
const {
return range_; }
46 void set_range(std::pair<double, double> range) { range_ = range; }
51 void set_step_size(
double step_size) { step_size_ = step_size; }
54 int get_number_of_steps(
double value)
const;
57 int get_number_of_steps(
double value1,
double value2)
const;
65 std::pair<double, double> range_;
73 IMPKINEMATICS_END_NAMESPACE
Various general useful macros for IMP.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Represention of one degree of freedom (DOF).
Common base class for heavy weight IMP objects.
double get_step_size() const
Set step size for going in the direction of the sampled value.
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing lists of object pointers.
A shared base class to help in debugging and things.