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 {
96 return m->get_has_attribute(get_constraint_key(), pi) &&
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)
Class for storing model, its restraints, constraints, and particles.
#define IMP_NO_DOXYGEN(x)
Hide something from doxygen.
Various general useful macros for IMP.
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.
#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.
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.