CBAlgoPolyOverlap.h
Go to the documentation of this file.
1 /**
2  * \file CBAlgoPolyOverlap.h
3  *
4  * \ingroup CMTool
5  *
6  * \brief Class def header for a class CBAlgoPolyOverlap
7  *
8  * @author David Caratelli
9  */
10 
11 /** \addtogroup CMTool
12 
13  @{*/
14 #ifndef RECOTOOL_CBALGOPOLYOVERLAP_H
15 #define RECOTOOL_CBALGOPOLYOVERLAP_H
16 
19 
20 namespace cmtool {
21  /**
22  \class CMalgoPolyContain
23  Merge Polygons if the two overlap even partially
24  */
26 
27  public:
28 
29  /// Default constructor
31 
32  /// Default destructor
33  virtual ~CBAlgoPolyOverlap(){};
34 
35  /**
36  Core function: given the ClusterParamsAlg input, return whether a cluster should be
37  merged or not.
38  */
39  virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1,
40  const ::cluster::ClusterParamsAlg &cluster2);
41 
42  void SetDebug(bool debug) { _debug = debug; }
43 
44  //both clusters must have > this # of hits to be considered for merging
45  void SetMinNumHits(size_t nhits) { _min_hits = nhits; }
46 
47  /// Method to re-configure the instance
48  void reconfigure();
49 
50  private:
51 
52  bool _debug;
53  size_t _min_hits;
54  };
55 }
56 
57 #endif
58 /** @} */ // end of doxygen group
Class def header for algorithm classes for CMergeManager.
void SetMinNumHits(size_t nhits)
CBAlgoPolyOverlap()
Default constructor.
virtual bool Bool(const ::cluster::ClusterParamsAlg &cluster1, const ::cluster::ClusterParamsAlg &cluster2)
void reconfigure()
Method to re-configure the instance.
virtual ~CBAlgoPolyOverlap()
Default destructor.