Engauge Digitizer  2
PointMatchTriplet.h
1 /******************************************************************************************************
2  * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3  * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4  * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5  ******************************************************************************************************/
6 
7 #ifndef POINT_MATCH_TRIPLET_H
8 #define POINT_MATCH_TRIPLET_H
9 
10 #include <QPoint>
11 
14 {
15 public:
17  PointMatchTriplet(int x,
18  int y,
19  double correlation);
20 
22  bool operator<(const PointMatchTriplet &other) const;
23 
25  double correlation() const;
26 
28  QPoint point() const;
29 
31  int x() const;
32 
34  int y() const;
35 
36 private:
38 
39  int m_x;
40  int m_y;
41  double m_correlation;
42 };
43 
44 #endif // POINT_MATCH_TRIPLET_H
int y() const
Get method for y coordinate.
Representation of one matched point as produced from the point match algorithm.
bool operator<(const PointMatchTriplet &other) const
Comparison operator for sorting lists of this class using qSort.
double correlation() const
Get method for correlation.
QPoint point() const
Return (x,y) coordinates as a point.
int x() const
Get method for x coordinate.