IMP
2.2.1
The Integrative Modeling Platform
|
#include <IMP/kinematics/DOFsSampler.h>
Public Member Functions | |
DOFsSampler (DOFs dofs) | |
virtual void | apply (const DOFValues &values)=0 |
void | apply_last_sample () |
DOF const * | get_dof (unsigned int i) const |
DOFs const & | get_dofs () const |
unsigned int | get_number_of_dofs () const |
DOFValues | get_sample () const |
virtual std::string | get_type_name () const |
virtual ::IMP::base::VersionInfo | get_version_info () const |
Get information about the module and version of the object. | |
void | sample_and_apply () |
Public Member Functions inherited from IMP::base::Object | |
virtual void | clear_caches () |
virtual void | do_destroy () |
CheckLevel | get_check_level () const |
LogLevel | get_log_level () const |
void | set_check_level (CheckLevel l) |
void | set_log_level (LogLevel l) |
Set the logging level used in this object. More... | |
void | set_was_used (bool tf) const |
void | show (std::ostream &out=std::cout) const |
const std::string & | get_name () const |
void | set_name (std::string name) |
Protected Member Functions | |
virtual DOFValues | do_get_sample () const =0 |
Protected Member Functions inherited from IMP::base::Object | |
Object (std::string name) | |
Construct an object with the given name. More... | |
a base class for sampling certain combinations of degrees of freedom
Definition at line 19 of file DOFsSampler.h.
IMP::kinematics::DOFsSampler::DOFsSampler | ( | DOFs | dofs | ) |
Constructs the dofs sampler over specified dofs
Definition at line 25 of file DOFsSampler.h.
|
pure virtual |
apply set of dof values in values over objects associated with this DOFsSampler (e.g., joints)
Implemented in IMP::kinematics::UniformBackboneSampler.
void IMP::kinematics::DOFsSampler::apply_last_sample | ( | ) |
calls apply(), using values from the last sample returned by get_sample() (or values of initial dofs provided to constructor, if no sample was taken yet)
Definition at line 51 of file DOFsSampler.h.
DOF const* IMP::kinematics::DOFsSampler::get_dof | ( | unsigned int | i | ) | const |
Returns the i'th dof over which this sampler works
Definition at line 66 of file DOFsSampler.h.
DOFs const& IMP::kinematics::DOFsSampler::get_dofs | ( | ) | const |
Returns the dofs over which this sampler works
Definition at line 62 of file DOFsSampler.h.
DOFValues IMP::kinematics::DOFsSampler::get_sample | ( | ) | const |
Definition at line 33 of file DOFsSampler.h.
void IMP::kinematics::DOFsSampler::sample_and_apply | ( | ) |
make a new sample of the dofs over which this class samples, and apply them to objects associated with this sampler (e.g. joints)
Definition at line 58 of file DOFsSampler.h.