9 #ifndef IMPPMI_TRANSFORM_MOVER_H
10 #define IMPPMI_TRANSFORM_MOVER_H
12 #include <IMP/pmi/pmi_config.h>
20 IMPPMI_BEGIN_NAMESPACE
29 Float max_translation_;
43 unsigned int not_accepted_;
50 unsigned int nelements=0;
51 for (
unsigned int i=0;i<pixyzs_.size();i++) {
60 for (
unsigned int i=0;i<pirbs_.size();i++){
63 unsigned int nparticles=rb.get_number_of_members();
64 x=x+xyz[0]*float(nparticles);
65 y=y+xyz[1]*float(nparticles);
66 z=z+xyz[2]*float(nparticles);
67 nelements=nelements+nparticles;
71 center[0]=x/float(nelements);
72 center[1]=y/float(nelements);
73 center[2]=z/float(nelements);
88 if ( core::RigidBody::get_is_setup(get_model(), pi) ) {
92 pixyzs_.push_back(pi);
105 void set_maximum_translation(
Float mt) {
107 max_translation_ = mt;
110 void set_maximum_rotation(
Float mr) {
115 Float get_maximum_translation()
const {
return max_translation_; }
117 Float get_maximum_rotation()
const {
return max_angle_; }
A container for Singletons.
Simple Monte Carlo optimizer.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Take Decorator, Particle or ParticleIndex.
virtual void do_reject()=0
Implement reset_proposed_move()
Return value of the MonteCarloMover::propose() function.
Class for storing model, its restraints, constraints, and particles.
A base class for classes which perturb particles.
functionality for defining rigid bodies
The base class for movers for Monte Carlo optimization.
A decorator for a particle with x,y,z coordinates.
virtual MonteCarloMoverResult do_propose()=0
Implement propose_move()
const algebra::Vector3D & get_coordinates() const
Convert it to a vector.
double Float
Basic floating-point value (could be float, double...)
#define IMP_USAGE_CHECK(expr, message)
A runtime test for incorrect usage of a class or method.
A decorator for a rigid body.
virtual ModelObjectsTemp do_get_inputs() const =0