IMP  2.1.1
The Integrative Modeling Platform
CoverBond.h
Go to the documentation of this file.
1 /**
2  * \file IMP/atom/CoverBond.h
3  * \brief Cover a bond with a sphere
4  *
5  * Copyright 2007-2013 IMP Inventors. All rights reserved.
6  */
7 
8 #ifndef IMPATOM_COVER_BOND_H
9 #define IMPATOM_COVER_BOND_H
10 
11 #include <IMP/atom/atom_config.h>
12 
13 #include <IMP/PairContainer.h>
14 #include <IMP/SingletonContainer.h>
15 #include <IMP/SingletonModifier.h>
16 #include <IMP/singleton_macros.h>
17 
18 IMPATOM_BEGIN_NAMESPACE
19 
20 //! Cover a bond with a sphere
21 /** This is a version of core::CoverRefined optimized for bonds. It is
22  about 4x faster than the general purpose one.
23  */
24 class IMPATOMEXPORT CoverBond : public SingletonModifier {
25  public:
26  CoverBond();
27 
28  virtual void apply_index(kernel::Model *m, kernel::ParticleIndex p) const
29  IMP_OVERRIDE;
31  kernel::Model *m, const kernel::ParticleIndexes &pis) const IMP_OVERRIDE;
33  kernel::Model *m, const kernel::ParticleIndexes &pis) const IMP_OVERRIDE;
36  ;
37 };
38 
40 
41 IMPATOM_END_NAMESPACE
42 
43 #endif /* IMPATOM_COVER_BOND_H */
Import IMP/kernel/SingletonModifier.h in the namespace.
Import IMP/kernel/SingletonContainer.h in the namespace.
Import IMP/kernel/singleton_macros.h in the namespace.
A base class for modifiers of ParticlesTemp.
Import IMP/kernel/PairContainer.h in the namespace.
virtual ModelObjectsTemp do_get_inputs(kernel::Model *m, const ParticleIndexes &pis) const
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing sets of objects.
virtual ModelObjectsTemp do_get_outputs(kernel::Model *m, const ParticleIndexes &pis) const
Cover a bond with a sphere.
Definition: CoverBond.h:24
#define IMP_SINGLETON_MODIFIER_METHODS(Name)
virtual void apply_index(kernel::Model *m, ParticleIndex v) const
Class for storing model, its restraints, constraints, and particles.