CPAlgoPolyArea.h
Go to the documentation of this file.
1 /**
2  * \file CPAlgoPolyArea.h
3  *
4  * \ingroup CMTool
5  *
6  * \brief Class def header for a class CPAlgoPolyArea
7  *
8  * @author kazuhiro
9  */
10 
11 /** \addtogroup CMTool
12 
13  @{*/
14 #ifndef RECOTOOL_CPALGOPOLYAREA_H
15 #define RECOTOOL_CPALGOPOLYAREA_H
16 
18 
19 namespace cmtool {
20  /**
21  \class CPAlgoPolyArea
22  Simple algorithm to determine priority based on area of 2D polygon.
23  If area < set cut value by a user, returns -1.
24  */
26 
27  public:
28 
29  /// Default constructor
31 
32  /**
33  Core function: given the CPAN input, return a float which indicates
34  the user-defined priority for analysis.
35  */
36  virtual float Priority(const ::cluster::ClusterParamsAlg &cluster);
37 
38  /// Setter for minimum area
39  void SetMinArea(double area) { _area_cut = area; }
40 
41  private:
42 
43  double _area_cut;
44  };
45 }
46 #endif
47 /** @} */ // end of doxygen group
virtual float Priority(const ::cluster::ClusterParamsAlg &cluster)
Cluster finding and building.
void SetMinArea(double area)
Setter for minimum area.
Class def header for a class CPriorityAlgoBase.
CPAlgoPolyArea()
Default constructor.