Engauge Digitizer 2
Loading...
Searching...
No Matches
ColorFilterSettings Class Reference

Color filter parameters for one curve. For a class, this is handled the same as LineStyle and PointStyle. More...

#include <ColorFilterSettings.h>

Collaboration diagram for ColorFilterSettings:
Collaboration graph

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.
ColorFilterSettingsoperator= (const ColorFilterSettings &other)
 Assignment operator.
 ~ColorFilterSettings ()
 Destructor deallocates memory.
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.
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.
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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ ColorFilterSettings() [1/4]

ColorFilterSettings::ColorFilterSettings ( )

Default constructor only for use when this class is being stored by a container that requires the default constructor.

Definition at line 24 of file ColorFilterSettings.cpp.

24 :
25 m_colorFilterMode (COLOR_FILTER_MODE_INTENSITY),
26 m_intensityLow (INTENSITY_LOW_DEFAULT),
27 m_intensityHigh (INTENSITY_HIGH_DEFAULT),
28 m_foregroundLow (FOREGROUND_LOW_DEFAULT),
29 m_foregroundHigh (FOREGROUND_HIGH_DEFAULT),
30 m_hueLow (HUE_LOW_DEFAULT),
31 m_hueHigh (HUE_HIGH_DEFAULT),
32 m_saturationLow (SATURATION_LOW_DEFAULT),
33 m_saturationHigh (SATURATION_HIGH_DEFAULT),
34 m_valueLow (VALUE_LOW_DEFAULT),
35 m_valueHigh (VALUE_HIGH_DEFAULT)
36{
37 createStrategies ();
38}
const int HUE_HIGH_DEFAULT
const int FOREGROUND_LOW_DEFAULT
const int SATURATION_HIGH_DEFAULT
const int VALUE_HIGH_DEFAULT
const int SATURATION_LOW_DEFAULT
const int INTENSITY_LOW_DEFAULT
const int HUE_LOW_DEFAULT
const int FOREGROUND_HIGH_DEFAULT
const int INTENSITY_HIGH_DEFAULT
const int VALUE_LOW_DEFAULT
@ COLOR_FILTER_MODE_INTENSITY

◆ ColorFilterSettings() [2/4]

ColorFilterSettings::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.

Definition at line 40 of file ColorFilterSettings.cpp.

50 :
51 m_colorFilterMode (colorFilterMode),
52 m_intensityLow (intensityLow),
53 m_intensityHigh (intensityHigh),
54 m_foregroundLow (foregroundLow),
55 m_foregroundHigh (foregroundHigh),
56 m_hueLow (hueLow),
57 m_hueHigh (hueHigh),
58 m_saturationLow (saturationLow),
59 m_saturationHigh (saturationHigh),
60 m_valueLow (valueLow),
61 m_valueHigh (valueHigh)
62{
63 createStrategies ();
64}
int foregroundLow() const
Get method for foreground lower bound.
int saturationLow() const
Get method for saturation lower bound.
int intensityHigh() const
Get method for intensity higher bound.
int saturationHigh() const
Get method for saturation higher bound.
ColorFilterMode colorFilterMode() const
Get method for filter mode.
int valueLow() const
Get method for value low.
int hueHigh() const
Get method for hue higher bound.
int foregroundHigh() const
Get method for foreground higher bound.
int intensityLow() const
Get method for intensity lower bound.
int hueLow() const
Get method for hue lower bound.
int valueHigh() const
Get method for value high.

◆ ColorFilterSettings() [3/4]

ColorFilterSettings::ColorFilterSettings ( const ColorFilterSettings & other)

Copy constructor.

Definition at line 66 of file ColorFilterSettings.cpp.

66 :
67 m_colorFilterMode (other.colorFilterMode()),
68 m_intensityLow (other.intensityLow()),
69 m_intensityHigh (other.intensityHigh()),
70 m_foregroundLow (other.foregroundLow()),
71 m_foregroundHigh (other.foregroundHigh()),
72 m_hueLow (other.hueLow()),
73 m_hueHigh (other.hueHigh()),
74 m_saturationLow (other.saturationLow()),
75 m_saturationHigh (other.saturationHigh()),
76 m_valueLow (other.valueLow()),
77 m_valueHigh (other.valueHigh())
78{
79 createStrategies ();
80}

◆ ColorFilterSettings() [4/4]

ColorFilterSettings::ColorFilterSettings ( QXmlStreamReader & reader)

Constructor when loading from serialized xml.

Definition at line 82 of file ColorFilterSettings.cpp.

83{
84 loadXml(reader);
85 createStrategies ();
86}
void loadXml(QXmlStreamReader &reader)
Load curve filter to stream.

◆ ~ColorFilterSettings()

ColorFilterSettings::~ColorFilterSettings ( )

Destructor deallocates memory.

Definition at line 107 of file ColorFilterSettings.cpp.

108{
109 qDeleteAll (m_strategies);
110}

Member Function Documentation

◆ colorFilterMode()

ColorFilterMode ColorFilterSettings::colorFilterMode ( ) const

Get method for filter mode.

Definition at line 112 of file ColorFilterSettings.cpp.

113{
114 return m_colorFilterMode;
115}

◆ defaultFilter()

ColorFilterSettings ColorFilterSettings::defaultFilter ( )
static

Initial default for any Curve.

Definition at line 128 of file ColorFilterSettings.cpp.

129{
130 return ColorFilterSettings ();
131}
ColorFilterSettings()
Default constructor only for use when this class is being stored by a container that requires the def...

◆ foregroundHigh()

int ColorFilterSettings::foregroundHigh ( ) const

Get method for foreground higher bound.

Definition at line 133 of file ColorFilterSettings.cpp.

134{
135 return m_foregroundHigh;
136}

◆ foregroundLow()

int ColorFilterSettings::foregroundLow ( ) const

Get method for foreground lower bound.

Definition at line 138 of file ColorFilterSettings.cpp.

139{
140 return m_foregroundLow;
141}

◆ high()

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 143 of file ColorFilterSettings.cpp.

144{
145 if (m_strategies.contains (m_colorFilterMode)) {
146
147 // Ignore false positive cmake compiler warning about -Wreturn-stack-address in next line (bug #26396)
148 const ColorFilterSettingsStrategyAbstractBase *strategy = m_strategies.value (m_colorFilterMode);
149 return strategy->high (*this);
150 } else {
151 LOG4CPP_ERROR_S ((*mainCat)) << "ColorFilterSettings::high is missing color filter mode";
152 ENGAUGE_ASSERT (false);
153 return m_strategies [COLOR_FILTER_MODE_INTENSITY]->high (*this);
154 }
155}
#define ENGAUGE_ASSERT(cond)
Drop in replacement for Q_ASSERT.
log4cpp::Category * mainCat
Definition Logger.cpp:14
virtual double high(const ColorFilterSettings &colorFilterSettings) const =0
Return the high value normalized to 0 to 1.
#define LOG4CPP_ERROR_S(logger)
Definition convenience.h:12

◆ hueHigh()

int ColorFilterSettings::hueHigh ( ) const

Get method for hue higher bound.

Definition at line 157 of file ColorFilterSettings.cpp.

158{
159 return m_hueHigh;
160}

◆ hueLow()

int ColorFilterSettings::hueLow ( ) const

Get method for hue lower bound.

Definition at line 162 of file ColorFilterSettings.cpp.

163{
164 return m_hueLow;
165}

◆ intensityHigh()

int ColorFilterSettings::intensityHigh ( ) const

Get method for intensity higher bound.

Definition at line 167 of file ColorFilterSettings.cpp.

168{
169 return m_intensityHigh;
170}

◆ intensityLow()

int ColorFilterSettings::intensityLow ( ) const

Get method for intensity lower bound.

Definition at line 172 of file ColorFilterSettings.cpp.

173{
174 return m_intensityLow;
175}

◆ loadXml()

void ColorFilterSettings::loadXml ( QXmlStreamReader & reader)

Load curve filter to stream.

Definition at line 177 of file ColorFilterSettings.cpp.

178{
179 LOG4CPP_INFO_S ((*mainCat)) << "ColorFilterSettings::loadXml";
180
181 bool success = true;
182
183 QXmlStreamAttributes attributes = reader.attributes();
184
185 if (attributes.hasAttribute(DOCUMENT_SERIALIZE_COLOR_FILTER_MODE) &&
186 attributes.hasAttribute(DOCUMENT_SERIALIZE_COLOR_FILTER_INTENSITY_LOW) &&
187 attributes.hasAttribute(DOCUMENT_SERIALIZE_COLOR_FILTER_INTENSITY_HIGH) &&
188 attributes.hasAttribute(DOCUMENT_SERIALIZE_COLOR_FILTER_FOREGROUND_LOW) &&
189 attributes.hasAttribute(DOCUMENT_SERIALIZE_COLOR_FILTER_FOREGROUND_HIGH) &&
190 attributes.hasAttribute(DOCUMENT_SERIALIZE_COLOR_FILTER_HUE_LOW) &&
191 attributes.hasAttribute(DOCUMENT_SERIALIZE_COLOR_FILTER_HUE_HIGH) &&
192 attributes.hasAttribute(DOCUMENT_SERIALIZE_COLOR_FILTER_SATURATION_LOW) &&
193 attributes.hasAttribute(DOCUMENT_SERIALIZE_COLOR_FILTER_SATURATION_HIGH) &&
194 attributes.hasAttribute(DOCUMENT_SERIALIZE_COLOR_FILTER_VALUE_LOW) &&
195 attributes.hasAttribute(DOCUMENT_SERIALIZE_COLOR_FILTER_VALUE_HIGH)) {
196
197 setColorFilterMode (static_cast<ColorFilterMode> (attributes.value(DOCUMENT_SERIALIZE_COLOR_FILTER_MODE).toInt()));
202 setHueLow (attributes.value(DOCUMENT_SERIALIZE_COLOR_FILTER_HUE_LOW).toInt());
203 setHueHigh (attributes.value(DOCUMENT_SERIALIZE_COLOR_FILTER_HUE_HIGH).toInt());
206 setValueLow (attributes.value(DOCUMENT_SERIALIZE_COLOR_FILTER_VALUE_LOW).toInt());
208
209 // Read until end of this subtree
210 while ((reader.tokenType() != QXmlStreamReader::EndElement) ||
211 (reader.name() != DOCUMENT_SERIALIZE_COLOR_FILTER)){
212 loadNextFromReader(reader);
213
214 if (reader.atEnd()) {
215 success = false;
216 break;
217 }
218 }
219 }
220
221 if (!success) {
222 reader.raiseError (QObject::tr ("Cannot read curve filter data"));
223 }
224}
ColorFilterMode
const QString DOCUMENT_SERIALIZE_COLOR_FILTER
const QString DOCUMENT_SERIALIZE_COLOR_FILTER_VALUE_LOW
const QString DOCUMENT_SERIALIZE_COLOR_FILTER_HUE_HIGH
const QString DOCUMENT_SERIALIZE_COLOR_FILTER_VALUE_HIGH
const QString DOCUMENT_SERIALIZE_COLOR_FILTER_INTENSITY_LOW
const QString DOCUMENT_SERIALIZE_COLOR_FILTER_FOREGROUND_HIGH
const QString DOCUMENT_SERIALIZE_COLOR_FILTER_INTENSITY_HIGH
const QString DOCUMENT_SERIALIZE_COLOR_FILTER_FOREGROUND_LOW
const QString DOCUMENT_SERIALIZE_COLOR_FILTER_SATURATION_HIGH
const QString DOCUMENT_SERIALIZE_COLOR_FILTER_MODE
const QString DOCUMENT_SERIALIZE_COLOR_FILTER_HUE_LOW
const QString DOCUMENT_SERIALIZE_COLOR_FILTER_SATURATION_LOW
GridCoordDisable
QXmlStreamReader::TokenType loadNextFromReader(QXmlStreamReader &reader)
Load next token from xml reader.
Definition Xml.cpp:14
void setIntensityLow(int intensityLow)
Set method for intensity lower bound.
void setForegroundLow(int foregroundLow)
Set method for foreground lower bound.
void setValueLow(int valueLow)
Set method for value low.
void setValueHigh(int valueHigh)
Set method for value high.
void setSaturationLow(int saturationLow)
Set method for saturation low.
void setHueLow(int hueLow)
Set method for hue lower bound.
void setColorFilterMode(ColorFilterMode colorFilterMode)
Set method for filter mode.
void setForegroundHigh(int foregroundHigh)
Set method for foreground higher bound.
void setIntensityHigh(int intensityHigh)
Set method for intensity higher bound.
void setSaturationHigh(int saturationHigh)
Set method for saturation high.
void setHueHigh(int hueHigh)
Set method for hue higher bound.
#define LOG4CPP_INFO_S(logger)
Definition convenience.h:18

◆ low()

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 226 of file ColorFilterSettings.cpp.

227{
228 if (m_strategies.contains (m_colorFilterMode)) {
229 const ColorFilterSettingsStrategyAbstractBase *strategy = m_strategies.value (m_colorFilterMode);
230 return strategy->low (*this);
231 } else {
232 LOG4CPP_ERROR_S ((*mainCat)) << "ColorFilterSettings::low is missing color filter mode";
233 ENGAUGE_ASSERT (false);
234 return m_strategies [COLOR_FILTER_MODE_INTENSITY]->low (*this);
235 }
236}
virtual double low(const ColorFilterSettings &colorFilterSettings) const =0
Return the low value normalized to 0 to 1.

◆ operator=()

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

Assignment operator.

Definition at line 88 of file ColorFilterSettings.cpp.

89{
90 m_colorFilterMode = other.colorFilterMode();
91 m_intensityLow = other.intensityLow();
92 m_intensityHigh = other.intensityHigh();
93 m_foregroundLow = other.foregroundLow();
94 m_foregroundHigh = other.foregroundHigh();
95 m_hueLow = other.hueLow();
96 m_hueHigh = other.hueHigh();
97 m_saturationLow = other.saturationLow();
98 m_saturationHigh = other.saturationHigh();
99 m_valueLow = other.valueLow();
100 m_valueHigh = other.valueHigh();
101
102 createStrategies ();
103
104 return *this;
105}

◆ printStream()

void ColorFilterSettings::printStream ( QString indentation,
QTextStream & str ) const

Debugging method that supports print method of this class and printStream method of some other class(es)

Definition at line 238 of file ColorFilterSettings.cpp.

240{
241 str << indentation << "ColorFilterSettings\n";
242
243 indentation += INDENTATION_DELTA;
244
245 if (m_strategies.contains (m_colorFilterMode)) {
246 const ColorFilterSettingsStrategyAbstractBase *strategy = m_strategies.value (m_colorFilterMode);
247 return strategy->printStream (*this,
248 indentation,
249 str);
250 }
251}
const QString INDENTATION_DELTA
virtual void printStream(const ColorFilterSettings &colorFilterSettings, QString indentation, QTextStream &str) const =0
Print the low and high values.

◆ saturationHigh()

int ColorFilterSettings::saturationHigh ( ) const

Get method for saturation higher bound.

Definition at line 253 of file ColorFilterSettings.cpp.

254{
255 return m_saturationHigh;
256}

◆ saturationLow()

int ColorFilterSettings::saturationLow ( ) const

Get method for saturation lower bound.

Definition at line 258 of file ColorFilterSettings.cpp.

259{
260 return m_saturationLow;
261}

◆ saveXml()

void ColorFilterSettings::saveXml ( QXmlStreamWriter & writer,
const QString & curveName ) const

Save curve filter to stream.

Definition at line 263 of file ColorFilterSettings.cpp.

265{
266 LOG4CPP_INFO_S ((*mainCat)) << "ColorFilterSettings::saveXml";
267
268 writer.writeStartElement(DOCUMENT_SERIALIZE_COLOR_FILTER);
269 writer.writeAttribute(DOCUMENT_SERIALIZE_CURVE_NAME, curveName);
270 writer.writeAttribute(DOCUMENT_SERIALIZE_COLOR_FILTER_MODE, QString::number (m_colorFilterMode));
271 writer.writeAttribute(DOCUMENT_SERIALIZE_COLOR_FILTER_MODE_STRING, colorFilterModeToString (m_colorFilterMode));
272 writer.writeAttribute(DOCUMENT_SERIALIZE_COLOR_FILTER_INTENSITY_LOW, QString::number (m_intensityLow));
273 writer.writeAttribute(DOCUMENT_SERIALIZE_COLOR_FILTER_INTENSITY_HIGH, QString::number (m_intensityHigh));
274 writer.writeAttribute(DOCUMENT_SERIALIZE_COLOR_FILTER_FOREGROUND_LOW, QString::number (m_foregroundLow));
275 writer.writeAttribute(DOCUMENT_SERIALIZE_COLOR_FILTER_FOREGROUND_HIGH, QString::number (m_foregroundHigh));
276 writer.writeAttribute(DOCUMENT_SERIALIZE_COLOR_FILTER_HUE_LOW, QString::number (m_hueLow));
277 writer.writeAttribute(DOCUMENT_SERIALIZE_COLOR_FILTER_HUE_HIGH, QString::number (m_hueHigh));
278 writer.writeAttribute(DOCUMENT_SERIALIZE_COLOR_FILTER_SATURATION_LOW, QString::number (m_saturationLow));
279 writer.writeAttribute(DOCUMENT_SERIALIZE_COLOR_FILTER_SATURATION_HIGH, QString::number (m_saturationHigh));
280 writer.writeAttribute(DOCUMENT_SERIALIZE_COLOR_FILTER_VALUE_LOW, QString::number (m_valueLow));
281 writer.writeAttribute(DOCUMENT_SERIALIZE_COLOR_FILTER_VALUE_HIGH, QString::number (m_valueHigh));
282 writer.writeEndElement();
283}
QString colorFilterModeToString(ColorFilterMode colorFilterMode)
const QString DOCUMENT_SERIALIZE_CURVE_NAME
const QString DOCUMENT_SERIALIZE_COLOR_FILTER_MODE_STRING

◆ setColorFilterMode()

void ColorFilterSettings::setColorFilterMode ( ColorFilterMode colorFilterMode)

Set method for filter mode.

Definition at line 285 of file ColorFilterSettings.cpp.

286{
287 m_colorFilterMode = colorFilterMode;
288}

◆ setForegroundHigh()

void ColorFilterSettings::setForegroundHigh ( int foregroundHigh)

Set method for foreground higher bound.

Definition at line 290 of file ColorFilterSettings.cpp.

291{
293 m_foregroundHigh = foregroundHigh;
294}
const int FOREGROUND_MAX
const int FOREGROUND_MIN

◆ setForegroundLow()

void ColorFilterSettings::setForegroundLow ( int foregroundLow)

Set method for foreground lower bound.

Definition at line 296 of file ColorFilterSettings.cpp.

297{
299 m_foregroundLow = foregroundLow;
300}

◆ setHigh()

void ColorFilterSettings::setHigh ( double s0To1)

Set the high value for the current filter mode.

Definition at line 302 of file ColorFilterSettings.cpp.

303{
304 if (m_strategies.contains (m_colorFilterMode)) {
305 ColorFilterSettingsStrategyAbstractBase *strategy = m_strategies [m_colorFilterMode];
306 return strategy->setHigh (*this,
307 s0To1);
308 } else {
309 LOG4CPP_ERROR_S ((*mainCat)) << "ColorFilterSettings::setHigh is missing color filter mode";
310 ENGAUGE_ASSERT (false);
311 }
312}
virtual void setHigh(ColorFilterSettings &colorFilterSettings, double s0To1)=0
Set the high value given the normalized value.

◆ setHueHigh()

void ColorFilterSettings::setHueHigh ( int hueHigh)

Set method for hue higher bound.

Definition at line 314 of file ColorFilterSettings.cpp.

315{
317 m_hueHigh = hueHigh;
318}
const int HUE_MAX
const int HUE_MIN

◆ setHueLow()

void ColorFilterSettings::setHueLow ( int hueLow)

Set method for hue lower bound.

Definition at line 320 of file ColorFilterSettings.cpp.

321{
323 m_hueLow = hueLow;
324}

◆ setIntensityHigh()

void ColorFilterSettings::setIntensityHigh ( int intensityHigh)

Set method for intensity higher bound.

Definition at line 326 of file ColorFilterSettings.cpp.

327{
329 m_intensityHigh = intensityHigh;
330}
const int INTENSITY_MAX
const int INTENSITY_MIN
Constants for use by CurveFilter and other curve-related classes.

◆ setIntensityLow()

void ColorFilterSettings::setIntensityLow ( int intensityLow)

Set method for intensity lower bound.

Definition at line 332 of file ColorFilterSettings.cpp.

333{
335 m_intensityLow = intensityLow;
336}

◆ setLow()

void ColorFilterSettings::setLow ( double s0To1)

Set the low value for the current filter mode.

Definition at line 338 of file ColorFilterSettings.cpp.

339{
340 if (m_strategies.contains (m_colorFilterMode)) {
341 ColorFilterSettingsStrategyAbstractBase *strategy = m_strategies [m_colorFilterMode];
342 return strategy->setLow (*this,
343 s0To1);
344 } else {
345 LOG4CPP_ERROR_S ((*mainCat)) << "ColorFilterSettings::setLow is missing color filter mode";
346 ENGAUGE_ASSERT (false);
347 }
348}
virtual void setLow(ColorFilterSettings &colorFilterSettings, double s0To1)=0
Set the low value given the normalized value.

◆ setSaturationHigh()

void ColorFilterSettings::setSaturationHigh ( int saturationHigh)

Set method for saturation high.

Definition at line 350 of file ColorFilterSettings.cpp.

351{
353 m_saturationHigh = saturationHigh;
354}
const int SATURATION_MAX
const int SATURATION_MIN

◆ setSaturationLow()

void ColorFilterSettings::setSaturationLow ( int saturationLow)

Set method for saturation low.

Definition at line 356 of file ColorFilterSettings.cpp.

357{
359 m_saturationLow = saturationLow;
360}

◆ setValueHigh()

void ColorFilterSettings::setValueHigh ( int valueHigh)

Set method for value high.

Definition at line 362 of file ColorFilterSettings.cpp.

363{
365 m_valueHigh = valueHigh;
366}
const int VALUE_MAX
const int VALUE_MIN

◆ setValueLow()

void ColorFilterSettings::setValueLow ( int valueLow)

Set method for value low.

Definition at line 368 of file ColorFilterSettings.cpp.

369{
371 m_valueLow = valueLow;
372}

◆ valueHigh()

int ColorFilterSettings::valueHigh ( ) const

Get method for value high.

Definition at line 374 of file ColorFilterSettings.cpp.

375{
376 return m_valueHigh;
377}

◆ valueLow()

int ColorFilterSettings::valueLow ( ) const

Get method for value low.

Definition at line 379 of file ColorFilterSettings.cpp.

380{
381 return m_valueLow;
382}

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