00001 /****************************************************************************************************** 00002 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released * 00003 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file * 00004 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. * 00005 ******************************************************************************************************/ 00006 00007 #ifndef POINT_MATCH_PIXEL_H 00008 #define POINT_MATCH_PIXEL_H 00009 00010 #include <QPoint> 00011 00013 class PointMatchPixel 00014 { 00015 public: 00017 PointMatchPixel(int xOffset, 00018 int yOffset, 00019 bool pixelIsOn); 00020 00022 PointMatchPixel (const PointMatchPixel &other); 00023 00025 PointMatchPixel &operator= (const PointMatchPixel &other); 00026 00028 bool pixelIsOn () const; 00029 00031 int xOffset () const; 00032 00034 int yOffset () const; 00035 00036 private: 00037 PointMatchPixel(); 00038 00039 QPoint m_posOffset; 00040 bool m_pixelIsOn; 00041 }; 00042 00043 #endif // POINT_MATCH_PIXEL_H