\doxysection{WFilter\+Type.\+h}
\hypertarget{a00194_source}{}\label{a00194_source}\index{WFilterType.h@{WFilterType.h}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#pragma\ once}}
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#include\ <NavigationSensor.h>}}
\DoxyCodeLine{00003\ }
\DoxyCodeLine{00004\ \textcolor{keyword}{using\ namespace\ }System;}
\DoxyCodeLine{00005\ }
\DoxyCodeLine{00006\ \textcolor{keyword}{public\ enum\ class}\ FilterMode\ \{\ Median\ =\ 0,\ Average\ =\ 1,\ Max\ =\ 2,\ Combo\ =\ 3\ \};}
\DoxyCodeLine{00007\ }
\DoxyCodeLine{00008\ \textcolor{keyword}{public\ ref\ class}\ \mbox{\hyperlink{a00764}{WFilterType}}}
\DoxyCodeLine{00009\ \{}
\DoxyCodeLine{00010\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00011\ \ \ \ \ \mbox{\hyperlink{a00764_ac2d6b5c70ea5f40ae90f52b474e3ccfa}{WFilterType}}()\ \{}
\DoxyCodeLine{00012\ \ \ \ \ \ \ \ \ \_filterType\ =\ \textcolor{keyword}{new}\ \mbox{\hyperlink{a00756}{FilterType}}();}
\DoxyCodeLine{00013\ \ \ \ \ \}}
\DoxyCodeLine{00014\ \ \ \ \ \mbox{\hyperlink{a00764_a2084f182ffafb8901181dbe83f4ed88a}{WFilterType}}(\mbox{\hyperlink{a00764}{WFilterType}}\string^\ toCopy)\ \{}
\DoxyCodeLine{00015\ \ \ \ \ \ \ \ \ \_filterType\ =\ \textcolor{keyword}{new}\ \mbox{\hyperlink{a00756}{FilterType}}();}
\DoxyCodeLine{00016\ \ \ \ \ \ \ \ \ FilterTypeValue\ =\ toCopy-\/>FilterTypeValue;}
\DoxyCodeLine{00017\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a00764_afbb9bcc626d7f45cd6eb1ca35e6bf867}{NumH}}\ =\ toCopy-\/>\mbox{\hyperlink{a00764_afbb9bcc626d7f45cd6eb1ca35e6bf867}{NumH}};}
\DoxyCodeLine{00018\ \ \ \ \ \ \ \ \ NumS\ =\ toCopy-\/>NumS;}
\DoxyCodeLine{00019\ \ \ \ \ \}}
\DoxyCodeLine{00020\ }
\DoxyCodeLine{00021\ \ \ \ \ \mbox{\hyperlink{a00764_a9887177abf51ba15ceef2f39051ce83c}{\string~WFilterType}}()\ \{}
\DoxyCodeLine{00022\ \ \ \ \ \ \ \ \ \textcolor{keyword}{delete}(\_filterType);}
\DoxyCodeLine{00023\ \ \ \ \ \}}
\DoxyCodeLine{00024\ }
\DoxyCodeLine{00025\ }
\DoxyCodeLine{00026\ \ \ \ \ \textcolor{keyword}{property}\ \textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{a00764_afbb9bcc626d7f45cd6eb1ca35e6bf867}{NumH}}\ \{}
\DoxyCodeLine{00027\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{int}\ get()\ \{}
\DoxyCodeLine{00028\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \_filterType-\/>GetNumH();}
\DoxyCodeLine{00029\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00030\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{void}\ set(\textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{int}\ x)\ \{}
\DoxyCodeLine{00031\ \ \ \ \ \ \ \ \ \ \ \ \ \_filterType-\/>SetNumH(x);}
\DoxyCodeLine{00032\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00033\ \ \ \ \ \}}
\DoxyCodeLine{00034\ }
\DoxyCodeLine{00035\ \ \ \ \ \textcolor{keyword}{property}\ \textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{int}\ NumS\ \{}
\DoxyCodeLine{00036\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{int}\ get()\ \{}
\DoxyCodeLine{00037\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ \_filterType-\/>GetNumS();}
\DoxyCodeLine{00038\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00039\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{void}\ set(\textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{int}\ x)\ \{}
\DoxyCodeLine{00040\ \ \ \ \ \ \ \ \ \ \ \ \ \_filterType-\/>SetNumS(x);}
\DoxyCodeLine{00041\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00042\ \ \ \ \ \}}
\DoxyCodeLine{00043\ }
\DoxyCodeLine{00044\ \ \ \ \ \textcolor{keyword}{property}\ FilterMode\ FilterTypeValue\ \{}
\DoxyCodeLine{00045\ \ \ \ \ \ \ \ \ FilterMode\ get()\ \{}
\DoxyCodeLine{00046\ \ \ \ \ \ \ \ \ \ \ \ \ FILTER\_MODE\ t\ =\ \_filterType-\/>GetFilterMode();}
\DoxyCodeLine{00047\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{switch}\ (t)\ \{}
\DoxyCodeLine{00048\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{case}\ MEDIAN\_FILTER:}
\DoxyCodeLine{00049\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ FilterMode::Median;}
\DoxyCodeLine{00050\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{case}\ AVERAGE\_FILTER:}
\DoxyCodeLine{00051\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ FilterMode::Average;}
\DoxyCodeLine{00052\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{case}\ MAX\_FILTER:}
\DoxyCodeLine{00053\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ FilterMode::Max;}
\DoxyCodeLine{00054\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{case}\ COMBO\_FILTER:}
\DoxyCodeLine{00055\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ FilterMode::Combo;}
\DoxyCodeLine{00056\ \ \ \ \ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00057\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00058\ }
\DoxyCodeLine{00059\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{void}\ set(FilterMode\ x)\ \{}
\DoxyCodeLine{00060\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{switch}\ (x)\ \{}
\DoxyCodeLine{00061\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{case}\ FilterMode::Median:}
\DoxyCodeLine{00062\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \_filterType-\/>SetFilterMode(MEDIAN\_FILTER);}
\DoxyCodeLine{00063\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{break};}
\DoxyCodeLine{00064\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{case}\ FilterMode::Average:}
\DoxyCodeLine{00065\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \_filterType-\/>SetFilterMode(AVERAGE\_FILTER);}
\DoxyCodeLine{00066\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{break};}
\DoxyCodeLine{00067\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{case}\ FilterMode::Max:}
\DoxyCodeLine{00068\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \_filterType-\/>SetFilterMode(MAX\_FILTER);}
\DoxyCodeLine{00069\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{break};}
\DoxyCodeLine{00070\ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{case}\ FilterMode::Combo:}
\DoxyCodeLine{00071\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \_filterType-\/>SetFilterMode(COMBO\_FILTER);}
\DoxyCodeLine{00072\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{break};}
\DoxyCodeLine{00073\ \ \ \ \ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00074\ \ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{00075\ \ \ \ \ \}}
\DoxyCodeLine{00076\ \textcolor{keyword}{private}:}
\DoxyCodeLine{00077\ \ \ \ \ \mbox{\hyperlink{a00756}{FilterType}}*\ \_filterType;}
\DoxyCodeLine{00078\ \};}
\DoxyCodeLine{00079\ }

\end{DoxyCode}
