Engauge Digitizer 2
Loading...
Searching...
No Matches
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
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
PointMatchPixel(int xOffset, int yOffset, bool pixelIsOn)
Single basic constructor.
int yOffset() const
Y position relative to the center of the point.
PointMatchPixel & operator=(const PointMatchPixel &other)
Assignment operator.
bool pixelIsOn() const
True/false if pixel is on/off.
int xOffset() const
X position relative to the center of the point.