Engauge Digitizer 2
Loading...
Searching...
No Matches
PointMatchTriplet.h
Go to the documentation of this file.
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{
15public:
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
36private:
38
39 int m_x;
40 int m_y;
41 double m_correlation;
42};
43
44#endif // POINT_MATCH_TRIPLET_H
PointMatchTriplet(int x, int y, double correlation)
Single constructor.
double correlation() const
Get method for correlation.
bool operator<(const PointMatchTriplet &other) const
Comparison operator for sorting lists of this class using sorting algorithm.
int y() const
Get method for y coordinate.
int x() const
Get method for x coordinate.
QPoint point() const
Return (x,y) coordinates as a point.