Mass++ Common Libraries v2.7.5
 All Classes Namespaces Files Functions Variables Enumerations Macros
PeakElement.h
Go to the documentation of this file.
1 
12 #ifndef __KOME_OBJECTS_PEAK_ELEMENT_H__
13 #define __KOME_OBJECTS_PEAK_ELEMENT_H__
14 
15 
16 #include <vector>
17 
18 
19 namespace kome {
20  namespace objects {
21 
22  class Peaks;
23 
28  class DATA_OBJECTS_CLASS PeakElement {
29  public:
34  PeakElement();
35 
40  PeakElement( Peaks* peaks );
41 
49  PeakElement( Peaks* peaks, const double x, const double y );
50 
55  virtual ~PeakElement();
56 
57  protected:
60 
62  double m_x;
63 
65  double m_y;
66 
69 
72 
75 
77  int m_charge;
78 
79  protected:
81  double m_area;
82 
84  double m_fwhm;
85 
87  int m_peakId;
88 
89  public:
95  void setX( const double x );
96 
102  double getX();
103 
109  void setY( const double y );
110 
116  double getY();
117 
124  void setLeft( const double x, const double y );
125 
131  double getLeftX();
132 
138  double getLeftY();
139 
146  void setRight( const double x, const double y );
147 
153  double getRightX();
154 
160  double getRightY();
161 
168  void setApex( const double x, const double y );
169 
175  double getApexX();
176 
182  double getApexY();
183 
189  void searchApex( kome::core::XYData& xyData );
190 
196  bool hasApex();
197 
198  public:
204  void setArea( const double area );
205 
211  double getArea();
212 
218  bool hasArea();
219 
226  double calcArea( kome::core::XYData& xyData );
227 
228 
229  public:
235  void setFwhm( const double fwhm );
236 
242  double getFwhm();
243 
249  bool hasFwhm();
250 
257  double calcFwhm( kome::core::XYData& xyData );
258 
259  public:
265  void setId( int id );
266 
271  int getId();
272 
273  public:
279  void setCharge( const int charge );
280 
286  int getCharge();
287  };
288  }
289 }
290 
291 
292 #endif // __KOME_OBJECTS_PEAK_ELEMENT_H__
abstraction class of two dimention coordinate data
Definition: XYData.h:34
kome::core::Point< double > m_left
Definition: PeakElement.h:68
kome::core::Point< double > m_apex
Definition: PeakElement.h:74
kome::core::Point< double > m_right
Definition: PeakElement.h:71
peaks information class
Definition: Peaks.h:35