\hypertarget{a00432}{\section{A\+C\+G\+:\+:Scene\+Graph\+:\+:A\+C\+G\+:\+:Color\+Translator Class Reference}
\label{a00432}\index{A\+C\+G\+::\+Scene\+Graph\+::\+A\+C\+G\+::\+Color\+Translator@{A\+C\+G\+::\+Scene\+Graph\+::\+A\+C\+G\+::\+Color\+Translator}}
}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00432_a4238e72ec8672d156d550b8947a85b6b}{\hyperlink{a00432_a4238e72ec8672d156d550b8947a85b6b}{Color\+Translator} ()}\label{a00432_a4238e72ec8672d156d550b8947a85b6b}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

\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 Mesh\+Node2\+T.\+cc.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
A\+C\+G/\+Scenegraph/Mesh\+Node2\+T.\+cc\end{DoxyCompactItemize}
