\hypertarget{a00707_source}{}\doxysection{AAX\+\_\+\+CBinary\+Taper\+Delegate.\+h}
\label{a00707_source}\index{AAX\_CBinaryTaperDelegate.h@{AAX\_CBinaryTaperDelegate.h}}
\mbox{\hyperlink{a00707}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{/*================================================================================================*/}}
\DoxyCodeLine{00002\ \textcolor{comment}{/*}}
\DoxyCodeLine{00003\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00004\ \textcolor{comment}{\ *\ \ Copyright\ 2014-\/2017,\ 2019,\ 2023\ Avid\ Technology,\ Inc.}}
\DoxyCodeLine{00005\ \textcolor{comment}{\ *\ \ All\ rights\ reserved.}}
\DoxyCodeLine{00006\ \textcolor{comment}{\ *\ \ }}
\DoxyCodeLine{00007\ \textcolor{comment}{\ *\ \ CONFIDENTIAL:\ this\ document\ contains\ confidential\ information\ of\ Avid.\ Do}}
\DoxyCodeLine{00008\ \textcolor{comment}{\ *\ \ not\ disclose\ to\ any\ third\ party.\ Use\ of\ the\ information\ contained\ in\ this}}
\DoxyCodeLine{00009\ \textcolor{comment}{\ *\ \ document\ is\ subject\ to\ an\ Avid\ SDK\ license.}}
\DoxyCodeLine{00010\ \textcolor{comment}{\ *}}
\DoxyCodeLine{00011\ \textcolor{comment}{\ */}}
\DoxyCodeLine{00012\ }
\DoxyCodeLine{00019\ \textcolor{comment}{/*================================================================================================*/}}
\DoxyCodeLine{00020\ }
\DoxyCodeLine{00021\ }
\DoxyCodeLine{00022\ \textcolor{preprocessor}{\#ifndef\ AAX\_CBINARYTAPERDELEGATE\_H}}
\DoxyCodeLine{00023\ \textcolor{preprocessor}{\#define\ AAX\_CBINARYTAPERDELEGATE\_H}}
\DoxyCodeLine{00024\ }
\DoxyCodeLine{00025\ \textcolor{preprocessor}{\#include\ "{}\mbox{\hyperlink{a00500}{AAX\_ITaperDelegate.h}}"{}}}
\DoxyCodeLine{00026\ }
\DoxyCodeLine{00027\ }
\DoxyCodeLine{00040\ \textcolor{keyword}{template}\ <\textcolor{keyword}{typename}\ T>}
\DoxyCodeLine{00041\ \textcolor{keyword}{class\ }\mbox{\hyperlink{a01813}{AAX\_CBinaryTaperDelegate}}\ :\ \textcolor{keyword}{public}\ \mbox{\hyperlink{a02313}{AAX\_ITaperDelegate}}<T>}
\DoxyCodeLine{00042\ \{}
\DoxyCodeLine{00043\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00044\ }
\DoxyCodeLine{00048\ \ \ \ \ \mbox{\hyperlink{a01813_aae24e1f477f843ddb351838931a3e6b5}{AAX\_CBinaryTaperDelegate}}(\ );}
\DoxyCodeLine{00049\ \ \ \ \ }
\DoxyCodeLine{00050\ \ \ \ \ \textcolor{comment}{//Virtual\ Overrides}}
\DoxyCodeLine{00051\ \ \ \ \ \mbox{\hyperlink{a02313}{AAX\_ITaperDelegate<T>}}*\ \mbox{\hyperlink{a01813_a433b33f4b290fe03846b2044014ae994}{Clone}}()\ \textcolor{keyword}{const}\ \mbox{\hyperlink{a00533_ac2f24a5172689ae684344abdcce55463}{AAX\_OVERRIDE}};}
\DoxyCodeLine{00052\ \ \ \ \ T\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a01813_a1abc18860a0c404676c52d8d1d8b7724}{GetMaximumValue}}()\ \textcolor{keyword}{const}\ \mbox{\hyperlink{a00533_ac2f24a5172689ae684344abdcce55463}{AAX\_OVERRIDE}};}
\DoxyCodeLine{00053\ \ \ \ \ T\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a01813_af4c360e6bef8fc945d838715c5f965c7}{GetMinimumValue}}()\ \textcolor{keyword}{const}\ \mbox{\hyperlink{a00533_ac2f24a5172689ae684344abdcce55463}{AAX\_OVERRIDE}};}
\DoxyCodeLine{00054\ \ \ \ \ T\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a01813_a91622c9c4cfaaf3b08e39095a26d182a}{ConstrainRealValue}}(T\ value)\ \ \ \textcolor{keyword}{const}\ \mbox{\hyperlink{a00533_ac2f24a5172689ae684344abdcce55463}{AAX\_OVERRIDE}};}
\DoxyCodeLine{00055\ \ \ \ \ T\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a01813_ac50e2d93aeacf6a0293eb0098c8258ba}{NormalizedToReal}}(\textcolor{keywordtype}{double}\ normalizedValue)\ \textcolor{keyword}{const}\ \mbox{\hyperlink{a00533_ac2f24a5172689ae684344abdcce55463}{AAX\_OVERRIDE}};}
\DoxyCodeLine{00056\ \ \ \ \ \textcolor{keywordtype}{double}\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \mbox{\hyperlink{a01813_aa27dfc33b38aef729c4cd499d90317a1}{RealToNormalized}}(T\ realValue)\ \textcolor{keyword}{const}\ \mbox{\hyperlink{a00533_ac2f24a5172689ae684344abdcce55463}{AAX\_OVERRIDE}};}
\DoxyCodeLine{00057\ \};}
\DoxyCodeLine{00058\ }
\DoxyCodeLine{00059\ }
\DoxyCodeLine{00060\ }
\DoxyCodeLine{00061\ }
\DoxyCodeLine{00062\ }
\DoxyCodeLine{00063\ }
\DoxyCodeLine{00064\ \textcolor{keyword}{template}\ <\textcolor{keyword}{typename}\ T>}
\DoxyCodeLine{00065\ \mbox{\hyperlink{a01813_aae24e1f477f843ddb351838931a3e6b5}{AAX\_CBinaryTaperDelegate<T>::AAX\_CBinaryTaperDelegate}}(\ )\ \ \ :\ \ \ }
\DoxyCodeLine{00066\ \ \ \ \ \mbox{\hyperlink{a02313}{AAX\_ITaperDelegate}}<T>()}
\DoxyCodeLine{00067\ \{}
\DoxyCodeLine{00068\ \}}
\DoxyCodeLine{00069\ }
\DoxyCodeLine{00070\ \textcolor{keyword}{template}\ <\textcolor{keyword}{typename}\ T>}
\DoxyCodeLine{00071\ \mbox{\hyperlink{a02313}{AAX\_ITaperDelegate<T>}}*\ \mbox{\hyperlink{a01813_a433b33f4b290fe03846b2044014ae994}{AAX\_CBinaryTaperDelegate<T>::Clone}}()\textcolor{keyword}{\ const}}
\DoxyCodeLine{00072\ \textcolor{keyword}{}\{}
\DoxyCodeLine{00073\ \ \ \ \ \textcolor{keywordflow}{return}\ \textcolor{keyword}{new}\ \mbox{\hyperlink{a01813}{AAX\_CBinaryTaperDelegate}}(*\textcolor{keyword}{this});}
\DoxyCodeLine{00074\ \}}
\DoxyCodeLine{00075\ }
\DoxyCodeLine{00076\ \textcolor{keyword}{template}\ <\textcolor{keyword}{typename}\ T>}
\DoxyCodeLine{00077\ T\ \ \ \ \ \ \ \mbox{\hyperlink{a01813_af4c360e6bef8fc945d838715c5f965c7}{AAX\_CBinaryTaperDelegate<T>::GetMinimumValue}}()\textcolor{keyword}{\ const}}
\DoxyCodeLine{00078\ \textcolor{keyword}{}\{}
\DoxyCodeLine{00079\ \ \ \ \ \textcolor{keywordflow}{return}\ \textcolor{keyword}{false};}
\DoxyCodeLine{00080\ \}}
\DoxyCodeLine{00081\ }
\DoxyCodeLine{00082\ \textcolor{keyword}{template}\ <\textcolor{keyword}{typename}\ T>}
\DoxyCodeLine{00083\ T\ \ \ \ \ \ \ \mbox{\hyperlink{a01813_a1abc18860a0c404676c52d8d1d8b7724}{AAX\_CBinaryTaperDelegate<T>::GetMaximumValue}}()\textcolor{keyword}{\ const}}
\DoxyCodeLine{00084\ \textcolor{keyword}{}\{}
\DoxyCodeLine{00085\ \ \ \ \ \textcolor{keywordflow}{return}\ \textcolor{keyword}{true};}
\DoxyCodeLine{00086\ \}}
\DoxyCodeLine{00087\ }
\DoxyCodeLine{00088\ \textcolor{keyword}{template}\ <\textcolor{keyword}{typename}\ T>}
\DoxyCodeLine{00089\ T\ \ \ \ \ \ \ \mbox{\hyperlink{a01813_a91622c9c4cfaaf3b08e39095a26d182a}{AAX\_CBinaryTaperDelegate<T>::ConstrainRealValue}}(T\ value)\textcolor{keyword}{\ const}}
\DoxyCodeLine{00090\ \textcolor{keyword}{}\{}
\DoxyCodeLine{00091\ \ \ \ \ \textcolor{keywordflow}{return}\ value;\ \ \ \ \ \ \ }
\DoxyCodeLine{00092\ \}}
\DoxyCodeLine{00093\ }
\DoxyCodeLine{00094\ \textcolor{keyword}{template}\ <\textcolor{keyword}{typename}\ T>}
\DoxyCodeLine{00095\ T\ \ \ \ \ \ \ \mbox{\hyperlink{a01813_ac50e2d93aeacf6a0293eb0098c8258ba}{AAX\_CBinaryTaperDelegate<T>::NormalizedToReal}}(\textcolor{keywordtype}{double}\ normalizedValue)\textcolor{keyword}{\ const}}
\DoxyCodeLine{00096\ \textcolor{keyword}{}\{}
\DoxyCodeLine{00097\ \ \ \ \ \textcolor{keywordflow}{if}\ (normalizedValue\ >\ 0.0f)}
\DoxyCodeLine{00098\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ (T)(1);\ \ \ \ \ \ \textcolor{comment}{//should\ construct\ true\ for\ bool}}
\DoxyCodeLine{00099\ \ \ \ \ \textcolor{keywordflow}{return}\ (T)(0);\ \ \ \ \ \ \ \ \ \ \textcolor{comment}{//should\ construct\ false\ for\ bool}}
\DoxyCodeLine{00100\ \}}
\DoxyCodeLine{00101\ }
\DoxyCodeLine{00102\ \textcolor{keyword}{template}\ <\textcolor{keyword}{typename}\ T>}
\DoxyCodeLine{00103\ \textcolor{keywordtype}{double}\ \ \mbox{\hyperlink{a01813_aa27dfc33b38aef729c4cd499d90317a1}{AAX\_CBinaryTaperDelegate<T>::RealToNormalized}}(T\ realValue)\textcolor{keyword}{\ const}}
\DoxyCodeLine{00104\ \textcolor{keyword}{}\{}
\DoxyCodeLine{00105\ \ \ \ \ \textcolor{keywordflow}{if}\ (realValue\ >\ (T)(0))}
\DoxyCodeLine{00106\ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ 1.0f;}
\DoxyCodeLine{00107\ \ \ \ \ \textcolor{keywordflow}{return}\ 0.0f;}
\DoxyCodeLine{00108\ \}}
\DoxyCodeLine{00109\ }
\DoxyCodeLine{00110\ }
\DoxyCodeLine{00111\ }
\DoxyCodeLine{00112\ }
\DoxyCodeLine{00113\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//AAX\_CBINARYTAPERDELEGATE\_H}}
\DoxyCodeLine{00114\ }
\DoxyCodeLine{00115\ }

\end{DoxyCode}
