\hypertarget{class_letter_c_d_t_1_1_letter_c_d_t_test_logic}{
\section{LetterCDT::LetterCDTTestLogic Class Reference}
\label{class_letter_c_d_t_1_1_letter_c_d_t_test_logic}\index{LetterCDT::LetterCDTTestLogic@{LetterCDT::LetterCDTTestLogic}}
}
It handles all the logic of the test. Its called by Runner, which act as a controller between Logic and Render. It contains the points, segments and lines of the letters queried.  


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

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
\hypertarget{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_f3874b6aaa5cf802c612331b410fe140}{
\hyperlink{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_f3874b6aaa5cf802c612331b410fe140}{LetterCDTTestLogic} (void)}
\label{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_f3874b6aaa5cf802c612331b410fe140}

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

\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item 
void \hyperlink{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_7e8262073cf60b4a49aaf7f18dae6bb5}{PushLetter} (wchar\_\-t charCode)
\begin{CompactList}\small\item\em Inserts a letter in the test string. \item\end{CompactList}\item 
\hypertarget{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_c775de9b0cc9765755387a5d17c4e599}{
void \hyperlink{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_c775de9b0cc9765755387a5d17c4e599}{Reset} (void)}
\label{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_c775de9b0cc9765755387a5d17c4e599}

\begin{CompactList}\small\item\em Clears the test string. \item\end{CompactList}\item 
void \hyperlink{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_00d93ffccff7a9765cc4a41cd5776f90}{EnablePoints} (void)
\begin{CompactList}\small\item\em Enable/Disable points showing. \item\end{CompactList}\item 
void \hyperlink{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_3b6fe06eced36eb457bd9b535091758b}{EnableSegments} (void)
\begin{CompactList}\small\item\em Enable/Disable segments showing. \item\end{CompactList}\item 
void \hyperlink{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_e84f1e8df4a537753930975d893b08ac}{EnableTriangles} (void)
\begin{CompactList}\small\item\em Enable/Disable triangles showing. \item\end{CompactList}\item 
bool \hyperlink{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_090932d9c2d34fecf6a2549b66deaf53}{ArePointsEnabled} (void)
\begin{CompactList}\small\item\em Check if showing points is enable. \item\end{CompactList}\item 
bool \hyperlink{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_90ea604174a047d16945f8abc9e2b52e}{AreSegmentsEnabled} (void)
\begin{CompactList}\small\item\em Check if showing segments is enable. \item\end{CompactList}\item 
bool \hyperlink{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_c98a8c87ed0c7d0e36d78e51d8e0364d}{AreTrianglesEnabled} (void)
\begin{CompactList}\small\item\em Check if showing triangles is enable. \item\end{CompactList}\item 
const std::vector$<$ \hyperlink{class_letter_c_d_t_1_1_point}{Point} $>$ \& \hyperlink{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_42389533428e22df5bf3d2ff850a620f}{GetPoints} (void) const 
\begin{CompactList}\small\item\em Get string points. \item\end{CompactList}\item 
const std::vector$<$ Line $>$ \& \hyperlink{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_65d88f31005658840ebc34bb1f2bfb2c}{GetLines} (void) const 
\begin{CompactList}\small\item\em Get string lines. \item\end{CompactList}\item 
const std::vector$<$ int $>$ \& \hyperlink{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_5415f8e3c8a2ee75fb3c7d5d60fa9a85}{GetTriangles} (void) const 
\begin{CompactList}\small\item\em Get string triangles. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
It handles all the logic of the test. Its called by Runner, which act as a controller between Logic and Render. It contains the points, segments and lines of the letters queried. 

\subsection{Member Function Documentation}
\hypertarget{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_090932d9c2d34fecf6a2549b66deaf53}{
\index{LetterCDT::LetterCDTTestLogic@{LetterCDT::LetterCDTTestLogic}!ArePointsEnabled@{ArePointsEnabled}}
\index{ArePointsEnabled@{ArePointsEnabled}!LetterCDT::LetterCDTTestLogic@{LetterCDT::LetterCDTTestLogic}}
\subsubsection[{ArePointsEnabled}]{\setlength{\rightskip}{0pt plus 5cm}bool LetterCDTTestLogic::ArePointsEnabled (void)}}
\label{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_090932d9c2d34fecf6a2549b66deaf53}


Check if showing points is enable. 

\begin{Desc}
\item[Returns:]true if points are enable, false otherwise \end{Desc}
\hypertarget{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_90ea604174a047d16945f8abc9e2b52e}{
\index{LetterCDT::LetterCDTTestLogic@{LetterCDT::LetterCDTTestLogic}!AreSegmentsEnabled@{AreSegmentsEnabled}}
\index{AreSegmentsEnabled@{AreSegmentsEnabled}!LetterCDT::LetterCDTTestLogic@{LetterCDT::LetterCDTTestLogic}}
\subsubsection[{AreSegmentsEnabled}]{\setlength{\rightskip}{0pt plus 5cm}bool LetterCDTTestLogic::AreSegmentsEnabled (void)}}
\label{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_90ea604174a047d16945f8abc9e2b52e}


Check if showing segments is enable. 

\begin{Desc}
\item[Returns:]true if segments are enable, false otherwise \end{Desc}
\hypertarget{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_c98a8c87ed0c7d0e36d78e51d8e0364d}{
\index{LetterCDT::LetterCDTTestLogic@{LetterCDT::LetterCDTTestLogic}!AreTrianglesEnabled@{AreTrianglesEnabled}}
\index{AreTrianglesEnabled@{AreTrianglesEnabled}!LetterCDT::LetterCDTTestLogic@{LetterCDT::LetterCDTTestLogic}}
\subsubsection[{AreTrianglesEnabled}]{\setlength{\rightskip}{0pt plus 5cm}bool LetterCDTTestLogic::AreTrianglesEnabled (void)}}
\label{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_c98a8c87ed0c7d0e36d78e51d8e0364d}


Check if showing triangles is enable. 

\begin{Desc}
\item[Returns:]true if triangles are enable, false otherwise \end{Desc}
\hypertarget{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_00d93ffccff7a9765cc4a41cd5776f90}{
\index{LetterCDT::LetterCDTTestLogic@{LetterCDT::LetterCDTTestLogic}!EnablePoints@{EnablePoints}}
\index{EnablePoints@{EnablePoints}!LetterCDT::LetterCDTTestLogic@{LetterCDT::LetterCDTTestLogic}}
\subsubsection[{EnablePoints}]{\setlength{\rightskip}{0pt plus 5cm}void LetterCDTTestLogic::EnablePoints (void)}}
\label{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_00d93ffccff7a9765cc4a41cd5776f90}


Enable/Disable points showing. 

\begin{Desc}
\item[Note:]Probably this is not the best site for this method \end{Desc}
\hypertarget{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_3b6fe06eced36eb457bd9b535091758b}{
\index{LetterCDT::LetterCDTTestLogic@{LetterCDT::LetterCDTTestLogic}!EnableSegments@{EnableSegments}}
\index{EnableSegments@{EnableSegments}!LetterCDT::LetterCDTTestLogic@{LetterCDT::LetterCDTTestLogic}}
\subsubsection[{EnableSegments}]{\setlength{\rightskip}{0pt plus 5cm}void LetterCDTTestLogic::EnableSegments (void)}}
\label{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_3b6fe06eced36eb457bd9b535091758b}


Enable/Disable segments showing. 

\begin{Desc}
\item[Note:]Probably this is not the best site for this method \end{Desc}
\hypertarget{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_e84f1e8df4a537753930975d893b08ac}{
\index{LetterCDT::LetterCDTTestLogic@{LetterCDT::LetterCDTTestLogic}!EnableTriangles@{EnableTriangles}}
\index{EnableTriangles@{EnableTriangles}!LetterCDT::LetterCDTTestLogic@{LetterCDT::LetterCDTTestLogic}}
\subsubsection[{EnableTriangles}]{\setlength{\rightskip}{0pt plus 5cm}void LetterCDTTestLogic::EnableTriangles (void)}}
\label{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_e84f1e8df4a537753930975d893b08ac}


Enable/Disable triangles showing. 

\begin{Desc}
\item[Note:]Probably this is not the best site for this method \end{Desc}
\hypertarget{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_65d88f31005658840ebc34bb1f2bfb2c}{
\index{LetterCDT::LetterCDTTestLogic@{LetterCDT::LetterCDTTestLogic}!GetLines@{GetLines}}
\index{GetLines@{GetLines}!LetterCDT::LetterCDTTestLogic@{LetterCDT::LetterCDTTestLogic}}
\subsubsection[{GetLines}]{\setlength{\rightskip}{0pt plus 5cm}const std::vector$<$ Line $>$ \& LetterCDTTestLogic::GetLines (void) const}}
\label{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_65d88f31005658840ebc34bb1f2bfb2c}


Get string lines. 

\begin{Desc}
\item[Returns:]test string lines \end{Desc}
\hypertarget{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_42389533428e22df5bf3d2ff850a620f}{
\index{LetterCDT::LetterCDTTestLogic@{LetterCDT::LetterCDTTestLogic}!GetPoints@{GetPoints}}
\index{GetPoints@{GetPoints}!LetterCDT::LetterCDTTestLogic@{LetterCDT::LetterCDTTestLogic}}
\subsubsection[{GetPoints}]{\setlength{\rightskip}{0pt plus 5cm}const std::vector$<$ {\bf Point} $>$ \& LetterCDTTestLogic::GetPoints (void) const}}
\label{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_42389533428e22df5bf3d2ff850a620f}


Get string points. 

\begin{Desc}
\item[Returns:]test string points \end{Desc}
\hypertarget{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_5415f8e3c8a2ee75fb3c7d5d60fa9a85}{
\index{LetterCDT::LetterCDTTestLogic@{LetterCDT::LetterCDTTestLogic}!GetTriangles@{GetTriangles}}
\index{GetTriangles@{GetTriangles}!LetterCDT::LetterCDTTestLogic@{LetterCDT::LetterCDTTestLogic}}
\subsubsection[{GetTriangles}]{\setlength{\rightskip}{0pt plus 5cm}const std::vector$<$ int $>$ \& LetterCDTTestLogic::GetTriangles (void) const}}
\label{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_5415f8e3c8a2ee75fb3c7d5d60fa9a85}


Get string triangles. 

\begin{Desc}
\item[Returns:]test string triangles \end{Desc}
\hypertarget{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_7e8262073cf60b4a49aaf7f18dae6bb5}{
\index{LetterCDT::LetterCDTTestLogic@{LetterCDT::LetterCDTTestLogic}!PushLetter@{PushLetter}}
\index{PushLetter@{PushLetter}!LetterCDT::LetterCDTTestLogic@{LetterCDT::LetterCDTTestLogic}}
\subsubsection[{PushLetter}]{\setlength{\rightskip}{0pt plus 5cm}void LetterCDTTestLogic::PushLetter (wchar\_\-t {\em charCode})}}
\label{class_letter_c_d_t_1_1_letter_c_d_t_test_logic_7e8262073cf60b4a49aaf7f18dae6bb5}


Inserts a letter in the test string. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em charCode}]code of the character being inserted \end{description}
\end{Desc}


Compute the translation of the next letter

Add new points

Check if theres a space.

Add new segments

Compute holes

Triangulate 

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