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 COLOR_FILTER_STRATEGY_HUE_H 00008 #define COLOR_FILTER_STRATEGY_HUE_H 00009 00010 #include "ColorFilterStrategyAbstractBase.h" 00011 00013 class ColorFilterStrategyHue : public ColorFilterStrategyAbstractBase 00014 { 00015 public: 00017 ColorFilterStrategyHue(); 00018 00019 virtual ~ColorFilterStrategyHue(); 00020 00021 virtual double pixelToZeroToOne (const QColor &pixel, 00022 QRgb rgbBackground) const; 00023 virtual int zeroToOneToValue (double s) const; 00024 00025 }; 00026 00027 #endif // COLOR_FILTER_STRATEGY_HUE_H