Engauge Digitizer
2
Point
PointMatchPixel.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_PIXEL_H
8
#define POINT_MATCH_PIXEL_H
9
10
#include <QPoint>
11
13
class
PointMatchPixel
14
{
15
public
:
17
PointMatchPixel
(
int
xOffset
,
18
int
yOffset
,
19
bool
pixelIsOn
);
20
22
PointMatchPixel
(
const
PointMatchPixel
&other);
23
25
PointMatchPixel
&
operator=
(
const
PointMatchPixel
&other);
26
28
bool
pixelIsOn
()
const
;
29
31
int
xOffset
()
const
;
32
34
int
yOffset
()
const
;
35
36
private
:
37
PointMatchPixel
();
38
39
QPoint m_posOffset;
40
bool
m_pixelIsOn;
41
};
42
43
#endif // POINT_MATCH_PIXEL_H
PointMatchPixel::pixelIsOn
bool pixelIsOn() const
True/false if pixel is on/off.
Definition:
PointMatchPixel.cpp:32
PointMatchPixel
Single on or off pixel out of the pixels that define the point match mode's candidate point.
Definition:
PointMatchPixel.h:12
PointMatchPixel::xOffset
int xOffset() const
X position relative to the center of the point.
Definition:
PointMatchPixel.cpp:37
PointMatchPixel::operator=
PointMatchPixel & operator=(const PointMatchPixel &other)
Assignment operator.
Definition:
PointMatchPixel.cpp:23
PointMatchPixel::yOffset
int yOffset() const
Y position relative to the center of the point.
Definition:
PointMatchPixel.cpp:42
Generated on Sat Jan 4 2020 12:00:00 for Engauge Digitizer by
1.8.16