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


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

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

\begin{DoxyCompactList}\small\item\em Default constructor. \end{DoxyCompactList}\item 
\hypertarget{a01064_afd2c56ae6a8fa724d393f853de422e83}{\hyperlink{a01064_afd2c56ae6a8fa724d393f853de422e83}{Qt\+Color\+Translator} (Q\+G\+L\+Context \&\+\_\+context)}\label{a01064_afd2c56ae6a8fa724d393f853de422e83}

\begin{DoxyCompactList}\small\item\em construct with Q\+G\+Lcontext \end{DoxyCompactList}\item 
\hypertarget{a01064_ae192b8e10f3591fee59b503b2cb81aa4}{\hyperlink{a01064_ae192b8e10f3591fee59b503b2cb81aa4}{$\sim$\+Qt\+Color\+Translator} ()}\label{a01064_ae192b8e10f3591fee59b503b2cb81aa4}

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

\begin{DoxyCompactList}\small\item\em init (takes current Q\+G\+Lcontext) \end{DoxyCompactList}\item 
\hypertarget{a01064_a4f0ee0fa2adcf78fb30e999392128306}{void \hyperlink{a01064_a4f0ee0fa2adcf78fb30e999392128306}{initialize} (Q\+G\+L\+Context \&\+\_\+context)}\label{a01064_a4f0ee0fa2adcf78fb30e999392128306}

\begin{DoxyCompactList}\small\item\em init with given Q\+G\+Lcontext \end{DoxyCompactList}\item 
\hypertarget{a01064_ab9a14cc4802e260b982fb4e900fc4ed2}{bool \hyperlink{a01064_ab9a14cc4802e260b982fb4e900fc4ed2}{initialized} () const }\label{a01064_ab9a14cc4802e260b982fb4e900fc4ed2}

\begin{DoxyCompactList}\small\item\em has it been initialized? \end{DoxyCompactList}\item 
\hypertarget{a01064_a6f6344ace6a24e8917da98b164af1949}{bool \hyperlink{a01064_a6f6344ace6a24e8917da98b164af1949}{index2color} (unsigned int \+\_\+idx, Q\+Rgb \&\+\_\+col) const }\label{a01064_a6f6344ace6a24e8917da98b164af1949}

\begin{DoxyCompactList}\small\item\em index -\/$>$ color (one buffer) \end{DoxyCompactList}\item 
\hypertarget{a01064_a456cc81440ca85f4cdfaa781f9b46897}{bool \hyperlink{a01064_a456cc81440ca85f4cdfaa781f9b46897}{index2color} (unsigned int \+\_\+idx, Q\+Rgb \&\+\_\+front\+Color, Q\+Rgb \&\+\_\+back\+Color) const }\label{a01064_a456cc81440ca85f4cdfaa781f9b46897}

\begin{DoxyCompactList}\small\item\em index -\/$>$ color (two buffers) \end{DoxyCompactList}\item 
\hypertarget{a01064_a89b0369c322f04ae752ab3b622397584}{int \hyperlink{a01064_a89b0369c322f04ae752ab3b622397584}{color2index} (Q\+Rgb \+\_\+c) const }\label{a01064_a89b0369c322f04ae752ab3b622397584}

\begin{DoxyCompactList}\small\item\em color -\/$>$ index (one buffer) \end{DoxyCompactList}\item 
\hypertarget{a01064_aa1bb9674c70c5f999a3bfcbc011e1ef8}{int \hyperlink{a01064_aa1bb9674c70c5f999a3bfcbc011e1ef8}{color2index} (Q\+Rgb \+\_\+front\+Color, Q\+Rgb \+\_\+back\+Color) const }\label{a01064_aa1bb9674c70c5f999a3bfcbc011e1ef8}

\begin{DoxyCompactList}\small\item\em color -\/$>$ index (two buffers) \end{DoxyCompactList}\item 
\hypertarget{a01064_aeace6545eaea32c110e8d825b4605bbd}{unsigned int \hyperlink{a01064_aeace6545eaea32c110e8d825b4605bbd}{max\+Index} () const }\label{a01064_aeace6545eaea32c110e8d825b4605bbd}

\begin{DoxyCompactList}\small\item\em returns max convertable index (using O\+N\+E buffer) \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01064_aeaa961e2a5840c6bfb63633e77827ec9}{bool {\bfseries initialized\+\_\+}}\label{a01064_aeaa961e2a5840c6bfb63633e77827ec9}

\item 
\hypertarget{a01064_a1262c466e6c69b28b8725999f2b41e6a}{G\+Lint {\bfseries red\+Bits\+\_\+}}\label{a01064_a1262c466e6c69b28b8725999f2b41e6a}

\item 
\hypertarget{a01064_a9a0c2536a892e6d2a438dea8dac63d45}{G\+Lint {\bfseries green\+Bits\+\_\+}}\label{a01064_a9a0c2536a892e6d2a438dea8dac63d45}

\item 
\hypertarget{a01064_a302c6ff2e6751cdc39747b12c3ca2475}{G\+Lint {\bfseries blue\+Bits\+\_\+}}\label{a01064_a302c6ff2e6751cdc39747b12c3ca2475}

\item 
\hypertarget{a01064_add554cec0d06abe11ed6db9b725f155b}{G\+Luint {\bfseries red\+Mask\+\_\+}}\label{a01064_add554cec0d06abe11ed6db9b725f155b}

\item 
\hypertarget{a01064_a344fa6bef06165a34528d4c873858df0}{G\+Luint {\bfseries green\+Mask\+\_\+}}\label{a01064_a344fa6bef06165a34528d4c873858df0}

\item 
\hypertarget{a01064_a3fe3135d8e49f0e1a52f1296e4779ec1}{G\+Luint {\bfseries blue\+Mask\+\_\+}}\label{a01064_a3fe3135d8e49f0e1a52f1296e4779ec1}

\item 
\hypertarget{a01064_a37110743b85bb4166cec22d400d3e024}{G\+Luint {\bfseries red\+Shift\+\_\+}}\label{a01064_a37110743b85bb4166cec22d400d3e024}

\item 
\hypertarget{a01064_a6297fe64b2b14498d2c803c4528b33a8}{G\+Luint {\bfseries green\+Shift\+\_\+}}\label{a01064_a6297fe64b2b14498d2c803c4528b33a8}

\item 
\hypertarget{a01064_a6a3724afd121c883ccb2d40471fa9eb8}{G\+Luint {\bfseries blue\+Shift\+\_\+}}\label{a01064_a6a3724afd121c883ccb2d40471fa9eb8}

\item 
\hypertarget{a01064_a5ae73c3c14be823f613f2f3e47094953}{G\+Luint {\bfseries red\+Round\+\_\+}}\label{a01064_a5ae73c3c14be823f613f2f3e47094953}

\item 
\hypertarget{a01064_a82c2ab084288d22e5ffd12685ce7c2ef}{G\+Luint {\bfseries green\+Round\+\_\+}}\label{a01064_a82c2ab084288d22e5ffd12685ce7c2ef}

\item 
\hypertarget{a01064_a3101e2c8b4fffdc0bae4af401f2a6cb5}{G\+Luint {\bfseries blue\+Round\+\_\+}}\label{a01064_a3101e2c8b4fffdc0bae4af401f2a6cb5}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
This class translates index $<$-\/$>$ R\+G\+B color.

The \hyperlink{a01064}{Qt\+Color\+Translator} is attached to a Q\+G\+L\+Context and translates index to color and vice versa. If the R\+G\+B bits of one buffer are not sufficient, both front and back buffer can be used. 

Definition at line 86 of file Qt\+Color\+Translator.\+hh.



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