IMP
2.1.0
The Integrative Modeling Platform
IMP Mainpage
All IMP Modules
Related Pages
Modules
Namespaces
Classes
Files
Examples
Indexes
File List
File Members
IMP
All IMP Modules
All IMP Modules and Applications
Argument Index
Class Examples
Factory Index
Function Examples
Design example
Developer Guide
Installation
Introduction
Mailing lists
ChangeLog
Tools
Dependencies
EMageFit protocol
EMageFit scripts and tools
Integrative docking utility programs
Deprecated List
Modules
Namespaces
Classes
Files
File List
File Members
Examples
Indexes
Class Usage
Class Examples
Class Factories
Function Examples
RemoveTranslationOptimizerState.h
Go to the documentation of this file.
1
/**
2
* \file IMP/atom/RemoveTranslationOptimizerState.h
3
* \brief Remove rigid translation during optimization.
4
*
5
* Copyright 2007-2013 IMP Inventors. All rights reserved.
6
*
7
*/
8
9
#ifndef IMPATOM_REMOVE_TRANSLATION_OPTIMIZER_STATE_H
10
#define IMPATOM_REMOVE_TRANSLATION_OPTIMIZER_STATE_H
11
12
#include <IMP/atom/atom_config.h>
13
#include <
IMP/kernel/Particle.h
>
14
#include <
IMP/base_types.h
>
15
#include <
IMP/OptimizerState.h
>
16
#include <
IMP/optimizer_state_macros.h
>
17
18
IMPATOM_BEGIN_NAMESPACE
19
20
//! Removes rigid translation from the particles.
21
/** Recenters the bunch of particles by putting the very first particle
22
at the origin and rigidly translating all the others.
23
*/
24
class
IMPATOMEXPORT
RemoveTranslationOptimizerState
:
public
OptimizerState
{
25
public
:
26
/** \deprecated_at{2.1} Use set_period() instead. */
27
IMPATOM_DEPRECATED_FUNCTION_DECL(2.1)
28
RemoveTranslationOptimizerState
(
const
kernel::Particles
&pis,
29
unsigned
skip_steps);
30
RemoveTranslationOptimizerState
(
kernel::Model
*m,
31
kernel::ParticleIndexesAdaptor
pis);
32
33
//! Set the particles to use.
34
void
set_particles
(
const
kernel::Particles
&pis) { pis_ = pis; }
35
36
//! Remove translation now
37
void
remove_translation()
const
;
38
39
IMP_OBJECT_METHODS
(
RemoveTranslationOptimizerState
);
40
41
protected
:
42
virtual
void
do_update
(
unsigned
int
call) IMP_OVERRIDE;
43
44
private
:
45
kernel::Particles
pis_;
46
};
47
48
IMP_OBJECTS
(
RemoveTranslationOptimizerState
,
RemoveTranslationOptimizerStates
);
49
50
IMPATOM_END_NAMESPACE
51
52
#endif
/* IMPATOM_REMOVE_TRANSLATION_OPTIMIZER_STATE_H */
base_types.h
Import IMP/kernel/base_types.h in the namespace.
IMP::kernel::OptimizerState::do_update
virtual void do_update(unsigned int)
Definition:
kernel/OptimizerState.h:123
IMP::kernel::OptimizerState
Shared optimizer state that is invoked upon commitment of new coordinates.
Definition:
kernel/OptimizerState.h:43
IMP::base::Vector< base::Pointer< Particle > >
IMP::kernel::ParticleIndexesAdaptor
Definition:
kernel/particle_index.h:50
IMP::atom::RemoveTranslationOptimizerState::set_particles
void set_particles(const kernel::Particles &pis)
Set the particles to use.
Definition:
RemoveTranslationOptimizerState.h:34
IMP_OBJECT_METHODS
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition:
base/object_macros.h:25
optimizer_state_macros.h
Import IMP/kernel/optimizer_state_macros.h in the namespace.
Particle.h
Classes to handle individual model particles.
IMP_OBJECTS
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing sets of objects.
Definition:
base/object_macros.h:77
IMP::atom::RemoveTranslationOptimizerState
Removes rigid translation from the particles.
Definition:
RemoveTranslationOptimizerState.h:24
OptimizerState.h
Import IMP/kernel/OptimizerState.h in the namespace.
IMP::kernel::Model
Class for storing model, its restraints, constraints, and particles.
Definition:
kernel/declare_Model.h:72