9 #ifndef IMPATOM_TAMD_CENTROID_H
10 #define IMPATOM_TAMD_CENTROID_H
12 #include <IMP/atom/atom_config.h>
18 #include <IMP/internal/constants.h>
23 IMPATOM_BEGIN_NAMESPACE
74 return m->get_has_attribute(get_is_tamd_centroid_key(), pi);
79 bool get_is_tamd_centroid()
const {
80 return static_cast<bool>
85 void set_is_tamd_centroid(
bool t) {
88 static_cast<Int>(t) );
92 static IntKey get_is_tamd_centroid_key();
The base class for decorators.
ParticleIndex get_particle_index() const
Returns the particle index decorated by this decorator.
A decorator for a diffusing particle.
#define IMP_DECORATOR_SETUP_1(Name, FirstArgumentType, first_argument_name)
Model * get_model() const
Returns the Model containing the particle.
A particle that is the geometric centroid of other particles.
static Centroid setup_particle(Model *m, ParticleIndex pi, ParticleIndexesAdaptor members)
Key< 1, true > IntKey
The type used to identify int attributes in the Particles.
Class for storing model, its restraints, constraints, and particles.
void add_attribute(TypeKey attribute_key, ParticleIndex particle, Type value)
void set_attribute(TypeKey attribute_key, ParticleIndex particle, Type value)
#define IMP_DECORATOR_METHODS(Name, Parent)
Abstract class to implement hierarchical methods.
#define IMP_DECORATORS(Name, PluralName, Parent)
Define the types for storing sets of decorators.
Type get_attribute(TypeKey attribute_key, ParticleIndex particle)
Set the coordinates of the particle to be the centroid of the refined particles.