Engauge Digitizer
2
|
Color filter parameters for one curve. For a class, this is handled the same as LineStyle and PointStyle. More...
#include <ColorFilterSettings.h>
Public Member Functions | |
ColorFilterSettings () | |
Default constructor only for use when this class is being stored by a container that requires the default constructor. | |
ColorFilterSettings (ColorFilterMode colorFilterMode, int intensityLow, int intensityHigh, int foregroundLow, int foregroundHigh, int hueLow, int hueHigh, int saturationLow, int saturationHigh, int valueLow, int valueHigh) | |
Normal constructor. The style type and radius are determined by the currently selected Curve. | |
ColorFilterSettings (const ColorFilterSettings &other) | |
Copy constructor. | |
ColorFilterSettings (QXmlStreamReader &reader) | |
Constructor when loading from serialized xml. | |
ColorFilterSettings & | operator= (const ColorFilterSettings &other) |
Assignment operator. | |
ColorFilterMode | colorFilterMode () const |
Get method for filter mode. | |
int | foregroundHigh () const |
Get method for foreground higher bound. | |
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, normalized to 0 to 1. More... | |
int | hueHigh () const |
Get method for hue higher bound. | |
int | hueLow () const |
Get method for hue lower bound. | |
int | intensityHigh () const |
Get method for intensity higher bound. | |
int | intensityLow () const |
Get method for intensity lower bound. | |
void | loadXml (QXmlStreamReader &reader) |
Load curve filter to stream. | |
double | low () const |
Low value of foreground, hue, intensity, saturation or value according to current filter mode, normalized to 0 to 1. More... | |
void | printStream (QString indentation, QTextStream &str) const |
Debugging method that supports print method of this class and printStream method of some other class(es) | |
int | saturationHigh () const |
Get method for saturation higher bound. | |
int | saturationLow () const |
Get method for saturation lower bound. | |
void | saveXml (QXmlStreamWriter &writer, const QString &curveName) const |
Save curve filter to stream. | |
void | setColorFilterMode (ColorFilterMode colorFilterMode) |
Set method for filter mode. | |
void | setForegroundHigh (int foregroundHigh) |
Set method for foreground higher bound. | |
void | setForegroundLow (int foregroundLow) |
Set method for foreground lower bound. | |
void | setHigh (double s0To1) |
Set the high value for the current filter mode. | |
void | setHueHigh (int hueHigh) |
Set method for hue higher bound. | |
void | setHueLow (int hueLow) |
Set method for hue lower bound. | |
void | setIntensityHigh (int intensityHigh) |
Set method for intensity higher bound. | |
void | setIntensityLow (int intensityLow) |
Set method for intensity lower bound. | |
void | setLow (double s0To1) |
Set the low value for the current filter mode. | |
void | setSaturationHigh (int saturationHigh) |
Set method for saturation high. | |
void | setSaturationLow (int saturationLow) |
Set method for saturation low. | |
void | setValueHigh (int valueHigh) |
Set method for value high. | |
void | setValueLow (int valueLow) |
Set method for value low. | |
int | valueHigh () const |
Get method for value high. | |
int | valueLow () const |
Get method for value low. | |
Static Public Member Functions | |
static ColorFilterSettings | defaultFilter () |
Initial default for any Curve. | |
Color filter parameters for one curve. For a class, this is handled the same as LineStyle and PointStyle.
Definition at line 19 of file ColorFilterSettings.h.
double ColorFilterSettings::high | ( | ) | const |
High value of foreground, hue, intensity, saturation or value according to current filter mode, normalized to 0 to 1.
Definition at line 136 of file ColorFilterSettings.cpp.
double ColorFilterSettings::low | ( | ) | const |
Low value of foreground, hue, intensity, saturation or value according to current filter mode, normalized to 0 to 1.
Definition at line 218 of file ColorFilterSettings.cpp.