IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
RigidBodyNewMover.h
Go to the documentation of this file.
1/**
2 * \file IMP/spb/RigidBodyNewMover.h
3 * \brief A mover that transform a rigid body
4 *
5 * Copyright 2007-2022 IMP Inventors. All rights reserved.
6 *
7 */
8
9#ifndef IMPSPB_RIGID_BODY_NEW_MOVER_H
10#define IMPSPB_RIGID_BODY_NEW_MOVER_H
11
15#include <IMP/core/MonteCarlo.h>
18#include <IMP/spb/spb_config.h>
19
20IMPSPB_BEGIN_NAMESPACE
21
22//! Modify the transformation of a rigid body
23/** The transformation of a rigid body is moved in a ball of given
24 size. The probability distribution is uniform over the ball.
25 \see MonteCarlo
26 */
27class IMPSPBEXPORT RigidBodyNewMover : public core::MonteCarloMover {
28 public:
29 /** The rigid body is rotated and translated to move
30 \param[in] d the rigid body decorator
31 \param[in] max_translation maximum translation during a step
32 \param[in] max_rotation maximum rotation angle in radians
33 */
35 Float max_y_translation, Float max_z_translation,
36 Float max_rot);
37 // IMP_MOVER(RigidBodyNewMover);
38
39 protected:
41 virtual void do_reject() override;
42 virtual IMP::ModelObjectsTemp do_get_inputs() const override;
43
46
47 private:
48 algebra::Transformation3D last_transformation_;
49 Float max_x_translation_;
50 Float max_y_translation_;
51 Float max_z_translation_;
52 Float max_angle_;
54};
55
56IMPSPB_END_NAMESPACE
57
58#endif /* IMPSPB_RIGID_BODY_NEW_MOVER_H */
The base class for movers for Monte Carlo optimization.
Simple Monte Carlo optimizer.
A container for Singletons.
Simple 3D transformation class.
Simple 3D vector class.
Simple 3D transformation class.
A base class for classes which perturb particles.
A decorator for a rigid body.
virtual void do_reject() override
Implement reset_proposed_move().
virtual IMP::ModelObjectsTemp do_get_inputs() const override
virtual core::MonteCarloMoverResult do_propose() override
Implement propose_move().
RigidBodyNewMover(core::RigidBody d, Float max_x_translation, Float max_y_translation, Float max_z_translation, Float max_rot)
double Float
Basic floating-point value (could be float, double...).
Definition types.h:19
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
Definition base_types.h:122
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
functionality for defining rigid bodies
#define IMP_SHOWABLE(Name)
Return value of the MonteCarloMover::propose() function.