Engauge Digitizer  2
DlgFilterCommand.cpp
Go to the documentation of this file.
1 /******************************************************************************************************
2  * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3  * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4  * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5  ******************************************************************************************************/
6 
7 #include "DlgFilterCommand.h"
8 
10  double low0To1,
11  double high0To1) :
12  m_colorFilterMode (colorFilterMode),
13  m_low0To1 (low0To1),
14  m_high0To1 (high0To1)
15 {
16 }
17 
19  m_colorFilterMode (other.colorFilterMode()),
20  m_low0To1 (other.low0To1()),
21  m_high0To1 (other.high0To1())
22 {
23 }
24 
26 {
27  m_colorFilterMode = other.colorFilterMode();
28  m_low0To1 = other.low0To1();
29  m_high0To1 = other.high0To1();
30 
31  return *this;
32 }
33 
35 {
36  return m_colorFilterMode;
37 }
38 
40 {
41  return m_high0To1;
42 }
43 
45 {
46  return m_low0To1;
47 }
DlgFilterCommand::operator=
DlgFilterCommand & operator=(const DlgFilterCommand &other)
Assignment operator.
Definition: DlgFilterCommand.cpp:25
DlgFilterCommand
Command pattern object for receiving new parameters in DlgFilterWorker from GUI thread.
Definition: DlgFilterCommand.h:12
DlgFilterCommand::DlgFilterCommand
DlgFilterCommand(ColorFilterMode colorFilterMode, double low0To1, double high0To1)
Initial constructor.
Definition: DlgFilterCommand.cpp:9
DlgFilterCommand::high0To1
double high0To1() const
Get method for high value.
Definition: DlgFilterCommand.cpp:39
DlgFilterCommand::colorFilterMode
ColorFilterMode colorFilterMode() const
Get method for filter mode.
Definition: DlgFilterCommand.cpp:34
DlgFilterCommand::low0To1
double low0To1() const
Get method for low value.
Definition: DlgFilterCommand.cpp:44
DlgFilterCommand.h
ColorFilterMode
ColorFilterMode
Definition: ColorFilterMode.h:11