Engauge Digitizer 2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
DocumentModelColorFilter Class Reference

Model for DlgSettingsColorFilter and CmdSettingsColorFilter. More...

#include <DocumentModelColorFilter.h>

Inheritance diagram for DocumentModelColorFilter:
DocumentModelAbstractBase

Public Member Functions

 DocumentModelColorFilter ()
 Default constructor.
 
 DocumentModelColorFilter (const DocumentModelColorFilter &other)
 Copy constructor.
 
 DocumentModelColorFilter (const CoordSystem &coordSystem)
 Initial constructor from CoordSystem.
 
DocumentModelColorFilteroperator= (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.
 

Additional Inherited Members

Detailed Description

Model for DlgSettingsColorFilter and CmdSettingsColorFilter.

Definition at line 21 of file DocumentModelColorFilter.h.

Constructor & Destructor Documentation

◆ DocumentModelColorFilter() [1/3]

DocumentModelColorFilter::DocumentModelColorFilter ( )

Default constructor.

Definition at line 18 of file DocumentModelColorFilter.cpp.

◆ DocumentModelColorFilter() [2/3]

DocumentModelColorFilter::DocumentModelColorFilter ( const DocumentModelColorFilter other)

Copy constructor.

Definition at line 42 of file DocumentModelColorFilter.cpp.

◆ DocumentModelColorFilter() [3/3]

DocumentModelColorFilter::DocumentModelColorFilter ( const CoordSystem coordSystem)

Initial constructor from CoordSystem.

Definition at line 23 of file DocumentModelColorFilter.cpp.

Member Function Documentation

◆ colorFilterMode()

ColorFilterMode DocumentModelColorFilter::colorFilterMode ( const QString &  curveName) const

Get method for filter mode.

Definition at line 66 of file DocumentModelColorFilter.cpp.

◆ colorFilterSettings()

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.

◆ colorFilterSettingsList()

const ColorFilterSettingsList & DocumentModelColorFilter::colorFilterSettingsList ( ) const

Get method for copying all color filters in one step.

Definition at line 78 of file DocumentModelColorFilter.cpp.

◆ foregroundHigh()

int DocumentModelColorFilter::foregroundHigh ( const QString &  curveName) const

Get method for foreground higher bound.

Definition at line 83 of file DocumentModelColorFilter.cpp.

◆ foregroundLow()

int DocumentModelColorFilter::foregroundLow ( const QString &  curveName) const

Get method for foreground lower bound.

Definition at line 94 of file DocumentModelColorFilter.cpp.

◆ high()

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.

◆ hueHigh()

int DocumentModelColorFilter::hueHigh ( const QString &  curveName) const

Get method for hue higher bound.

Definition at line 116 of file DocumentModelColorFilter.cpp.

◆ hueLow()

int DocumentModelColorFilter::hueLow ( const QString &  curveName) const

Get method for hue lower bound.

Definition at line 127 of file DocumentModelColorFilter.cpp.

◆ intensityHigh()

int DocumentModelColorFilter::intensityHigh ( const QString &  curveName) const

Get method for intensity higher bound.

Definition at line 138 of file DocumentModelColorFilter.cpp.

◆ intensityLow()

int DocumentModelColorFilter::intensityLow ( const QString &  curveName) const

Get method for intensity lower bound.

Definition at line 149 of file DocumentModelColorFilter.cpp.

◆ loadXml()

void DocumentModelColorFilter::loadXml ( QXmlStreamReader &  reader)
virtual

Load model from serialized xml.

Implements DocumentModelAbstractBase.

Definition at line 160 of file DocumentModelColorFilter.cpp.

◆ low()

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.

◆ operator=()

DocumentModelColorFilter & DocumentModelColorFilter::operator= ( const DocumentModelColorFilter other)

Assignment constructor.

Definition at line 53 of file DocumentModelColorFilter.cpp.

◆ saturationHigh()

int DocumentModelColorFilter::saturationHigh ( const QString &  curveName) const

Get method for saturation higher bound.

Definition at line 223 of file DocumentModelColorFilter.cpp.

◆ saturationLow()

int DocumentModelColorFilter::saturationLow ( const QString &  curveName) const

Get method for saturation lower bound.

Definition at line 234 of file DocumentModelColorFilter.cpp.

◆ saveXml()

void DocumentModelColorFilter::saveXml ( QXmlStreamWriter &  writer) const
virtual

Save entire model as xml into stream.

Implements DocumentModelAbstractBase.

Definition at line 245 of file DocumentModelColorFilter.cpp.

◆ setColorFilterMode()

void DocumentModelColorFilter::setColorFilterMode ( const QString &  curveName,
ColorFilterMode  colorFilterMode 
)

Set method for filter mode.

Definition at line 265 of file DocumentModelColorFilter.cpp.

◆ setForegroundHigh()

void DocumentModelColorFilter::setForegroundHigh ( const QString &  curveName,
int  foregroundHigh 
)

Set method for foreground higher bound.

Definition at line 272 of file DocumentModelColorFilter.cpp.

◆ setForegroundLow()

void DocumentModelColorFilter::setForegroundLow ( const QString &  curveName,
int  foregroundLow 
)

Set method for foreground lower bound.

Definition at line 279 of file DocumentModelColorFilter.cpp.

◆ setHigh()

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.

◆ setHueHigh()

void DocumentModelColorFilter::setHueHigh ( const QString &  curveName,
int  hueHigh 
)

Set method for hue higher bound.

Definition at line 293 of file DocumentModelColorFilter.cpp.

◆ setHueLow()

void DocumentModelColorFilter::setHueLow ( const QString &  curveName,
int  hueLow 
)

Set method for hue lower bound.

Definition at line 300 of file DocumentModelColorFilter.cpp.

◆ setIntensityHigh()

void DocumentModelColorFilter::setIntensityHigh ( const QString &  curveName,
int  intensityHigh 
)

Set method for intensity higher bound.

Definition at line 307 of file DocumentModelColorFilter.cpp.

◆ setIntensityLow()

void DocumentModelColorFilter::setIntensityLow ( const QString &  curveName,
int  intensityLow 
)

Set method for intensity lower bound.

Definition at line 314 of file DocumentModelColorFilter.cpp.

◆ setLow()

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.

◆ setSaturationHigh()

void DocumentModelColorFilter::setSaturationHigh ( const QString &  curveName,
int  saturationHigh 
)

Set method for saturation high.

Definition at line 328 of file DocumentModelColorFilter.cpp.

◆ setSaturationLow()

void DocumentModelColorFilter::setSaturationLow ( const QString &  curveName,
int  saturationLow 
)

Set method for saturation low.

Definition at line 335 of file DocumentModelColorFilter.cpp.

◆ setValueHigh()

void DocumentModelColorFilter::setValueHigh ( const QString &  curveName,
int  valueHigh 
)

Set method for value high.

Definition at line 342 of file DocumentModelColorFilter.cpp.

◆ setValueLow()

void DocumentModelColorFilter::setValueLow ( const QString &  curveName,
int  valueLow 
)

Set method for value low.

Definition at line 349 of file DocumentModelColorFilter.cpp.

◆ valueHigh()

int DocumentModelColorFilter::valueHigh ( const QString &  curveName) const

Get method for value high.

Definition at line 356 of file DocumentModelColorFilter.cpp.

◆ valueLow()

int DocumentModelColorFilter::valueLow ( const QString &  curveName) const

Get method for value low.

Definition at line 362 of file DocumentModelColorFilter.cpp.


The documentation for this class was generated from the following files: