7#ifndef DOCUMENT_MODEL_COLOR_FILTER_H
8#define DOCUMENT_MODEL_COLOR_FILTER_H
53 double high (
const QString &curveName)
const;
56 int hueHigh (
const QString &curveName)
const;
59 int hueLow (
const QString &curveName)
const;
67 virtual void loadXml(QXmlStreamReader &reader);
71 double low (
const QString &curveName)
const;
75 QTextStream &str)
const;
83 virtual void saveXml(QXmlStreamWriter &writer)
const;
98 void setHigh (
const QString &curveName,
106 void setHueLow (
const QString &curveName,
118 void setLow (
const QString &curveName,
138 int valueHigh (
const QString &curveName)
const;
141 int valueLow (
const QString &curveName)
const;
QHash< QString, ColorFilterSettings > ColorFilterSettingsList
Color filter parameters for one curve. For a class, this is handled the same as LineStyle and PointSt...
Storage of data belonging to one coordinate system.
DocumentModelAbstractBase()
Single constructor.
double high(const QString &curveName) const
High value of foreground, hue, intensity, saturation or value according to current filter mode.
void setValueHigh(const QString &curveName, int valueHigh)
Set method for value high.
double low(const QString &curveName) const
Low value of foreground, hue, intensity, saturation or value according to current filter mode normali...
int hueLow(const QString &curveName) const
Get method for hue lower bound.
DocumentModelColorFilter()
Default constructor.
int hueHigh(const QString &curveName) const
Get method for hue higher bound.
virtual void loadXml(QXmlStreamReader &reader)
Load model from serialized xml.
const ColorFilterSettings colorFilterSettings(const QString &curveName) const
Get method for copying one color filter. Cannot return just a reference or else there is a warning ab...
ColorFilterMode colorFilterMode(const QString &curveName) const
Get method for filter mode.
void setIntensityLow(const QString &curveName, int intensityLow)
Set method for intensity lower bound.
int foregroundHigh(const QString &curveName) const
Get method for foreground higher bound.
int saturationLow(const QString &curveName) const
Get method for saturation lower bound.
DocumentModelColorFilter & operator=(const DocumentModelColorFilter &other)
Assignment constructor.
int foregroundLow(const QString &curveName) const
Get method for foreground lower bound.
void setHigh(const QString &curveName, double s0To1)
Set the high value for the current filter mode.
void setHueHigh(const QString &curveName, int hueHigh)
Set method for hue higher bound.
void setForegroundHigh(const QString &curveName, int foregroundHigh)
Set method for foreground higher bound.
void setSaturationHigh(const QString &curveName, int saturationHigh)
Set method for saturation high.
void setHueLow(const QString &curveName, int hueLow)
Set method for hue lower bound.
const ColorFilterSettingsList & colorFilterSettingsList() const
Get method for copying all color filters in one step.
int valueLow(const QString &curveName) const
Get method for value low.
int saturationHigh(const QString &curveName) const
Get method for saturation higher bound.
void setValueLow(const QString &curveName, int valueLow)
Set method for value low.
void setSaturationLow(const QString &curveName, int saturationLow)
Set method for saturation low.
void setColorFilterMode(const QString &curveName, ColorFilterMode colorFilterMode)
Set method for filter mode.
int valueHigh(const QString &curveName) const
Get method for value high.
int intensityHigh(const QString &curveName) const
Get method for intensity higher bound.
void setIntensityHigh(const QString &curveName, int intensityHigh)
Set method for intensity higher bound.
void setLow(const QString &curveName, double s0To1)
Set the low value for the current filter mode.
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
void setForegroundLow(const QString &curveName, int foregroundLow)
Set method for foreground lower bound.
int intensityLow(const QString &curveName) const
Get method for intensity lower bound.