7 #ifndef COLOR_FILTER_SETTINGS_H 8 #define COLOR_FILTER_SETTINGS_H 10 #include "ColorFilterSettingsStrategyAbstractBase.h" 11 #include "ColorFilterMode.h" 15 class QXmlStreamReader;
16 class QXmlStreamWriter;
76 void loadXml(QXmlStreamReader &reader);
84 QTextStream &str)
const;
93 void saveXml(QXmlStreamWriter &writer,
94 const QString &curveName)
const;
121 void setLow (
double s0To1);
143 void createStrategies ();
145 ColorFilterMode m_colorFilterMode;
149 int m_foregroundHigh;
153 int m_saturationHigh;
158 QMap<ColorFilterMode, ColorFilterSettingsStrategyAbstractBase*> m_strategies;
161 #endif // COLOR_FILTER_SETTINGS_H void setSaturationLow(int saturationLow)
Set method for saturation low.
void setLow(double s0To1)
Set the low value for the current filter mode.
int valueHigh() const
Get method for value high.
void setHueLow(int hueLow)
Set method for hue lower bound.
Color filter parameters for one curve. For a class, this is handled the same as LineStyle and PointSt...
int hueHigh() const
Get method for hue higher bound.
void setColorFilterMode(ColorFilterMode colorFilterMode)
Set method for filter mode.
int foregroundLow() const
Get method for foreground lower bound.
double high() const
High value of foreground, hue, intensity, saturation or value according to current filter mode...
ColorFilterSettings & operator=(const ColorFilterSettings &other)
Assignment operator.
void setForegroundLow(int foregroundLow)
Set method for foreground lower bound.
double low() const
Low value of foreground, hue, intensity, saturation or value according to current filter mode...
void setHigh(double s0To1)
Set the high value for the current filter mode.
void setHueHigh(int hueHigh)
Set method for hue higher bound.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
void setForegroundHigh(int foregroundHigh)
Set method for foreground higher bound.
int foregroundHigh() const
Get method for foreground higher bound.
static ColorFilterSettings defaultFilter()
Initial default for any Curve.
int intensityHigh() const
Get method for intensity higher bound.
void setIntensityHigh(int intensityHigh)
Set method for intensity higher bound.
int intensityLow() const
Get method for intensity lower bound.
int saturationHigh() const
Get method for saturation higher bound.
void setValueHigh(int valueHigh)
Set method for value high.
void setIntensityLow(int intensityLow)
Set method for intensity lower bound.
int valueLow() const
Get method for value low.
void setValueLow(int valueLow)
Set method for value low.
ColorFilterMode colorFilterMode() const
Get method for filter mode.
void setSaturationHigh(int saturationHigh)
Set method for saturation high.
void loadXml(QXmlStreamReader &reader)
Load curve filter to stream.
void saveXml(QXmlStreamWriter &writer, const QString &curveName) const
Save curve filter to stream.
ColorFilterSettings()
Default constructor only for use when this class is being stored by a container that requires the def...
int hueLow() const
Get method for hue lower bound.
int saturationLow() const
Get method for saturation lower bound.