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


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

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00433_a27209c01390a19791a2d303462f7f0cf}{\hyperlink{a00433_a27209c01390a19791a2d303462f7f0cf}{Color\+Translator} ()}\label{a00433_a27209c01390a19791a2d303462f7f0cf}

\begin{DoxyCompactList}\small\item\em Default constructor. \end{DoxyCompactList}\item 
\hypertarget{a00433_ae43eba7df1db47dae519199c336cffc1}{\hyperlink{a00433_ae43eba7df1db47dae519199c336cffc1}{$\sim$\+Color\+Translator} ()}\label{a00433_ae43eba7df1db47dae519199c336cffc1}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\hypertarget{a00433_a09d2c4f4085ed86199accd7c0ecdab8c}{void \hyperlink{a00433_a09d2c4f4085ed86199accd7c0ecdab8c}{initialize} ()}\label{a00433_a09d2c4f4085ed86199accd7c0ecdab8c}

\begin{DoxyCompactList}\small\item\em init (takes current G\+L context) \end{DoxyCompactList}\item 
\hypertarget{a00433_a4f4148b3738368c0dde1fa1e8470ae10}{bool \hyperlink{a00433_a4f4148b3738368c0dde1fa1e8470ae10}{initialized} () const }\label{a00433_a4f4148b3738368c0dde1fa1e8470ae10}

\begin{DoxyCompactList}\small\item\em has it been initialized? \end{DoxyCompactList}\item 
\hypertarget{a00433_a57bd568e47a7770c37055227e474d246}{\hyperlink{a03336_adb89a8d57b6d179ad535c0880a8b616e}{Vec4uc} \hyperlink{a00433_a57bd568e47a7770c37055227e474d246}{index2color} (unsigned int \+\_\+idx) const }\label{a00433_a57bd568e47a7770c37055227e474d246}

\begin{DoxyCompactList}\small\item\em index -\/$>$ color (one buffer) \end{DoxyCompactList}\item 
\hypertarget{a00433_a6f3b275621044b20f27b25459bc0534e}{int \hyperlink{a00433_a6f3b275621044b20f27b25459bc0534e}{color2index} (\hyperlink{a03336_adb89a8d57b6d179ad535c0880a8b616e}{Vec4uc} \+\_\+rgba) const }\label{a00433_a6f3b275621044b20f27b25459bc0534e}

\begin{DoxyCompactList}\small\item\em color -\/$>$ index (one buffer) \end{DoxyCompactList}\item 
\hypertarget{a00433_ae393df34180d9b2b840e8f2dc5e03f83}{unsigned int \hyperlink{a00433_ae393df34180d9b2b840e8f2dc5e03f83}{max\+\_\+index} () const }\label{a00433_ae393df34180d9b2b840e8f2dc5e03f83}

\begin{DoxyCompactList}\small\item\em returns maximal convertable index \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00433_afac22523523f11951573c44b65e937fd}{bool {\bfseries initialized\+\_\+}}\label{a00433_afac22523523f11951573c44b65e937fd}

\item 
\hypertarget{a00433_a51144b3b08d73f48e15fa743514367ff}{G\+Lint {\bfseries red\+\_\+bits\+\_\+}}\label{a00433_a51144b3b08d73f48e15fa743514367ff}

\item 
\hypertarget{a00433_af76fdf73c83443ca8f765da018b29453}{G\+Lint {\bfseries green\+\_\+bits\+\_\+}}\label{a00433_af76fdf73c83443ca8f765da018b29453}

\item 
\hypertarget{a00433_a78f54caa54973fe6b6134d3d76f008fd}{G\+Lint {\bfseries blue\+\_\+bits\+\_\+}}\label{a00433_a78f54caa54973fe6b6134d3d76f008fd}

\item 
\hypertarget{a00433_a48385bf5c8e1fe1b2c05519f3166d461}{G\+Lint {\bfseries alpha\+\_\+bits\+\_\+}}\label{a00433_a48385bf5c8e1fe1b2c05519f3166d461}

\item 
\hypertarget{a00433_ad28cedb113ca5fc838e4222fb39b586b}{G\+Luint {\bfseries red\+\_\+mask\+\_\+}}\label{a00433_ad28cedb113ca5fc838e4222fb39b586b}

\item 
\hypertarget{a00433_a7dbd8216858a576c493cdc9e04e080d2}{G\+Luint {\bfseries green\+\_\+mask\+\_\+}}\label{a00433_a7dbd8216858a576c493cdc9e04e080d2}

\item 
\hypertarget{a00433_a512c75e76b86569404e1fa79f8b2211c}{G\+Luint {\bfseries blue\+\_\+mask\+\_\+}}\label{a00433_a512c75e76b86569404e1fa79f8b2211c}

\item 
\hypertarget{a00433_a2fa52e0032e90d6b7a8541c8d5779512}{G\+Luint {\bfseries alpha\+\_\+mask\+\_\+}}\label{a00433_a2fa52e0032e90d6b7a8541c8d5779512}

\item 
\hypertarget{a00433_ade044c809c0d65aba231a98c928776ea}{G\+Luint {\bfseries red\+\_\+shift\+\_\+}}\label{a00433_ade044c809c0d65aba231a98c928776ea}

\item 
\hypertarget{a00433_afcaa729500fc3385eee420f140b075db}{G\+Luint {\bfseries green\+\_\+shift\+\_\+}}\label{a00433_afcaa729500fc3385eee420f140b075db}

\item 
\hypertarget{a00433_a0ee73b462b24feb5f06de96f40383b7d}{G\+Luint {\bfseries blue\+\_\+shift\+\_\+}}\label{a00433_a0ee73b462b24feb5f06de96f40383b7d}

\item 
\hypertarget{a00433_a786c8ca5d12c483eec3a1e7ad45c7ceb}{G\+Luint {\bfseries alpha\+\_\+shift\+\_\+}}\label{a00433_a786c8ca5d12c483eec3a1e7ad45c7ceb}

\item 
\hypertarget{a00433_a5eea67d49a85ef1fce8abe4522909074}{G\+Luint {\bfseries red\+\_\+round\+\_\+}}\label{a00433_a5eea67d49a85ef1fce8abe4522909074}

\item 
\hypertarget{a00433_a9b7a182d54ba280bf1285751cbac8099}{G\+Luint {\bfseries green\+\_\+round\+\_\+}}\label{a00433_a9b7a182d54ba280bf1285751cbac8099}

\item 
\hypertarget{a00433_a934e6fb7a0bf910b9f0ab0acdce3926b}{G\+Luint {\bfseries blue\+\_\+round\+\_\+}}\label{a00433_a934e6fb7a0bf910b9f0ab0acdce3926b}

\item 
\hypertarget{a00433_ad0f44a69ebef958b964b76d24ec3778d}{G\+Luint {\bfseries alpha\+\_\+round\+\_\+}}\label{a00433_ad0f44a69ebef958b964b76d24ec3778d}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
This class can be used to translate colors to integers. Use this e.\+g. for color index picking, i.\+e. drawing objects using a color corresponding to an unique index. 

Definition at line 82 of file Color\+Translator.\+hh.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
A\+C\+G/\+G\+L/Color\+Translator.\+hh\item 
A\+C\+G/\+G\+L/Color\+Translator.\+cc\end{DoxyCompactItemize}
