Engauge Digitizer  2
ColorFilterSettingsStrategyIntensity.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_SETTINGS_STRATEGY_INTENSITY_H
8 #define COLOR_FILTER_SETTINGS_STRATEGY_INTENSITY_H
9 
10 #include "ColorFilterSettingsStrategyAbstractBase.h"
11 
14 {
15  public:
19 
20  virtual double high (const ColorFilterSettings &colorFilterSettings) const;
21  virtual double low (const ColorFilterSettings &colorFilterSettings) const;
22  virtual void printStream (const ColorFilterSettings &colorFilterSettings,
23  QString indentation,
24  QTextStream &str) const;
25  virtual void setHigh (ColorFilterSettings &colorFilterSettings,
26  double s0To1);
27  virtual void setLow (ColorFilterSettings &colorFilterSettings,
28  double s0To1);
29 };
30 
31 #endif // COLOR_FILTER_SETTINGS_STRATEGY_INTENSITY_H
Color filter parameters for one curve. For a class, this is handled the same as LineStyle and PointSt...
virtual double low(const ColorFilterSettings &colorFilterSettings) const
Return the low value normalized to 0 to 1.
Base class for strategy pattern whose subclasses process the different color filter settings modes (o...
virtual void setHigh(ColorFilterSettings &colorFilterSettings, double s0To1)
Set the high value given the normalized value.
virtual void setLow(ColorFilterSettings &colorFilterSettings, double s0To1)
Set the low value given the normalized value.
Leaf class for intensity strategy for ColorFilterSettings.
virtual double high(const ColorFilterSettings &colorFilterSettings) const
Return the high value normalized to 0 to 1.
virtual void printStream(const ColorFilterSettings &colorFilterSettings, QString indentation, QTextStream &str) const
Print the low and high values.