IMP logo
IMP Reference Guide  develop.63b38c487d,2024/12/21
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-2022 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"
12 #include <IMP/core/core_config.h>
13 
14 IMPCORE_BEGIN_NAMESPACE
15 
16 //! Find all nearby pairs using the algebra::NearestNeighbor code
17 /** \see IMP::container::ClosePairsScoreState
18  \ingroup cgal
19 */
20 class IMPCOREEXPORT NearestNeighborsClosePairsFinder : public ClosePairsFinder {
21  public:
23 
24  virtual IntPairs get_close_pairs(const algebra::BoundingBox3Ds &bbs) const
25  override;
27  const algebra::BoundingBox3Ds &bbs) const
28  override;
30  Model *m, const ParticleIndexes &pc) const override;
32  Model *m, const ParticleIndexes &pca,
33  const ParticleIndexes &pcb) const override;
35  Model *m, const ParticleIndexes &pis) const override;
36 
38 };
39 
40 IMPCORE_END_NAMESPACE
41 
42 #endif /* IMPCORE_NEAREST_NEIGHBORS_CLOSE_PAIRS_FINDER_H */
A base class for algorithms to find spatial proximities.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Definition: object_macros.h:25
virtual ParticleIndexPairs get_close_pairs(Model *m, const ParticleIndexes &pc) const =0
return all close pairs among pc in model m
Class for storing model, its restraints, constraints, and particles.
Definition: Model.h:86
virtual ModelObjectsTemp do_get_inputs(Model *m, const ParticleIndexes &pis) const =0
Overload this method to specify the inputs.
Find all nearby pairs using the algebra::NearestNeighbor code.
A base class for algorithms to detect proximities.