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

Leaf class for foreground strategy for ColorFilterSettings. More...

#include <ColorFilterSettingsStrategyForeground.h>

Inheritance diagram for ColorFilterSettingsStrategyForeground:
Inheritance graph
Collaboration diagram for ColorFilterSettingsStrategyForeground:
Collaboration graph

Public Member Functions

 ColorFilterSettingsStrategyForeground ()
 Single constructor.
 
 ~ColorFilterSettingsStrategyForeground ()
 
virtual double high (const ColorFilterSettings &colorFilterSettings) const
 Return the high value normalized to 0 to 1.
 
virtual double low (const ColorFilterSettings &colorFilterSettings) const
 Return the low value normalized to 0 to 1.
 
virtual void printStream (const ColorFilterSettings &colorFilterSettings, QString indentation, QTextStream &str) const
 Print the low and high values.
 
virtual void setHigh (ColorFilterSettings &colorFilterSettings, double s0To1)
 Set the high value given the normalized value.
 
virtual void setLow (ColorFilterSettings &colorFilterSettings, double s0To1)
 Set the low value given the normalized value.
 
- Public Member Functions inherited from ColorFilterSettingsStrategyAbstractBase
 ColorFilterSettingsStrategyAbstractBase ()
 Single constructor.
 
virtual ~ColorFilterSettingsStrategyAbstractBase ()
 

Detailed Description

Leaf class for foreground strategy for ColorFilterSettings.

Definition at line 13 of file ColorFilterSettingsStrategyForeground.h.

Constructor & Destructor Documentation

◆ ColorFilterSettingsStrategyForeground()

ColorFilterSettingsStrategyForeground::ColorFilterSettingsStrategyForeground ( )

Single constructor.

Definition at line 13 of file ColorFilterSettingsStrategyForeground.cpp.

14{
15}

◆ ~ColorFilterSettingsStrategyForeground()

ColorFilterSettingsStrategyForeground::~ColorFilterSettingsStrategyForeground ( )

Definition at line 17 of file ColorFilterSettingsStrategyForeground.cpp.

18{
19}

Member Function Documentation

◆ high()

double ColorFilterSettingsStrategyForeground::high ( const ColorFilterSettings & colorFilterSettings) const
virtual

Return the high value normalized to 0 to 1.

Implements ColorFilterSettingsStrategyAbstractBase.

Definition at line 21 of file ColorFilterSettingsStrategyForeground.cpp.

22{
23 return double (colorFilterSettings.foregroundHigh () - FOREGROUND_MIN) /
25}
const int FOREGROUND_MAX
const int FOREGROUND_MIN
const int INNER_RADIUS_MIN
int foregroundHigh() const
Get method for foreground higher bound.

◆ low()

double ColorFilterSettingsStrategyForeground::low ( const ColorFilterSettings & colorFilterSettings) const
virtual

Return the low value normalized to 0 to 1.

Implements ColorFilterSettingsStrategyAbstractBase.

Definition at line 27 of file ColorFilterSettingsStrategyForeground.cpp.

28{
29 return double (colorFilterSettings.foregroundLow () - FOREGROUND_MIN) /
31}
int foregroundLow() const
Get method for foreground lower bound.

◆ printStream()

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

Print the low and high values.

Implements ColorFilterSettingsStrategyAbstractBase.

Definition at line 33 of file ColorFilterSettingsStrategyForeground.cpp.

36{
37 str << indentation << "foregroundLow=" << colorFilterSettings.intensityLow () << "\n";
38 str << indentation << "foregroundHigh=" << colorFilterSettings.intensityHigh () << "\n";
39}
int intensityHigh() const
Get method for intensity higher bound.
int intensityLow() const
Get method for intensity lower bound.

◆ setHigh()

void ColorFilterSettingsStrategyForeground::setHigh ( ColorFilterSettings & colorFilterSettings,
double s0To1 )
virtual

Set the high value given the normalized value.

Implements ColorFilterSettingsStrategyAbstractBase.

Definition at line 41 of file ColorFilterSettingsStrategyForeground.cpp.

43{
45}
void setForegroundHigh(int foregroundHigh)
Set method for foreground higher bound.

◆ setLow()

void ColorFilterSettingsStrategyForeground::setLow ( ColorFilterSettings & colorFilterSettings,
double s0To1 )
virtual

Set the low value given the normalized value.

Implements ColorFilterSettingsStrategyAbstractBase.

Definition at line 47 of file ColorFilterSettingsStrategyForeground.cpp.

49{
51}
void setForegroundLow(int foregroundLow)
Set method for foreground lower bound.

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