\hypertarget{class_delaunay_test_1_1_delaunay_test_logic}{
\section{DelaunayTest::DelaunayTestLogic Class Reference}
\label{class_delaunay_test_1_1_delaunay_test_logic}\index{DelaunayTest::DelaunayTestLogic@{DelaunayTest::DelaunayTestLogic}}
}
It handles all the logic of the test. It has the sites and the triangulation. Its called by Runner, which act as a controller between Logic and Render.  


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

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

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

\begin{CompactList}\small\item\em Destructor. \item\end{CompactList}\item 
\hypertarget{class_delaunay_test_1_1_delaunay_test_logic_49fcdda4b7d04f00d427f73c9123199e}{
void \hyperlink{class_delaunay_test_1_1_delaunay_test_logic_49fcdda4b7d04f00d427f73c9123199e}{Triangulate} (void)}
\label{class_delaunay_test_1_1_delaunay_test_logic_49fcdda4b7d04f00d427f73c9123199e}

\begin{CompactList}\small\item\em Triangulates the sites. \item\end{CompactList}\item 
void \hyperlink{class_delaunay_test_1_1_delaunay_test_logic_a82742344e7a085b0199c87d0b5f37a7}{Reset} (void)
\begin{CompactList}\small\item\em Resets both sites and triangulation. \item\end{CompactList}\item 
\hypertarget{class_delaunay_test_1_1_delaunay_test_logic_85068e86c3dea714a50fefe98a11e744}{
void \hyperlink{class_delaunay_test_1_1_delaunay_test_logic_85068e86c3dea714a50fefe98a11e744}{AddSites} (void)}
\label{class_delaunay_test_1_1_delaunay_test_logic_85068e86c3dea714a50fefe98a11e744}

\begin{CompactList}\small\item\em Adds fixed number of sites if its not yet triangulated. \item\end{CompactList}\item 
\hypertarget{class_delaunay_test_1_1_delaunay_test_logic_7d0884b45306b68d20ae2486c4b85213}{
void \hyperlink{class_delaunay_test_1_1_delaunay_test_logic_7d0884b45306b68d20ae2486c4b85213}{RemoveSites} (void)}
\label{class_delaunay_test_1_1_delaunay_test_logic_7d0884b45306b68d20ae2486c4b85213}

\begin{CompactList}\small\item\em Removes fixed number of sites if its not yet triangulated. \item\end{CompactList}\item 
void \hyperlink{class_delaunay_test_1_1_delaunay_test_logic_466a3d2b08f4f2d7b5d08bfa58006ac9}{EnableCircles} (void)
\begin{CompactList}\small\item\em Enables/disables showing of circles. \item\end{CompactList}\item 
const std::vector$<$ \hyperlink{class_delaunay_test_1_1_point}{Point} $>$ \& \hyperlink{class_delaunay_test_1_1_delaunay_test_logic_578011ca846ce5d5ad576d19f1a61f83}{GetPoints} (void) const 
\begin{CompactList}\small\item\em Gets the sites of the triangulation. \item\end{CompactList}\item 
const std::vector$<$ \hyperlink{class_delaunay_test_1_1_line}{Line} $>$ \& \hyperlink{class_delaunay_test_1_1_delaunay_test_logic_04534c30f4c63ad7848dad077c06e274}{GetLines} (void) const 
\begin{CompactList}\small\item\em Gets the edges of the triangulation. \item\end{CompactList}\item 
\hypertarget{class_delaunay_test_1_1_delaunay_test_logic_a3d285b22054245ea77e3ed4729b70b2}{
const std::vector$<$ \hyperlink{class_delaunay_test_1_1_circle}{Circle} $>$ \& \hyperlink{class_delaunay_test_1_1_delaunay_test_logic_a3d285b22054245ea77e3ed4729b70b2}{GetCircles} (void) const }
\label{class_delaunay_test_1_1_delaunay_test_logic_a3d285b22054245ea77e3ed4729b70b2}

\begin{CompactList}\small\item\em Gets the circles that check correctness of delaunay triangulation. \item\end{CompactList}\item 
bool \hyperlink{class_delaunay_test_1_1_delaunay_test_logic_b80ec89da414c5e9a29833d90de5b43e}{IsCirclesEnabled} (void)
\begin{CompactList}\small\item\em Check if show circles is enabled. \item\end{CompactList}\item 
bool \hyperlink{class_delaunay_test_1_1_delaunay_test_logic_2e5d85155a98096a706b5a70486d7b5b}{IsTriangulated} (void)
\begin{CompactList}\small\item\em Check if it is triangulated. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
It handles all the logic of the test. It has the sites and the triangulation. Its called by Runner, which act as a controller between Logic and Render. 

\subsection{Member Function Documentation}
\hypertarget{class_delaunay_test_1_1_delaunay_test_logic_466a3d2b08f4f2d7b5d08bfa58006ac9}{
\index{DelaunayTest::DelaunayTestLogic@{DelaunayTest::DelaunayTestLogic}!EnableCircles@{EnableCircles}}
\index{EnableCircles@{EnableCircles}!DelaunayTest::DelaunayTestLogic@{DelaunayTest::DelaunayTestLogic}}
\subsubsection[{EnableCircles}]{\setlength{\rightskip}{0pt plus 5cm}void DelaunayTestLogic::EnableCircles (void)}}
\label{class_delaunay_test_1_1_delaunay_test_logic_466a3d2b08f4f2d7b5d08bfa58006ac9}


Enables/disables showing of circles. 

\begin{Desc}
\item[Note:]Probably this needs to be on gui side \end{Desc}
\hypertarget{class_delaunay_test_1_1_delaunay_test_logic_04534c30f4c63ad7848dad077c06e274}{
\index{DelaunayTest::DelaunayTestLogic@{DelaunayTest::DelaunayTestLogic}!GetLines@{GetLines}}
\index{GetLines@{GetLines}!DelaunayTest::DelaunayTestLogic@{DelaunayTest::DelaunayTestLogic}}
\subsubsection[{GetLines}]{\setlength{\rightskip}{0pt plus 5cm}const std::vector$<$ {\bf Line} $>$ \& DelaunayTestLogic::GetLines (void) const}}
\label{class_delaunay_test_1_1_delaunay_test_logic_04534c30f4c63ad7848dad077c06e274}


Gets the edges of the triangulation. 

\begin{Desc}
\item[Returns:]array of edges \end{Desc}
\hypertarget{class_delaunay_test_1_1_delaunay_test_logic_578011ca846ce5d5ad576d19f1a61f83}{
\index{DelaunayTest::DelaunayTestLogic@{DelaunayTest::DelaunayTestLogic}!GetPoints@{GetPoints}}
\index{GetPoints@{GetPoints}!DelaunayTest::DelaunayTestLogic@{DelaunayTest::DelaunayTestLogic}}
\subsubsection[{GetPoints}]{\setlength{\rightskip}{0pt plus 5cm}const std::vector$<$ {\bf Point} $>$ \& DelaunayTestLogic::GetPoints (void) const}}
\label{class_delaunay_test_1_1_delaunay_test_logic_578011ca846ce5d5ad576d19f1a61f83}


Gets the sites of the triangulation. 

\begin{Desc}
\item[Returns:]array of sites \end{Desc}
\hypertarget{class_delaunay_test_1_1_delaunay_test_logic_b80ec89da414c5e9a29833d90de5b43e}{
\index{DelaunayTest::DelaunayTestLogic@{DelaunayTest::DelaunayTestLogic}!IsCirclesEnabled@{IsCirclesEnabled}}
\index{IsCirclesEnabled@{IsCirclesEnabled}!DelaunayTest::DelaunayTestLogic@{DelaunayTest::DelaunayTestLogic}}
\subsubsection[{IsCirclesEnabled}]{\setlength{\rightskip}{0pt plus 5cm}bool DelaunayTestLogic::IsCirclesEnabled (void)}}
\label{class_delaunay_test_1_1_delaunay_test_logic_b80ec89da414c5e9a29833d90de5b43e}


Check if show circles is enabled. 

\begin{Desc}
\item[Returns:]true if enabled, false otherwise \end{Desc}
\hypertarget{class_delaunay_test_1_1_delaunay_test_logic_2e5d85155a98096a706b5a70486d7b5b}{
\index{DelaunayTest::DelaunayTestLogic@{DelaunayTest::DelaunayTestLogic}!IsTriangulated@{IsTriangulated}}
\index{IsTriangulated@{IsTriangulated}!DelaunayTest::DelaunayTestLogic@{DelaunayTest::DelaunayTestLogic}}
\subsubsection[{IsTriangulated}]{\setlength{\rightskip}{0pt plus 5cm}bool DelaunayTestLogic::IsTriangulated (void)}}
\label{class_delaunay_test_1_1_delaunay_test_logic_2e5d85155a98096a706b5a70486d7b5b}


Check if it is triangulated. 

\begin{Desc}
\item[Returns:]true if its triangulated, false otherwise \end{Desc}
\hypertarget{class_delaunay_test_1_1_delaunay_test_logic_a82742344e7a085b0199c87d0b5f37a7}{
\index{DelaunayTest::DelaunayTestLogic@{DelaunayTest::DelaunayTestLogic}!Reset@{Reset}}
\index{Reset@{Reset}!DelaunayTest::DelaunayTestLogic@{DelaunayTest::DelaunayTestLogic}}
\subsubsection[{Reset}]{\setlength{\rightskip}{0pt plus 5cm}void DelaunayTestLogic::Reset (void)}}
\label{class_delaunay_test_1_1_delaunay_test_logic_a82742344e7a085b0199c87d0b5f37a7}


Resets both sites and triangulation. 



Clear all the geometry

Randomize the points 

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
src/tests/2dRender/\hyperlink{_delaunay_test_logic_8h}{DelaunayTestLogic.h}\item 
src/tests/2dRender/DelaunayTestLogic.cpp\end{CompactItemize}
