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);
Import IMP/kernel/Decorator.h in the namespace.
#define IMP_DECORATOR_METHODS(Name, Parent)
static XYZR setup_particle(kernel::Model *m, ParticleIndex pi)
double Float
Basic floating-point value (could be float, double...)
#define IMP_DECORATOR_SETUP_3(Name, FirstArgumentType, first_argument_name,SecondArgumentType, second_argument_name,ThirdArgumentType, third_argument_name)
void add_attribute(TypeKey attribute_key, ParticleIndex particle, Type value)
Decorator for a sphere-like particle.
#define IMP_DECORATOR_GET_SET(name, AttributeKey, Type, ReturnType)
Define methods for getting and setting a particular simple field.
#define IMP_DECORATORS(Name, PluralName, Parent)
Define the types for storing sets of decorators.
Class for storing model, its restraints, constraints, and particles.