7 #ifndef DOCUMENT_MODEL_COLOR_FILTER_H 8 #define DOCUMENT_MODEL_COLOR_FILTER_H 10 #include "ColorFilterSettings.h" 11 #include "DocumentModelAbstractBase.h" 15 typedef QHash<QString, ColorFilterSettings> ColorFilterSettingsList;
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;
87 ColorFilterMode colorFilterMode);
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;
145 ColorFilterSettingsList m_colorFilterSettingsList;
148 #endif // DOCUMENT_MODEL_COLOR_FILTER_H int intensityHigh(const QString &curveName) const
Get method for intensity higher bound.
const ColorFilterSettingsList & colorFilterSettingsList() const
Get method for copying all color filters in one step.
int valueHigh(const QString &curveName) const
Get method for value high.
DocumentModelColorFilter()
Default constructor.
Color filter parameters for one curve. For a class, this is handled the same as LineStyle and PointSt...
int valueLow(const QString &curveName) const
Get method for value low.
Abstract base class for document models. This class enforces a common interface for the leaf subclass...
void setColorFilterMode(const QString &curveName, ColorFilterMode colorFilterMode)
Set method for filter mode.
int hueHigh(const QString &curveName) const
Get method for hue higher bound.
int saturationLow(const QString &curveName) const
Get method for saturation lower bound.
int foregroundHigh(const QString &curveName) const
Get method for foreground higher bound.
Storage of data belonging to one coordinate system.
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 setValueLow(const QString &curveName, int valueLow)
Set method for value low.
int hueLow(const QString &curveName) const
Get method for hue lower bound.
int saturationHigh(const QString &curveName) const
Get method for saturation higher bound.
DocumentModelColorFilter & operator=(const DocumentModelColorFilter &other)
Assignment constructor.
void setForegroundLow(const QString &curveName, int foregroundLow)
Set method for foreground lower bound.
void setHueLow(const QString &curveName, int hueLow)
Set method for hue lower bound.
double high(const QString &curveName) const
High value of foreground, hue, intensity, saturation or value according to current filter mode...
virtual void loadXml(QXmlStreamReader &reader)
Load model from serialized xml.
int intensityLow(const QString &curveName) const
Get method for intensity lower bound.
void setIntensityLow(const QString &curveName, int intensityLow)
Set method for intensity lower bound.
void setHigh(const QString &curveName, double s0To1)
Set the high value for the current filter mode.
void setForegroundHigh(const QString &curveName, int foregroundHigh)
Set method for foreground higher bound.
Model for DlgSettingsColorFilter and CmdSettingsColorFilter.
virtual void saveXml(QXmlStreamWriter &writer) const
Save entire model as xml into stream.
void setIntensityHigh(const QString &curveName, int intensityHigh)
Set method for intensity higher bound.
int foregroundLow(const QString &curveName) const
Get method for foreground lower bound.
void setLow(const QString &curveName, double s0To1)
Set the low value for the current filter mode.
void setSaturationLow(const QString &curveName, int saturationLow)
Set method for saturation low.
void setSaturationHigh(const QString &curveName, int saturationHigh)
Set method for saturation high.
void setHueHigh(const QString &curveName, 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 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...