Engauge Digitizer
2
|
Base class for strategy pattern whose subclasses process the different color filter settings modes (one strategy per mode). More...
#include <ColorFilterSettingsStrategyAbstractBase.h>
Public Member Functions | |
ColorFilterSettingsStrategyAbstractBase () | |
Single constructor. | |
virtual double | high (const ColorFilterSettings &colorFilterSettings) const =0 |
Return the high value normalized to 0 to 1. | |
virtual double | low (const ColorFilterSettings &colorFilterSettings) const =0 |
Return the low value normalized to 0 to 1. | |
virtual void | printStream (const ColorFilterSettings &colorFilterSettings, QString indentation, QTextStream &str) const =0 |
Print the low and high values. | |
virtual void | setHigh (ColorFilterSettings &colorFilterSettings, double s0To1)=0 |
Set the high value given the normalized value. | |
virtual void | setLow (ColorFilterSettings &colorFilterSettings, double s0To1)=0 |
Set the low value given the normalized value. | |
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 ColorFilterSettings
Definition at line 17 of file ColorFilterSettingsStrategyAbstractBase.h.