8 #ifndef IMPATOM_ANGLE_DECORATORS_H
9 #define IMPATOM_ANGLE_DECORATORS_H
11 #include <IMP/atom/atom_config.h>
15 IMPATOM_BEGIN_NAMESPACE
37 for (
unsigned int i = 0; i < 3; ++i) {
38 if (!m->get_has_attribute(get_particle_key(i), pi))
return false;
90 for (
unsigned int i = 0; i < 4; ++i) {
91 if (!m->get_has_attribute(get_particle_key(i), pi))
return false;
109 static IntKey get_multiplicity_key();
110 static FloatKey get_stiffness_key();
115 IMPATOM_END_NAMESPACE
Import IMP/kernel/Decorator.h in the namespace.
Particle * get_particle() const
static bool get_is_setup(kernel::Model *m, kernel::ParticleIndex pi)
Return true if the particle is an angle.
#define IMP_DECORATOR_METHODS(Name, Parent)
#define IMP_DECORATOR_GET_SET_OPT(name, AttributeKey, Type, ReturnType, default_value)
Define methods for getting and setting an optional simple field.
#define IMP_DECORATOR_SETUP_4(Name, FirstArgumentType, first_argument_name,SecondArgumentType, second_argument_name,ThirdArgumentType, third_argument_name,FourthArgumentType, fourth_argument_name)
A particle that describes an angle between three particles.
static bool get_is_setup(Particle *p)
Return true if the particle can be cast to the decorator.
kernel::Particle * get_particle(unsigned int i) const
Get the ith particle in the dihedral.
A decorator for a particle with x,y,z coordinates.
Class to handle individual model particles.
kernel::Particle * get_particle(unsigned int i) const
Get the ith particle in the angle.
A particle that describes a dihedral angle between four particles.
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)
int Int
Basic integer value.
#define IMP_DECORATORS(Name, PluralName, Parent)
Define the types for storing sets of decorators.
Class for storing model, its restraints, constraints, and particles.