11#include <IMP/em/em_config.h>
25class IMPEMEXPORT Voxel :
public Decorator {
30 m->add_attribute(get_density_key(), pi, density,
false);
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.
Decorator for a sphere-like particle.
Class for storing model, its restraints, constraints, and particles.
static XYZR setup_particle(Model *m, ParticleIndex pi)
#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.
#define IMP_DECORATOR_METHODS(Name, Parent)
#define IMP_DECORATOR_SETUP_3(Name, FirstArgumentType, first_argument_name, SecondArgumentType, second_argument_name, ThirdArgumentType, third_argument_name)
SphereD< 3 > Sphere3D
Typedef for Python.
Index< ParticleIndexTag > ParticleIndex
Vector< Pointer< Particle > > Particles
A list of reference-counted Particle objects.
double Float
Basic floating-point value (could be float, double...).
Key< 0 > FloatKey
The type used to identify float attributes in the Particles.
IMP::Vector< FloatKey > FloatKeys