00001 /// \file CATFilter.cpp 00002 /// \brief Parent filtering class for one-dimensional filters. 00003 /// \ingroup CAT 00004 /// 00005 /// Copyright (c) 2003-2008 by Michael Ellison. 00006 /// See COPYING.txt for the \ref gaslicense License (MIT License). 00007 /// 00008 // $Author: mikeellison $ 00009 // $Date: 2008-01-19 19:19:35 -0600 (Sat, 19 Jan 2008) $ 00010 // $Revision: $ 00011 // $NoKeywords: $ 00012 00013 #include "CATFilter.h" 00014 00015 //--------------------------------------------------------------------------- 00016 CATFilter::CATFilter() 00017 { 00018 fLastFiltered = 0; 00019 } 00020 //--------------------------------------------------------------------------- 00021 CATFilter::~CATFilter() 00022 { 00023 } 00024 00025 //--------------------------------------------------------------------------- 00026 // Reset() resets the filter and filter count. 00027 //--------------------------------------------------------------------------- 00028 void CATFilter::Reset() 00029 { 00030 fLastFiltered = 0; 00031 } 00032 00033 //--------------------------------------------------------------------------- 00034 // GetLastFiltered() retrieves the last output value from the filter. 00035 // 00036 // \return CATFloat32 - last output from Filter() call. 00037 // \sa Filter(), GetLastRaw() 00038 //--------------------------------------------------------------------------- 00039 CATFloat32 CATFilter::GetLastFiltered() 00040 { 00041 return fLastFiltered; 00042 } 00043