IMP logo
IMP Reference Guide  2.22.0
The Integrative Modeling Platform
fitting_states.h
Go to the documentation of this file.
1 /**
2  * \file IMP/multifit/fitting_states.h
3  * \brief Fitting states
4  *
5  * Copyright 2007-2022 IMP Inventors. All rights reserved.
6  *
7  */
8 
9 #ifndef IMPMULTIFIT_FITTING_STATES_H
10 #define IMPMULTIFIT_FITTING_STATES_H
11 
12 #include <IMP/multifit/multifit_config.h>
14 
15 IMPMULTIFIT_BEGIN_NAMESPACE
16 
17 /** Store a set of states which explicitly define the transformation
18  coordinates of the particle in question and the transformation index
19  */
20 class IMPMULTIFITEXPORT FittingStates : public domino::ParticleStates {
22  IntKey fit_state_key_;
23 
24  public:
25  FittingStates(const algebra::ReferenceFrame3Ds &states, IntKey fit_state_key)
26  : domino::ParticleStates("RigidBodyStates %1%"),
27  states_(states),
28  fit_state_key_(fit_state_key) {}
29 
30  virtual unsigned int get_number_of_particle_states() const override;
31  virtual void load_particle_state(unsigned int, Particle *) const
32  override;
33 
35 };
36 
37 IMPMULTIFIT_END_NAMESPACE
38 
39 #endif /* IMPMULTIFIT_FITTING_STATES_H */
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25
Class to handle individual particles of a Model object.
Definition: Particle.h:43
A Bayesian inference-based sampler.