IMP  2.0.1
The Integrative Modeling Platform
domino_filter_tables.h
Go to the documentation of this file.
1 /**
2  * \file domino_filter_tables.h
3  * \brief Managing of projection overlap filter
4  *
5  * Copyright 2007-2013 IMP Inventors. All rights reserved.
6  *
7  */
8 
9 #ifndef IMPEM2D_DOMINO_FILTER_TABLES_H
10 #define IMPEM2D_DOMINO_FILTER_TABLES_H
11 
13 #include "IMP/domino/Subset.h"
15 #include "IMP/log.h"
16 
17 IMPEM2D_BEGIN_NAMESPACE
18 
19 
20 /*! Table to create DistanceFilters on demand
21 
22  */
23 class IMPEM2DEXPORT DistanceFilterTable : public domino::SubsetFilterTable {
24 protected:
25  domino::Subset my_subset_;
26  Pointer<domino::ParticleStatesTable> ps_table_;
27  double max_distance_; // max distance tolerated between the particles
28 
29 public:
30 
31  DistanceFilterTable(const domino::Subset &subset_to_act_on,
33  double max_distance) :
34  my_subset_(subset_to_act_on), ps_table_(ps_table),
35  max_distance_(max_distance) {
36  };
37 
38  void show(std::ostream &out = std::cout) const {
39  out << "DistanceFilterTable" << std::endl;
40  };
41 
43 };
45 
46 IMPEM2D_END_NAMESPACE
47 
48 #endif /* IMPEM2D_DOMINO_FILTER_TABLES_H */