Engauge Digitizer  2
Public Member Functions | List of all members
ColorFilterSettingsStrategyAbstractBase Class Referenceabstract

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

#include <ColorFilterSettingsStrategyAbstractBase.h>

Inheritance diagram for ColorFilterSettingsStrategyAbstractBase:
ColorFilterSettingsStrategyForeground ColorFilterSettingsStrategyHue ColorFilterSettingsStrategyIntensity ColorFilterSettingsStrategySaturation ColorFilterSettingsStrategyValue

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.
 

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 ColorFilterSettings

Definition at line 17 of file ColorFilterSettingsStrategyAbstractBase.h.


The documentation for this class was generated from the following files: