Engauge Digitizer 2
Loading...
Searching...
No Matches
ColorFilterSettingsStrategyForeground.h
Go to the documentation of this file.
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_FOREGROUND_H
8#define COLOR_FILTER_SETTINGS_STRATEGY_FOREGROUND_H
9
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_FOREGROUND_H
Base class for strategy pattern whose subclasses process the different color filter settings modes (o...
Leaf class for foreground strategy for ColorFilterSettings.
virtual void setHigh(ColorFilterSettings &colorFilterSettings, double s0To1)
Set the high value given the normalized value.
virtual double high(const ColorFilterSettings &colorFilterSettings) const
Return the high value normalized to 0 to 1.
virtual void setLow(ColorFilterSettings &colorFilterSettings, double s0To1)
Set the low value given the normalized value.
virtual void printStream(const ColorFilterSettings &colorFilterSettings, QString indentation, QTextStream &str) const
Print the low and high values.
virtual double low(const ColorFilterSettings &colorFilterSettings) const
Return the low value normalized to 0 to 1.
Color filter parameters for one curve. For a class, this is handled the same as LineStyle and PointSt...