8#ifndef IMPATOM_CENTER_OF_MASS_H
9#define IMPATOM_CENTER_OF_MASS_H
11#include <IMP/atom/atom_config.h>
20IMPATOM_BEGIN_NAMESPACE
54 Float get_mass()
const {
59 Float get_coordinate(
int i)
const {
99 return m->get_has_attribute(get_constraint_key(), pi) &&
100 IMP::atom::Mass::get_is_setup(m, pi) &&
101 IMP::core::XYZ::get_is_setup(m, pi); }
Set the coordinates of the particle to be the centroid of the refined particles.
The base class for decorators.
A decorator for particles with mass.
Interface to specialized Particle types (e.g. atoms).
Particle * get_particle() const
Returns the particle decorated by this decorator.
Class for storing model, its restraints, constraints, and particles.
Take Decorator, Particle or ParticleIndex.
Abstract class to implement hierarchical methods.
static void teardown_particle(CenterOfMass com)
Make the particle no longer a center of mass.
A decorator for a particle with x,y,z coordinates.
const algebra::Vector3D & get_coordinates() const
Convert it to a vector.
Float get_coordinate(int i) const
Get the ith coordinate.
Helper macros for implementing Decorators.
#define IMP_CONSTRAINT_DECORATOR_DECL(Name)
#define IMP_DECORATOR_SETUP_1(Name, FirstArgumentType, first_argument_name)
#define IMP_DECORATORS(Name, PluralName, Parent)
Define the types for storing sets of decorators.
#define IMP_DECORATOR_METHODS(Name, Parent)
#define IMP_NO_DOXYGEN(x)
Hide something from doxygen.
Index< ParticleIndexTag > ParticleIndex
double Float
Basic floating-point value (could be float, double...).
Vector< ParticleIndex, std::allocator< ParticleIndex > > ParticleIndexes
A list of particles, each identified by its ParticleIndex.