\hypertarget{a00426}{\section{A\+C\+G\+:\+:Color\+Generator Class Reference}
\label{a00426}\index{A\+C\+G\+::\+Color\+Generator@{A\+C\+G\+::\+Color\+Generator}}
}


{\ttfamily \#include $<$A\+C\+G/\+Utils/\+Color\+Generator.\+hh$>$}

Inheritance diagram for A\+C\+G\+:\+:Color\+Generator\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a00426}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual \hyperlink{a03336_a4850d8bd22bf3ccf7088b80adc17c989}{Vec4f} \hyperlink{a00426_ac2cc72983068bd86ddc07930d6e19a4c}{generate\+Next\+Color} ()=0
\item 
{\footnotesize template$<$class O\+U\+T\+P\+U\+T\+\_\+\+I\+T\+E\+R\+A\+T\+O\+R $>$ }\\void \hyperlink{a00426_a5050869eb7e806c740b90600e04b051c}{generate\+Next\+N\+Colors} (int n, O\+U\+T\+P\+U\+T\+\_\+\+I\+T\+E\+R\+A\+T\+O\+R oit)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
The \hyperlink{a00426}{Color\+Generator} interface provides a generic interface for color generators with different strategies. 

Definition at line 62 of file Color\+Generator.\+hh.



\subsection{Member Function Documentation}
\hypertarget{a00426_ac2cc72983068bd86ddc07930d6e19a4c}{\index{A\+C\+G\+::\+Color\+Generator@{A\+C\+G\+::\+Color\+Generator}!generate\+Next\+Color@{generate\+Next\+Color}}
\index{generate\+Next\+Color@{generate\+Next\+Color}!A\+C\+G\+::\+Color\+Generator@{A\+C\+G\+::\+Color\+Generator}}
\subsubsection[{generate\+Next\+Color}]{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf Vec4f} A\+C\+G\+::\+Color\+Generator\+::generate\+Next\+Color (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [pure virtual]}}}\label{a00426_ac2cc72983068bd86ddc07930d6e19a4c}
\begin{DoxyReturn}{Returns}
A new color. 
\end{DoxyReturn}


Implemented in \hyperlink{a00681_a9c86ae5444431b9cdb7eca842bedd283}{A\+C\+G\+::\+Halton\+Colors}, and \hyperlink{a00712_a4cb431a5669aeebe446a785b9d3d0bb5}{A\+C\+G\+::\+Hue\+Partitioning\+Colors}.

\hypertarget{a00426_a5050869eb7e806c740b90600e04b051c}{\index{A\+C\+G\+::\+Color\+Generator@{A\+C\+G\+::\+Color\+Generator}!generate\+Next\+N\+Colors@{generate\+Next\+N\+Colors}}
\index{generate\+Next\+N\+Colors@{generate\+Next\+N\+Colors}!A\+C\+G\+::\+Color\+Generator@{A\+C\+G\+::\+Color\+Generator}}
\subsubsection[{generate\+Next\+N\+Colors}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class O\+U\+T\+P\+U\+T\+\_\+\+I\+T\+E\+R\+A\+T\+O\+R $>$ void A\+C\+G\+::\+Color\+Generator\+::generate\+Next\+N\+Colors (
\begin{DoxyParamCaption}
\item[{int}]{n, }
\item[{O\+U\+T\+P\+U\+T\+\_\+\+I\+T\+E\+R\+A\+T\+O\+R}]{oit}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{a00426_a5050869eb7e806c740b90600e04b051c}
Put a bunch of colors into the output iterator.

Generates the same colors as if calling \hyperlink{a00426_ac2cc72983068bd86ddc07930d6e19a4c}{generate\+Next\+Color()} n times.

Typically, you would use std\+::back\+\_\+inserter(container) as the argument for oit.


\begin{DoxyParams}{Parameters}
{\em n} & How many colors to generate. \\
\hline
{\em oit} & An output iterator. Should support \char`\"{}$\ast$oit++ = $<$\+Vec4f$>$;\char`\"{}. \\
\hline
\end{DoxyParams}


Definition at line 85 of file Color\+Generator.\+hh.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
A\+C\+G/\+Utils/Color\+Generator.\+hh\end{DoxyCompactItemize}
