8 #ifndef IMPATOM_CENTER_OF_MASS_H
9 #define IMPATOM_CENTER_OF_MASS_H
11 #include <IMP/atom/atom_config.h>
20 IMPATOM_BEGIN_NAMESPACE
59 Float get_coordinate(
int i)
const {
97 IMP::atom::Mass::get_is_setup(m, pi) &&
98 IMP::core::XYZ::get_is_setup(m, pi); }
109 IMPATOM_END_NAMESPACE
The base class for decorators.
A decorator for particles with mass.
double get_mass(ResidueType c)
Get the mass from the residue type.
#define IMP_DECORATOR_SETUP_1(Name, FirstArgumentType, first_argument_name)
#define IMP_CONSTRAINT_DECORATOR_DECL(Name)
Take Decorator, Particle or ParticleIndex.
Class for storing model, its restraints, constraints, and particles.
#define IMP_NO_DOXYGEN(x)
Hide something from doxygen.
Helper macros for implementing Decorators.
A decorator for a particle with x,y,z coordinates.
Float get_coordinate(int i) const
Get the ith coordinate.
const algebra::Vector3D & get_coordinates() const
Convert it to a vector.
Particle * get_particle() const
Returns the particle decorated by this decorator.
Interface to specialized Particle types (e.g. atoms)
#define IMP_DECORATOR_METHODS(Name, Parent)
double Float
Basic floating-point value (could be float, double...)
Abstract class to implement hierarchical methods.
#define IMP_DECORATORS(Name, PluralName, Parent)
Define the types for storing sets of decorators.
bool get_has_attribute(TypeKey attribute_key, ParticleIndex particle) const
return true if particle has attribute with the specified key
A particle that is the center of mass of other particles.
Set the coordinates of the particle to be the centroid of the refined particles.