\hypertarget{a11824}{}\section{Poly\+Line\+CollectionT$<$ T $>$ Class Template Reference}
\label{a11824}\index{Poly\+Line\+Collection\+T$<$ T $>$@{Poly\+Line\+Collection\+T$<$ T $>$}}
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{a11832}{index\+\_\+iterator}
\item 
struct \hyperlink{a11828}{iterator}
\end{DoxyCompactItemize}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a11824_ae85587b8162a3082907b0e92b3fcca72}\label{a11824_ae85587b8162a3082907b0e92b3fcca72}} 
typedef \hyperlink{a11808}{A\+C\+G\+::\+Poly\+LineT}$<$ T $>$ {\bfseries Poly\+Line}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual \hyperlink{a11824_adc63eaac4178a88637665c9ccfd9e801}{$\sim$\+Poly\+Line\+CollectionT} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
size\+\_\+t \hyperlink{a11824_afe8a40ab5ecae5c8c76e6693f716f7e1}{add\+\_\+poly\+\_\+line} (\hyperlink{a11808}{Poly\+Line} $\ast$\+\_\+poly\+\_\+line)
\item 
int \hyperlink{a11824_af71af50a2ecfe4168bf58dedc52635cc}{new\+\_\+poly\+\_\+line} ()
\begin{DoxyCompactList}\small\item\em Create empty polyline and return id. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a11824_ab2406360c6f9f384b149650f3b7e43d0}\label{a11824_ab2406360c6f9f384b149650f3b7e43d0}} 
void \hyperlink{a11824_ab2406360c6f9f384b149650f3b7e43d0}{reserve} (size\+\_\+t \+\_\+count)
\begin{DoxyCompactList}\small\item\em Reserve space for additional \+\_\+count polylines. \end{DoxyCompactList}\item 
void \hyperlink{a11824_a25c880396e95804a38ebce8990c2071d}{set\+\_\+visible\+\_\+all} ()
\begin{DoxyCompactList}\small\item\em Set all polylines to visible. \end{DoxyCompactList}\item 
void \hyperlink{a11824_a3eef6bc47782d278582f8649a66d8704}{set\+\_\+visible} (const std\+::vector$<$ size\+\_\+t $>$ \&\+\_\+visible)
\begin{DoxyCompactList}\small\item\em Set given polylines to visible. \end{DoxyCompactList}\item 
void \hyperlink{a11824_a7895d0cf7ee18a02398d462c4cefc31f}{set\+\_\+selected} (const std\+::vector$<$ size\+\_\+t $>$ \&\+\_\+selected)
\begin{DoxyCompactList}\small\item\em Set given polylines to selected. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a11824_acb8d444026a59f90d2a59a02c4e63a48}\label{a11824_acb8d444026a59f90d2a59a02c4e63a48}} 
void \hyperlink{a11824_acb8d444026a59f90d2a59a02c4e63a48}{clear\+\_\+selection} ()
\begin{DoxyCompactList}\small\item\em unselect all polylines in collection \end{DoxyCompactList}\item 
void \hyperlink{a11824_a593c1b63b20e1944f61fe609b486d7c0}{clear} ()
\begin{DoxyCompactList}\small\item\em Clear Collection. \end{DoxyCompactList}\item 
void \hyperlink{a11824_a56c37bb1e55c12e98de80f94d0cbf296}{remove\+\_\+polyline} (int \+\_\+id)
\begin{DoxyCompactList}\small\item\em Remove one polyline from the collection. \end{DoxyCompactList}\end{DoxyCompactItemize}
\begin{Indent}\textbf{ Access functions}\par
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a11824_a03f2b7cb22868f05cb98cb5e6bdcb902}\label{a11824_a03f2b7cb22868f05cb98cb5e6bdcb902}} 
size\+\_\+t {\bfseries n\+\_\+polylines} ()
\item 
\mbox{\Hypertarget{a11824_aa5c04a49dd38c0f392e5aa43cb5f0a44}\label{a11824_aa5c04a49dd38c0f392e5aa43cb5f0a44}} 
\hyperlink{a11808}{Poly\+Line} $\ast$ {\bfseries polyline} (size\+\_\+t \+\_\+i)
\item 
\mbox{\Hypertarget{a11824_a5b82220b592ebd5c34d228518eac01ac}\label{a11824_a5b82220b592ebd5c34d228518eac01ac}} 
size\+\_\+t {\bfseries n\+\_\+visible\+\_\+polylines} ()
\item 
\mbox{\Hypertarget{a11824_ae4cf64f29e9830ac349bc4ba7fc629b4}\label{a11824_ae4cf64f29e9830ac349bc4ba7fc629b4}} 
\hyperlink{a11808}{Poly\+Line} $\ast$ {\bfseries visible\+\_\+polyline} (size\+\_\+t \+\_\+i)
\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}\textbf{ Iterators}\par
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a11824_a5fbf693d9e7593641cebb05493315bff}\label{a11824_a5fbf693d9e7593641cebb05493315bff}} 
\hyperlink{a11828}{iterator} {\bfseries iter} ()
\item 
\mbox{\Hypertarget{a11824_a0e2560402750ee6808a531997486184a}\label{a11824_a0e2560402750ee6808a531997486184a}} 
\hyperlink{a11832}{index\+\_\+iterator} {\bfseries visible\+\_\+iter} ()
\item 
\mbox{\Hypertarget{a11824_a24615a701f683e4cbce3eab23ca9b476}\label{a11824_a24615a701f683e4cbce3eab23ca9b476}} 
\hyperlink{a11832}{index\+\_\+iterator} {\bfseries selected\+\_\+iter} ()
\end{DoxyCompactItemize}
\end{Indent}
\begin{Indent}\textbf{ Coloring}\par
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a11824_af002fefc33c2a49924aaab40fc8413d8}\label{a11824_af002fefc33c2a49924aaab40fc8413d8}} 
void {\bfseries set\+\_\+color} (size\+\_\+t \+\_\+edge\+\_\+scalar, const \hyperlink{a06176_adb89a8d57b6d179ad535c0880a8b616e}{A\+C\+G\+::\+Vec4uc} \&\+\_\+color)
\item 
\mbox{\Hypertarget{a11824_ad4b58965a643b4b3ad3339422ac2c370}\label{a11824_ad4b58965a643b4b3ad3339422ac2c370}} 
\hyperlink{a06176_adb89a8d57b6d179ad535c0880a8b616e}{A\+C\+G\+::\+Vec4uc} {\bfseries color} (size\+\_\+t \+\_\+edge\+\_\+scalar)
\end{DoxyCompactItemize}
\end{Indent}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a11824_add10453e0e18398ce15c9d97435f97b2}\label{a11824_add10453e0e18398ce15c9d97435f97b2}} 
std\+::vector$<$ \hyperlink{a11808}{Poly\+Line} $\ast$ $>$ {\bfseries poly\+\_\+lines\+\_\+}
\item 
\mbox{\Hypertarget{a11824_aeb232c14686e31811c801ba9c3343801}\label{a11824_aeb232c14686e31811c801ba9c3343801}} 
std\+::vector$<$ size\+\_\+t $>$ {\bfseries visible\+\_\+}
\item 
\mbox{\Hypertarget{a11824_a456d0fc1f4e708a74d77b4264283e6b5}\label{a11824_a456d0fc1f4e708a74d77b4264283e6b5}} 
std\+::vector$<$ size\+\_\+t $>$ {\bfseries selected\+\_\+}
\item 
\mbox{\Hypertarget{a11824_a2133913681480c78cb7f0a072e9a37c3}\label{a11824_a2133913681480c78cb7f0a072e9a37c3}} 
std\+::queue$<$ size\+\_\+t $>$ {\bfseries empty\+\_\+slots\+\_\+}
\item 
\mbox{\Hypertarget{a11824_a5d967335e6695277d1ccc5186018606c}\label{a11824_a5d967335e6695277d1ccc5186018606c}} 
std\+::map$<$ size\+\_\+t, \hyperlink{a06176_adb89a8d57b6d179ad535c0880a8b616e}{A\+C\+G\+::\+Vec4uc} $>$ {\bfseries color\+\_\+map\+\_\+}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename T$>$\newline
class Poly\+Line\+Collection\+T$<$ T $>$}



Definition at line 49 of file Poly\+Line\+Collection\+T.\+hh.



\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{a11824_adc63eaac4178a88637665c9ccfd9e801}\label{a11824_adc63eaac4178a88637665c9ccfd9e801}} 
\index{Poly\+Line\+CollectionT@{Poly\+Line\+CollectionT}!````~Poly\+Line\+CollectionT@{$\sim$\+Poly\+Line\+CollectionT}}
\index{````~Poly\+Line\+CollectionT@{$\sim$\+Poly\+Line\+CollectionT}!Poly\+Line\+CollectionT@{Poly\+Line\+CollectionT}}
\subsubsection{\texorpdfstring{$\sim$\+Poly\+Line\+Collection\+T()}{~PolyLineCollectionT()}}
{\footnotesize\ttfamily template$<$typename T $>$ \\
virtual \hyperlink{a11824}{Poly\+Line\+CollectionT}$<$ T $>$\+::$\sim$\hyperlink{a11824}{Poly\+Line\+CollectionT} (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Destructor. 

The destructor will call delete on all Poly\+Lines in the Poly\+Line Collection! 

Definition at line 125 of file Poly\+Line\+Collection\+T.\+hh.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a11824_afe8a40ab5ecae5c8c76e6693f716f7e1}\label{a11824_afe8a40ab5ecae5c8c76e6693f716f7e1}} 
\index{Poly\+Line\+CollectionT@{Poly\+Line\+CollectionT}!add\+\_\+poly\+\_\+line@{add\+\_\+poly\+\_\+line}}
\index{add\+\_\+poly\+\_\+line@{add\+\_\+poly\+\_\+line}!Poly\+Line\+CollectionT@{Poly\+Line\+CollectionT}}
\subsubsection{\texorpdfstring{add\+\_\+poly\+\_\+line()}{add\_poly\_line()}}
{\footnotesize\ttfamily template$<$typename T $>$ \\
size\+\_\+t \hyperlink{a11824}{Poly\+Line\+CollectionT}$<$ T $>$\+::add\+\_\+poly\+\_\+line (\begin{DoxyParamCaption}\item[{\hyperlink{a11808}{Poly\+Line} $\ast$}]{\+\_\+poly\+\_\+line }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

Create a new polyline in the collection


\begin{DoxyParams}{Parameters}
{\em \+\_\+poly\+\_\+line} & The new polyline to be added to the collection \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Index of the new polyline in the collection 
\end{DoxyReturn}


Definition at line 137 of file Poly\+Line\+Collection\+T.\+hh.

\mbox{\Hypertarget{a11824_a593c1b63b20e1944f61fe609b486d7c0}\label{a11824_a593c1b63b20e1944f61fe609b486d7c0}} 
\index{Poly\+Line\+CollectionT@{Poly\+Line\+CollectionT}!clear@{clear}}
\index{clear@{clear}!Poly\+Line\+CollectionT@{Poly\+Line\+CollectionT}}
\subsubsection{\texorpdfstring{clear()}{clear()}}
{\footnotesize\ttfamily template$<$typename T $>$ \\
void \hyperlink{a11824}{Poly\+Line\+CollectionT}$<$ T $>$\+::clear (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Clear Collection. 

This will call delete on all polylines in the collection! 

Definition at line 242 of file Poly\+Line\+Collection\+T.\+hh.

\mbox{\Hypertarget{a11824_af71af50a2ecfe4168bf58dedc52635cc}\label{a11824_af71af50a2ecfe4168bf58dedc52635cc}} 
\index{Poly\+Line\+CollectionT@{Poly\+Line\+CollectionT}!new\+\_\+poly\+\_\+line@{new\+\_\+poly\+\_\+line}}
\index{new\+\_\+poly\+\_\+line@{new\+\_\+poly\+\_\+line}!Poly\+Line\+CollectionT@{Poly\+Line\+CollectionT}}
\subsubsection{\texorpdfstring{new\+\_\+poly\+\_\+line()}{new\_poly\_line()}}
{\footnotesize\ttfamily template$<$typename T $>$ \\
int \hyperlink{a11824}{Poly\+Line\+CollectionT}$<$ T $>$\+::new\+\_\+poly\+\_\+line (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Create empty polyline and return id. 

\begin{DoxyReturn}{Returns}
Index of new polyline in collection 
\end{DoxyReturn}


Definition at line 163 of file Poly\+Line\+Collection\+T.\+hh.

\mbox{\Hypertarget{a11824_a56c37bb1e55c12e98de80f94d0cbf296}\label{a11824_a56c37bb1e55c12e98de80f94d0cbf296}} 
\index{Poly\+Line\+CollectionT@{Poly\+Line\+CollectionT}!remove\+\_\+polyline@{remove\+\_\+polyline}}
\index{remove\+\_\+polyline@{remove\+\_\+polyline}!Poly\+Line\+CollectionT@{Poly\+Line\+CollectionT}}
\subsubsection{\texorpdfstring{remove\+\_\+polyline()}{remove\_polyline()}}
{\footnotesize\ttfamily template$<$typename T $>$ \\
void \hyperlink{a11824}{Poly\+Line\+CollectionT}$<$ T $>$\+::remove\+\_\+polyline (\begin{DoxyParamCaption}\item[{int}]{\+\_\+id }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Remove one polyline from the collection. 

This will also call delete on the given polyline!


\begin{DoxyParams}{Parameters}
{\em \+\_\+id} & Id of the polyline to be removed \\
\hline
\end{DoxyParams}


Definition at line 259 of file Poly\+Line\+Collection\+T.\+hh.

\mbox{\Hypertarget{a11824_a7895d0cf7ee18a02398d462c4cefc31f}\label{a11824_a7895d0cf7ee18a02398d462c4cefc31f}} 
\index{Poly\+Line\+CollectionT@{Poly\+Line\+CollectionT}!set\+\_\+selected@{set\+\_\+selected}}
\index{set\+\_\+selected@{set\+\_\+selected}!Poly\+Line\+CollectionT@{Poly\+Line\+CollectionT}}
\subsubsection{\texorpdfstring{set\+\_\+selected()}{set\_selected()}}
{\footnotesize\ttfamily template$<$typename T $>$ \\
void \hyperlink{a11824}{Poly\+Line\+CollectionT}$<$ T $>$\+::set\+\_\+selected (\begin{DoxyParamCaption}\item[{const std\+::vector$<$ size\+\_\+t $>$ \&}]{\+\_\+selected }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Set given polylines to selected. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+selected} & Poly\+Line indices to set selected \\
\hline
\end{DoxyParams}


Definition at line 228 of file Poly\+Line\+Collection\+T.\+hh.

\mbox{\Hypertarget{a11824_a3eef6bc47782d278582f8649a66d8704}\label{a11824_a3eef6bc47782d278582f8649a66d8704}} 
\index{Poly\+Line\+CollectionT@{Poly\+Line\+CollectionT}!set\+\_\+visible@{set\+\_\+visible}}
\index{set\+\_\+visible@{set\+\_\+visible}!Poly\+Line\+CollectionT@{Poly\+Line\+CollectionT}}
\subsubsection{\texorpdfstring{set\+\_\+visible()}{set\_visible()}}
{\footnotesize\ttfamily template$<$typename T $>$ \\
void \hyperlink{a11824}{Poly\+Line\+CollectionT}$<$ T $>$\+::set\+\_\+visible (\begin{DoxyParamCaption}\item[{const std\+::vector$<$ size\+\_\+t $>$ \&}]{\+\_\+visible }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Set given polylines to visible. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+visible} & Poly\+Line indices to set visible \\
\hline
\end{DoxyParams}


Definition at line 219 of file Poly\+Line\+Collection\+T.\+hh.

\mbox{\Hypertarget{a11824_a25c880396e95804a38ebce8990c2071d}\label{a11824_a25c880396e95804a38ebce8990c2071d}} 
\index{Poly\+Line\+CollectionT@{Poly\+Line\+CollectionT}!set\+\_\+visible\+\_\+all@{set\+\_\+visible\+\_\+all}}
\index{set\+\_\+visible\+\_\+all@{set\+\_\+visible\+\_\+all}!Poly\+Line\+CollectionT@{Poly\+Line\+CollectionT}}
\subsubsection{\texorpdfstring{set\+\_\+visible\+\_\+all()}{set\_visible\_all()}}
{\footnotesize\ttfamily template$<$typename T $>$ \\
void \hyperlink{a11824}{Poly\+Line\+CollectionT}$<$ T $>$\+::set\+\_\+visible\+\_\+all (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Set all polylines to visible. 



Definition at line 206 of file Poly\+Line\+Collection\+T.\+hh.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
Type-\/\+Poly\+Line/\+Object\+Types/\+Poly\+Line\+Collection/Poly\+Line\+Collection\+T.\+hh\end{DoxyCompactItemize}
