Engauge Digitizer  2
ColorFilterStrategyHue.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 COLOR_FILTER_STRATEGY_HUE_H
8 #define COLOR_FILTER_STRATEGY_HUE_H
9 
10 #include "ColorFilterStrategyAbstractBase.h"
11 
14 {
15  public:
18 
19  virtual ~ColorFilterStrategyHue();
20 
21  virtual double pixelToZeroToOne (const QColor &pixel,
22  QRgb rgbBackground) const;
23  virtual int zeroToOneToValue (double s) const;
24 
25 };
26 
27 #endif // COLOR_FILTER_STRATEGY_HUE_H
Base class for strategy pattern whose subclasses process the different color filter settings modes (o...
ColorFilterStrategyHue()
Single constructor.
virtual int zeroToOneToValue(double s) const
Return the low value normalized to 0 to 1.
virtual double pixelToZeroToOne(const QColor &pixel, QRgb rgbBackground) const
Return a normalized value of 0 to 1 given input pixel.
Leaf class for hue strategy for ColorFilter.