ColorFilterStrategyAbstractBase Class Reference

Base class for strategy pattern whose subclasses process the different color filter settings modes (one strategy per mode). More...

#include <ColorFilterStrategyAbstractBase.h>

Inheritance diagram for ColorFilterStrategyAbstractBase:
ColorFilterStrategyForeground ColorFilterStrategyHue ColorFilterStrategyIntensity ColorFilterStrategySaturation ColorFilterStrategyValue

List of all members.

Public Member Functions

 ColorFilterStrategyAbstractBase ()
 Single constructor.
virtual double pixelToZeroToOne (const QColor &pixel, QRgb rgbBackground) const =0
 Return a normalized value of 0 to 1 given input pixel.
virtual int zeroToOneToValue (double s) const =0
 Return the low value normalized to 0 to 1.

Detailed Description

Base class for strategy pattern whose subclasses process the different color filter settings modes (one strategy per mode).

The strategy pattern nicely removes cyclomatic complexity from ColorFilter

Definition at line 19 of file ColorFilterStrategyAbstractBase.h.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Friends

Generated on 31 May 2016 for Engauge Digitizer by  doxygen 1.6.1