IMP  2.1.0
The Integrative Modeling Platform
NearestNeighborsClosePairsFinder.h
Go to the documentation of this file.
1 /**
2  * \file IMP/core/NearestNeighborsClosePairsFinder.h
3  * \brief Test all pairs of particles to find close pairs.
4  *
5  * Copyright 2007-2013 IMP Inventors. All rights reserved.
6  */
7 
8 #ifndef IMPCORE_NEAREST_NEIGHBORS_CLOSE_PAIRS_FINDER_H
9 #define IMPCORE_NEAREST_NEIGHBORS_CLOSE_PAIRS_FINDER_H
10 
11 #include "ClosePairsFinder.h"
13 #include <IMP/core/core_config.h>
14 
15 IMPCORE_BEGIN_NAMESPACE
16 
17 //! Find all nearby pairs using the algebra::NearestNeighbor code
18 /** \see IMP::container::ClosePairsScoreState
19  \ingroup cgal
20 */
21 class IMPCOREEXPORT NearestNeighborsClosePairsFinder : public ClosePairsFinder {
22  public:
24 
25 #ifndef SWIG
27 #else
29  const kernel::ParticlesTemp &pc) const;
31  const kernel::ParticlesTemp &pca, const kernel::ParticlesTemp &pcb) const;
32 #endif
33  virtual IntPairs get_close_pairs(const algebra::BoundingBox3Ds &bbs) const
34  IMP_OVERRIDE;
36  const algebra::BoundingBox3Ds &bbs) const
37  IMP_OVERRIDE;
39  kernel::Model *m, const kernel::ParticleIndexes &pc) const IMP_OVERRIDE;
42  const kernel::ParticleIndexes &pcb) const IMP_OVERRIDE;
44  kernel::Model *m, const kernel::ParticleIndexes &pis) const IMP_OVERRIDE;
45 
47 };
48 
49 IMPCORE_END_NAMESPACE
50 
51 #endif /* IMPCORE_NEAREST_NEIGHBORS_CLOSE_PAIRS_FINDER_H */
A base class for algorithms to find spatial proximities.
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.
Find all nearby pairs using the algebra::NearestNeighbor code.
kernel::ParticlePairsTemp get_close_pairs(const kernel::ParticlesTemp &pc) const
Various important macros for implementing decorators.
A base class for algorithms to detect proximities.
Class for storing model, its restraints, constraints, and particles.