Engauge Digitizer 2
|
Model for DlgSettingsColorFilter and CmdSettingsColorFilter. More...
#include <DocumentModelColorFilter.h>
Public Member Functions | |
DocumentModelColorFilter () | |
Default constructor. | |
DocumentModelColorFilter (const DocumentModelColorFilter &other) | |
Copy constructor. | |
DocumentModelColorFilter (const CoordSystem &coordSystem) | |
Initial constructor from CoordSystem. | |
DocumentModelColorFilter & | operator= (const DocumentModelColorFilter &other) |
Assignment constructor. | |
ColorFilterMode | colorFilterMode (const QString &curveName) const |
Get method for filter mode. | |
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 about returning reference to temporary. | |
const ColorFilterSettingsList & | colorFilterSettingsList () const |
Get method for copying all color filters in one step. | |
int | foregroundHigh (const QString &curveName) const |
Get method for foreground higher bound. | |
int | foregroundLow (const QString &curveName) const |
Get method for foreground lower bound. | |
double | high (const QString &curveName) const |
High value of foreground, hue, intensity, saturation or value according to current filter mode. | |
int | hueHigh (const QString &curveName) const |
Get method for hue higher bound. | |
int | hueLow (const QString &curveName) const |
Get method for hue lower bound. | |
int | intensityHigh (const QString &curveName) const |
Get method for intensity higher bound. | |
int | intensityLow (const QString &curveName) const |
Get method for intensity lower bound. | |
virtual void | loadXml (QXmlStreamReader &reader) |
Load model from serialized xml. | |
double | low (const QString &curveName) const |
Low value of foreground, hue, intensity, saturation or value according to current filter mode normalized to 0 to 1. | |
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 QString &curveName) const |
Get method for saturation higher bound. | |
int | saturationLow (const QString &curveName) const |
Get method for saturation lower bound. | |
virtual void | saveXml (QXmlStreamWriter &writer) const |
Save entire model as xml into stream. | |
void | setColorFilterMode (const QString &curveName, ColorFilterMode colorFilterMode) |
Set method for filter mode. | |
void | setForegroundHigh (const QString &curveName, int foregroundHigh) |
Set method for foreground higher bound. | |
void | setForegroundLow (const QString &curveName, int foregroundLow) |
Set 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 | setHueLow (const QString &curveName, int hueLow) |
Set method for hue lower bound. | |
void | setIntensityHigh (const QString &curveName, int intensityHigh) |
Set method for intensity higher bound. | |
void | setIntensityLow (const QString &curveName, int intensityLow) |
Set method for intensity lower bound. | |
void | setLow (const QString &curveName, double s0To1) |
Set the low value for the current filter mode. | |
void | setSaturationHigh (const QString &curveName, int saturationHigh) |
Set method for saturation high. | |
void | setSaturationLow (const QString &curveName, int saturationLow) |
Set method for saturation low. | |
void | setValueHigh (const QString &curveName, int valueHigh) |
Set method for value high. | |
void | setValueLow (const QString &curveName, int valueLow) |
Set method for value low. | |
int | valueHigh (const QString &curveName) const |
Get method for value high. | |
int | valueLow (const QString &curveName) const |
Get method for value low. | |
Public Member Functions inherited from DocumentModelAbstractBase | |
DocumentModelAbstractBase () | |
Single constructor. | |
virtual | ~DocumentModelAbstractBase () |
Single destructor. |
Model for DlgSettingsColorFilter and CmdSettingsColorFilter.
Definition at line 21 of file DocumentModelColorFilter.h.
DocumentModelColorFilter::DocumentModelColorFilter | ( | ) |
DocumentModelColorFilter::DocumentModelColorFilter | ( | const DocumentModelColorFilter & | other | ) |
Copy constructor.
Definition at line 42 of file DocumentModelColorFilter.cpp.
DocumentModelColorFilter::DocumentModelColorFilter | ( | const CoordSystem & | coordSystem | ) |
Initial constructor from CoordSystem.
Definition at line 23 of file DocumentModelColorFilter.cpp.
ColorFilterMode DocumentModelColorFilter::colorFilterMode | ( | const QString & | curveName | ) | const |
Get method for filter mode.
Definition at line 66 of file DocumentModelColorFilter.cpp.
const ColorFilterSettings DocumentModelColorFilter::colorFilterSettings | ( | const QString & | curveName | ) | const |
Get method for copying one color filter. Cannot return just a reference or else there is a warning about returning reference to temporary.
Definition at line 72 of file DocumentModelColorFilter.cpp.
const ColorFilterSettingsList & DocumentModelColorFilter::colorFilterSettingsList | ( | ) | const |
Get method for copying all color filters in one step.
Definition at line 78 of file DocumentModelColorFilter.cpp.
int DocumentModelColorFilter::foregroundHigh | ( | const QString & | curveName | ) | const |
Get method for foreground higher bound.
Definition at line 83 of file DocumentModelColorFilter.cpp.
int DocumentModelColorFilter::foregroundLow | ( | const QString & | curveName | ) | const |
Get method for foreground lower bound.
Definition at line 94 of file DocumentModelColorFilter.cpp.
double DocumentModelColorFilter::high | ( | const QString & | curveName | ) | const |
High value of foreground, hue, intensity, saturation or value according to current filter mode.
normalized to 0 to 1.
Definition at line 105 of file DocumentModelColorFilter.cpp.
int DocumentModelColorFilter::hueHigh | ( | const QString & | curveName | ) | const |
Get method for hue higher bound.
Definition at line 116 of file DocumentModelColorFilter.cpp.
int DocumentModelColorFilter::hueLow | ( | const QString & | curveName | ) | const |
Get method for hue lower bound.
Definition at line 127 of file DocumentModelColorFilter.cpp.
int DocumentModelColorFilter::intensityHigh | ( | const QString & | curveName | ) | const |
Get method for intensity higher bound.
Definition at line 138 of file DocumentModelColorFilter.cpp.
int DocumentModelColorFilter::intensityLow | ( | const QString & | curveName | ) | const |
Get method for intensity lower bound.
Definition at line 149 of file DocumentModelColorFilter.cpp.
|
virtual |
Load model from serialized xml.
Implements DocumentModelAbstractBase.
Definition at line 160 of file DocumentModelColorFilter.cpp.
double DocumentModelColorFilter::low | ( | const QString & | curveName | ) | const |
Low value of foreground, hue, intensity, saturation or value according to current filter mode normalized to 0 to 1.
Definition at line 212 of file DocumentModelColorFilter.cpp.
DocumentModelColorFilter & DocumentModelColorFilter::operator= | ( | const DocumentModelColorFilter & | other | ) |
Assignment constructor.
Definition at line 53 of file DocumentModelColorFilter.cpp.
void DocumentModelColorFilter::printStream | ( | QString | indentation, |
QTextStream & | str ) const |
Debugging method that supports print method of this class and printStream method of some other class(es)
int DocumentModelColorFilter::saturationHigh | ( | const QString & | curveName | ) | const |
Get method for saturation higher bound.
Definition at line 223 of file DocumentModelColorFilter.cpp.
int DocumentModelColorFilter::saturationLow | ( | const QString & | curveName | ) | const |
Get method for saturation lower bound.
Definition at line 234 of file DocumentModelColorFilter.cpp.
|
virtual |
Save entire model as xml into stream.
Implements DocumentModelAbstractBase.
Definition at line 245 of file DocumentModelColorFilter.cpp.
void DocumentModelColorFilter::setColorFilterMode | ( | const QString & | curveName, |
ColorFilterMode | colorFilterMode ) |
Set method for filter mode.
Definition at line 265 of file DocumentModelColorFilter.cpp.
void DocumentModelColorFilter::setForegroundHigh | ( | const QString & | curveName, |
int | foregroundHigh ) |
Set method for foreground higher bound.
Definition at line 272 of file DocumentModelColorFilter.cpp.
void DocumentModelColorFilter::setForegroundLow | ( | const QString & | curveName, |
int | foregroundLow ) |
Set method for foreground lower bound.
Definition at line 279 of file DocumentModelColorFilter.cpp.
void DocumentModelColorFilter::setHigh | ( | const QString & | curveName, |
double | s0To1 ) |
Set the high value for the current filter mode.
Definition at line 286 of file DocumentModelColorFilter.cpp.
void DocumentModelColorFilter::setHueHigh | ( | const QString & | curveName, |
int | hueHigh ) |
Set method for hue higher bound.
Definition at line 293 of file DocumentModelColorFilter.cpp.
void DocumentModelColorFilter::setHueLow | ( | const QString & | curveName, |
int | hueLow ) |
Set method for hue lower bound.
Definition at line 300 of file DocumentModelColorFilter.cpp.
void DocumentModelColorFilter::setIntensityHigh | ( | const QString & | curveName, |
int | intensityHigh ) |
Set method for intensity higher bound.
Definition at line 307 of file DocumentModelColorFilter.cpp.
void DocumentModelColorFilter::setIntensityLow | ( | const QString & | curveName, |
int | intensityLow ) |
Set method for intensity lower bound.
Definition at line 314 of file DocumentModelColorFilter.cpp.
void DocumentModelColorFilter::setLow | ( | const QString & | curveName, |
double | s0To1 ) |
Set the low value for the current filter mode.
Definition at line 321 of file DocumentModelColorFilter.cpp.
void DocumentModelColorFilter::setSaturationHigh | ( | const QString & | curveName, |
int | saturationHigh ) |
Set method for saturation high.
Definition at line 328 of file DocumentModelColorFilter.cpp.
void DocumentModelColorFilter::setSaturationLow | ( | const QString & | curveName, |
int | saturationLow ) |
Set method for saturation low.
Definition at line 335 of file DocumentModelColorFilter.cpp.
void DocumentModelColorFilter::setValueHigh | ( | const QString & | curveName, |
int | valueHigh ) |
Set method for value high.
Definition at line 342 of file DocumentModelColorFilter.cpp.
void DocumentModelColorFilter::setValueLow | ( | const QString & | curveName, |
int | valueLow ) |
Set method for value low.
Definition at line 349 of file DocumentModelColorFilter.cpp.
int DocumentModelColorFilter::valueHigh | ( | const QString & | curveName | ) | const |
Get method for value high.
Definition at line 356 of file DocumentModelColorFilter.cpp.
int DocumentModelColorFilter::valueLow | ( | const QString & | curveName | ) | const |
Get method for value low.
Definition at line 362 of file DocumentModelColorFilter.cpp.