\hypertarget{class_letter_c_d_t_1_1_letter_c_d_t_test_runner}{
\section{LetterCDT::LetterCDTTestRunner Class Reference}
\label{class_letter_c_d_t_1_1_letter_c_d_t_test_runner}\index{LetterCDT::LetterCDTTestRunner@{LetterCDT::LetterCDTTestRunner}}
}
It acts as a controller between render, logic and user interaction. It's executed by GlutWrapper::Window through \hyperlink{class_glut_wrapper_1_1_i_runner}{GlutWrapper::IRunner} interface. Also the right mouse menus are defined through \hyperlink{class_glut_wrapper_1_1_i_menu_listener}{GlutWrapper::IMenuListener} (GetMenuEntries method).  


{\tt \#include $<$LetterCDTTestRunner.h$>$}

Inheritance diagram for LetterCDT::LetterCDTTestRunner::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=1.83007cm]{class_letter_c_d_t_1_1_letter_c_d_t_test_runner}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hypertarget{class_letter_c_d_t_1_1_letter_c_d_t_test_runner_be1a4d15f0ee6993797a8b9ad4241d25}{
\hyperlink{class_letter_c_d_t_1_1_letter_c_d_t_test_runner_be1a4d15f0ee6993797a8b9ad4241d25}{LetterCDTTestRunner} (void)}
\label{class_letter_c_d_t_1_1_letter_c_d_t_test_runner_be1a4d15f0ee6993797a8b9ad4241d25}

\begin{CompactList}\small\item\em Constructor. \item\end{CompactList}\item 
\hypertarget{class_letter_c_d_t_1_1_letter_c_d_t_test_runner_df3ec0684d10b5ad41dfc38fd6bc5585}{
\hyperlink{class_letter_c_d_t_1_1_letter_c_d_t_test_runner_df3ec0684d10b5ad41dfc38fd6bc5585}{$\sim$LetterCDTTestRunner} (void)}
\label{class_letter_c_d_t_1_1_letter_c_d_t_test_runner_df3ec0684d10b5ad41dfc38fd6bc5585}

\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item 
void \hyperlink{class_letter_c_d_t_1_1_letter_c_d_t_test_runner_dfaf67f8b7b76f5509198a6eca4c4915}{InitializeOpengl} (int width, int height)
\begin{CompactList}\small\item\em Creates opengl context and initialize some opengl states. \item\end{CompactList}\item 
void \hyperlink{class_letter_c_d_t_1_1_letter_c_d_t_test_runner_aad6a66a1fc57e5d7798a682f5c840a2}{Run} (void)
\begin{CompactList}\small\item\em It runs a step of the test. It renders the string points, segments or triangles (if they are enabled). \item\end{CompactList}\item 
void \hyperlink{class_letter_c_d_t_1_1_letter_c_d_t_test_runner_b00b50ef8b0043e43d7d0949beff87d8}{Reshape} (int width, int height)
\begin{CompactList}\small\item\em It configs opengl with the new render window width and height. \item\end{CompactList}\item 
void \hyperlink{class_letter_c_d_t_1_1_letter_c_d_t_test_runner_adcbccf475b55e47576101f93d57bf5a}{ProcessMenuEvents} (int option)
\begin{CompactList}\small\item\em It process the events sent from right button mouse menu. Depending on the event it calls logic methods. \item\end{CompactList}\item 
const std::vector$<$ \hyperlink{struct_glut_wrapper_1_1_menu_entry}{GlutWrapper::MenuEntry} $>$ \& \hyperlink{class_letter_c_d_t_1_1_letter_c_d_t_test_runner_800543b68d5d4b2b288d567a8ce409f6}{GetMenuEntries} (void) const 
\begin{CompactList}\small\item\em It gets the entries of the right button mouse menu. \item\end{CompactList}\item 
void \hyperlink{class_letter_c_d_t_1_1_letter_c_d_t_test_runner_ad9234f179bbf93762e59a6d36be8f75}{ProcessNormalKeys} (unsigned char key)
\begin{CompactList}\small\item\em It is called when a keyboard event is fired. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
It acts as a controller between render, logic and user interaction. It's executed by GlutWrapper::Window through \hyperlink{class_glut_wrapper_1_1_i_runner}{GlutWrapper::IRunner} interface. Also the right mouse menus are defined through \hyperlink{class_glut_wrapper_1_1_i_menu_listener}{GlutWrapper::IMenuListener} (GetMenuEntries method). 

\subsection{Member Function Documentation}
\hypertarget{class_letter_c_d_t_1_1_letter_c_d_t_test_runner_800543b68d5d4b2b288d567a8ce409f6}{
\index{LetterCDT::LetterCDTTestRunner@{LetterCDT::LetterCDTTestRunner}!GetMenuEntries@{GetMenuEntries}}
\index{GetMenuEntries@{GetMenuEntries}!LetterCDT::LetterCDTTestRunner@{LetterCDT::LetterCDTTestRunner}}
\subsubsection[{GetMenuEntries}]{\setlength{\rightskip}{0pt plus 5cm}const std::vector$<$ {\bf GlutWrapper::MenuEntry} $>$ \& LetterCDTTestRunner::GetMenuEntries (void) const}}
\label{class_letter_c_d_t_1_1_letter_c_d_t_test_runner_800543b68d5d4b2b288d567a8ce409f6}


It gets the entries of the right button mouse menu. 

\begin{Desc}
\item[Returns:]entries of the right button mouse menu. \end{Desc}
\begin{Desc}
\item[See also:]\hyperlink{class_glut_wrapper_1_1_i_menu_listener}{GlutWrapper::IMenuListener} \end{Desc}
\hypertarget{class_letter_c_d_t_1_1_letter_c_d_t_test_runner_dfaf67f8b7b76f5509198a6eca4c4915}{
\index{LetterCDT::LetterCDTTestRunner@{LetterCDT::LetterCDTTestRunner}!InitializeOpengl@{InitializeOpengl}}
\index{InitializeOpengl@{InitializeOpengl}!LetterCDT::LetterCDTTestRunner@{LetterCDT::LetterCDTTestRunner}}
\subsubsection[{InitializeOpengl}]{\setlength{\rightskip}{0pt plus 5cm}void LetterCDTTestRunner::InitializeOpengl (int {\em width}, \/  int {\em height})\hspace{0.3cm}{\tt  \mbox{[}virtual\mbox{]}}}}
\label{class_letter_c_d_t_1_1_letter_c_d_t_test_runner_dfaf67f8b7b76f5509198a6eca4c4915}


Creates opengl context and initialize some opengl states. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em width}]render window width \item[{\em height}]render window height \end{description}
\end{Desc}
\begin{Desc}
\item[See also:]\hyperlink{class_glut_wrapper_1_1_i_runner}{GlutWrapper::IRunner} \end{Desc}


Implements \hyperlink{class_glut_wrapper_1_1_i_runner_c039b0a50e80f0f30e8936366bfac79e}{GlutWrapper::IRunner}.\hypertarget{class_letter_c_d_t_1_1_letter_c_d_t_test_runner_adcbccf475b55e47576101f93d57bf5a}{
\index{LetterCDT::LetterCDTTestRunner@{LetterCDT::LetterCDTTestRunner}!ProcessMenuEvents@{ProcessMenuEvents}}
\index{ProcessMenuEvents@{ProcessMenuEvents}!LetterCDT::LetterCDTTestRunner@{LetterCDT::LetterCDTTestRunner}}
\subsubsection[{ProcessMenuEvents}]{\setlength{\rightskip}{0pt plus 5cm}void LetterCDTTestRunner::ProcessMenuEvents (int {\em option})\hspace{0.3cm}{\tt  \mbox{[}virtual\mbox{]}}}}
\label{class_letter_c_d_t_1_1_letter_c_d_t_test_runner_adcbccf475b55e47576101f93d57bf5a}


It process the events sent from right button mouse menu. Depending on the event it calls logic methods. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em option}]the menu option \end{description}
\end{Desc}
\begin{Desc}
\item[See also:]\hyperlink{class_glut_wrapper_1_1_i_menu_listener}{GlutWrapper::IMenuListener} \end{Desc}


Implements \hyperlink{class_glut_wrapper_1_1_i_menu_listener_c62bad8e0f968c7706f0b862d3ae3f40}{GlutWrapper::IMenuListener}.\hypertarget{class_letter_c_d_t_1_1_letter_c_d_t_test_runner_ad9234f179bbf93762e59a6d36be8f75}{
\index{LetterCDT::LetterCDTTestRunner@{LetterCDT::LetterCDTTestRunner}!ProcessNormalKeys@{ProcessNormalKeys}}
\index{ProcessNormalKeys@{ProcessNormalKeys}!LetterCDT::LetterCDTTestRunner@{LetterCDT::LetterCDTTestRunner}}
\subsubsection[{ProcessNormalKeys}]{\setlength{\rightskip}{0pt plus 5cm}void LetterCDTTestRunner::ProcessNormalKeys (unsigned char {\em key})\hspace{0.3cm}{\tt  \mbox{[}virtual\mbox{]}}}}
\label{class_letter_c_d_t_1_1_letter_c_d_t_test_runner_ad9234f179bbf93762e59a6d36be8f75}


It is called when a keyboard event is fired. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em key}]the key code \end{description}
\end{Desc}


Implements \hyperlink{class_glut_wrapper_1_1_i_keyboard_listener_649fa9ef0fcf933efee59c874bbfe386}{GlutWrapper::IKeyboardListener}.\hypertarget{class_letter_c_d_t_1_1_letter_c_d_t_test_runner_b00b50ef8b0043e43d7d0949beff87d8}{
\index{LetterCDT::LetterCDTTestRunner@{LetterCDT::LetterCDTTestRunner}!Reshape@{Reshape}}
\index{Reshape@{Reshape}!LetterCDT::LetterCDTTestRunner@{LetterCDT::LetterCDTTestRunner}}
\subsubsection[{Reshape}]{\setlength{\rightskip}{0pt plus 5cm}void LetterCDTTestRunner::Reshape (int {\em width}, \/  int {\em height})\hspace{0.3cm}{\tt  \mbox{[}virtual\mbox{]}}}}
\label{class_letter_c_d_t_1_1_letter_c_d_t_test_runner_b00b50ef8b0043e43d7d0949beff87d8}


It configs opengl with the new render window width and height. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em width}]new render window width \item[{\em height}]new render window height \end{description}
\end{Desc}
\begin{Desc}
\item[See also:]\hyperlink{class_glut_wrapper_1_1_i_runner}{GlutWrapper::IRunner} \end{Desc}


Implements \hyperlink{class_glut_wrapper_1_1_i_runner_c7b048663fc8de7f3ddb17ff8d51e437}{GlutWrapper::IRunner}.\hypertarget{class_letter_c_d_t_1_1_letter_c_d_t_test_runner_aad6a66a1fc57e5d7798a682f5c840a2}{
\index{LetterCDT::LetterCDTTestRunner@{LetterCDT::LetterCDTTestRunner}!Run@{Run}}
\index{Run@{Run}!LetterCDT::LetterCDTTestRunner@{LetterCDT::LetterCDTTestRunner}}
\subsubsection[{Run}]{\setlength{\rightskip}{0pt plus 5cm}void LetterCDTTestRunner::Run (void)\hspace{0.3cm}{\tt  \mbox{[}virtual\mbox{]}}}}
\label{class_letter_c_d_t_1_1_letter_c_d_t_test_runner_aad6a66a1fc57e5d7798a682f5c840a2}


It runs a step of the test. It renders the string points, segments or triangles (if they are enabled). 

\begin{Desc}
\item[See also:]\hyperlink{class_glut_wrapper_1_1_i_runner}{GlutWrapper::IRunner} \end{Desc}


Implements \hyperlink{class_glut_wrapper_1_1_i_runner_e929784e463c3d975a9ab6988dd1315f}{GlutWrapper::IRunner}.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
src/letterCdt/\hyperlink{_letter_c_d_t_test_runner_8h}{LetterCDTTestRunner.h}\item 
src/letterCdt/\hyperlink{_letter_c_d_t_test_runner_8cpp}{LetterCDTTestRunner.cpp}\end{CompactItemize}
