11 #include <IMP/em/em_config.h>
34 static const FloatKey get_density_key();
44 if (!core::XYZ::get_is_setup(m, pi))
return false;
45 return m->get_has_attribute(get_density_key(), pi);
The base class for decorators.
#define IMP_DECORATOR_GET_SET(name, AttributeKey, Type, ReturnType)
Define methods for getting and setting a particular simple field.
static XYZR setup_particle(Model *m, ParticleIndex pi)
Class for storing model, its restraints, constraints, and particles.
void add_attribute(TypeKey attribute_key, ParticleIndex particle, Type value)
#define IMP_DECORATOR_METHODS(Name, Parent)
double Float
Basic floating-point value (could be float, double...)
#define IMP_DECORATORS(Name, PluralName, Parent)
Define the types for storing sets of decorators.
#define IMP_DECORATOR_SETUP_3(Name, FirstArgumentType, first_argument_name,SecondArgumentType, second_argument_name,ThirdArgumentType, third_argument_name)
Decorator for a sphere-like particle.