Engauge Digitizer
2
Point
PointComparator.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_COMPARATOR_H
8
#define POINT_COMPARATOR_H
9
10
#include "
Point.h
"
11
13
struct
PointComparator
14
{
16
bool
operator()
(
const
Point
&a,
const
Point
&b)
const
17
{
18
return
a.
ordinal
() < b.
ordinal
();
19
}
20
};
21
22
#endif // POINT_COMPARATOR_H
Point.h
PointComparator
Comparator for sorting Point class.
Definition:
PointComparator.h:12
PointComparator::operator()
bool operator()(const Point &a, const Point &b) const
Comparison function used by qSort.
Definition:
PointComparator.h:18
Point::ordinal
double ordinal(ApplyHasCheck applyHasCheck=KEEP_HAS_CHECK) const
Get method for ordinal. Skip check if copying one instance to another.
Definition:
Point.cpp:386
Point
Class that represents one digitized point. The screen-to-graph coordinate transformation is always ex...
Definition:
Point.h:24
Generated on Sat Jan 4 2020 12:00:00 for Engauge Digitizer by
1.8.16