Engauge Digitizer  2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 }
Command pattern object for receiving new parameters in DlgFilterWorker from GUI thread.
DlgFilterCommand(ColorFilterMode colorFilterMode, double low0To1, double high0To1)
Initial constructor.
double low0To1() const
Get method for low value.
ColorFilterMode
double high0To1() const
Get method for high value.
DlgFilterCommand & operator=(const DlgFilterCommand &other)
Assignment operator.
ColorFilterMode colorFilterMode() const
Get method for filter mode.