Engauge Digitizer  2
PointMatchPixel.h
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 
14 {
15  public:
18  int yOffset,
19  bool pixelIsOn);
20 
22  PointMatchPixel (const PointMatchPixel &other);
23 
26 
28  bool pixelIsOn () const;
29 
31  int xOffset () const;
32 
34  int yOffset () const;
35 
36  private:
38 
39  QPoint m_posOffset;
40  bool m_pixelIsOn;
41 };
42 
43 #endif // POINT_MATCH_PIXEL_H
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&#39;s candidate point...
int yOffset() const
Y position relative to the center of the point.
bool pixelIsOn() const
True/false if pixel is on/off.
PointMatchPixel & operator=(const PointMatchPixel &other)
Assignment operator.