00001 /****************************************************************************************************** 00002 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released * 00003 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file * 00004 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. * 00005 ******************************************************************************************************/ 00006 00007 #include "DlgFilterCommand.h" 00008 00009 DlgFilterCommand::DlgFilterCommand(ColorFilterMode colorFilterMode, 00010 double low0To1, 00011 double high0To1) : 00012 m_colorFilterMode (colorFilterMode), 00013 m_low0To1 (low0To1), 00014 m_high0To1 (high0To1) 00015 { 00016 } 00017 00018 DlgFilterCommand::DlgFilterCommand(const DlgFilterCommand &other) : 00019 m_colorFilterMode (other.colorFilterMode()), 00020 m_low0To1 (other.low0To1()), 00021 m_high0To1 (other.high0To1()) 00022 { 00023 } 00024 00025 DlgFilterCommand &DlgFilterCommand::operator=(const DlgFilterCommand &other) 00026 { 00027 m_colorFilterMode = other.colorFilterMode(); 00028 m_low0To1 = other.low0To1(); 00029 m_high0To1 = other.high0To1(); 00030 00031 return *this; 00032 } 00033 00034 ColorFilterMode DlgFilterCommand::colorFilterMode() const 00035 { 00036 return m_colorFilterMode; 00037 } 00038 00039 double DlgFilterCommand::high0To1() const 00040 { 00041 return m_high0To1; 00042 } 00043 00044 double DlgFilterCommand::low0To1() const 00045 { 00046 return m_low0To1; 00047 }