8 #ifndef IMPPMI_RESOLUTION_H
9 #define IMPPMI_RESOLUTION_H
11 #include <IMP/pmi/pmi_config.h>
18 IMPPMI_BEGIN_NAMESPACE
31 return m->get_has_attribute(get_resolution_key(), pi);
47 static FloatKey get_resolution_key();
The base class for decorators.
ParticleIndex get_particle_index() const
Returns the particle index decorated by this decorator.
A container for Singletons.
#define IMP_DECORATOR_SETUP_1(Name, FirstArgumentType, first_argument_name)
Model * get_model() const
Returns the Model containing the particle.
Add resolution to a particle.
Class for storing model, its restraints, constraints, and particles.
void add_attribute(TypeKey attribute_key, ParticleIndex particle, Type value)
Various general useful macros for IMP.
void set_attribute(TypeKey attribute_key, ParticleIndex particle, Type value)
Interface to specialized Particle types (e.g. atoms)
#define IMP_DECORATOR_METHODS(Name, Parent)
double Float
Basic floating-point value (could be float, double...)
double get_resolution(Model *m, ParticleIndex pi)
Estimate the resolution of the hierarchy as used by Representation.
Type get_attribute(TypeKey attribute_key, ParticleIndex particle)