Engauge Digitizer  2
 All Classes Files Functions Variables Enumerations Enumerator Friends Pages
PointMatchPixel.cpp
1 #include "PointMatchPixel.h"
2 
4  int yOffset,
5  bool pixelIsOn) :
6  m_posOffset (xOffset, yOffset),
7  m_pixelIsOn (pixelIsOn)
8 {
9 }
10 
12  m_posOffset (other.xOffset(),
13  other.yOffset()),
14  m_pixelIsOn (other.pixelIsOn ())
15 {
16 }
17 
19 {
20  m_posOffset = QPoint (other.xOffset(),
21  other.yOffset());
22  m_pixelIsOn = other.pixelIsOn();
23 
24  return *this;
25 }
26 
28 {
29  return m_pixelIsOn;
30 }
31 
33 {
34  return m_posOffset.x();
35 }
36 
38 {
39  return m_posOffset.y();
40 }
int xOffset() const
X position relative to the center of the point.
Single on or off pixel out of the pixels that define the point match mode's candidate point...
bool pixelIsOn() const
True/false if pixel is on/off.
int yOffset() const
Y position relative to the center of the point.
PointMatchPixel(int xOffset, int yOffset, bool pixelIsOn)
Single basic constructor.
PointMatchPixel & operator=(const PointMatchPixel &other)
Assignment operator.