Engauge Digitizer
2
Toggle main menu visibility
Loading...
Searching...
No Matches
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::PointMatchPixel
PointMatchPixel(int xOffset, int yOffset, bool pixelIsOn)
Single basic constructor.
Definition
PointMatchPixel.cpp:9
PointMatchPixel::yOffset
int yOffset() const
Y position relative to the center of the point.
Definition
PointMatchPixel.cpp:43
PointMatchPixel::operator=
PointMatchPixel & operator=(const PointMatchPixel &other)
Assignment operator.
Definition
PointMatchPixel.cpp:24
PointMatchPixel::pixelIsOn
bool pixelIsOn() const
True/false if pixel is on/off.
Definition
PointMatchPixel.cpp:33
PointMatchPixel::xOffset
int xOffset() const
X position relative to the center of the point.
Definition
PointMatchPixel.cpp:38
Generated on
for Engauge Digitizer by
1.17.0