\hypertarget{a00429}{\section{A\+C\+G\+:\+:Scene\+Graph\+:\+:A\+C\+G\+:\+:Color\+Stack Class Reference}
\label{a00429}\index{A\+C\+G\+::\+Scene\+Graph\+::\+A\+C\+G\+::\+Color\+Stack@{A\+C\+G\+::\+Scene\+Graph\+::\+A\+C\+G\+::\+Color\+Stack}}
}
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
class \hyperlink{a00878}{Node}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00429_a9577aa36eec1118a568f86211be02398}{\hyperlink{a00429_a9577aa36eec1118a568f86211be02398}{Color\+Stack} ()}\label{a00429_a9577aa36eec1118a568f86211be02398}

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

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

\begin{DoxyCompactList}\small\item\em init (takes current G\+L context/ like gl\+Init\+Names (); gl\+Push\+Name (0)) \end{DoxyCompactList}\item 
\hypertarget{a00429_a78696f4324d44b1ad664f514c3958d6a}{bool \hyperlink{a00429_a78696f4324d44b1ad664f514c3958d6a}{initialized} () const }\label{a00429_a78696f4324d44b1ad664f514c3958d6a}

\begin{DoxyCompactList}\small\item\em has it been initialized? \end{DoxyCompactList}\item 
\hypertarget{a00429_a9ad0506020df016e3dbdb3b5ae0002f0}{bool \hyperlink{a00429_a9ad0506020df016e3dbdb3b5ae0002f0}{set\+Maximum\+Index} (unsigned int \+\_\+idx)}\label{a00429_a9ad0506020df016e3dbdb3b5ae0002f0}

\begin{DoxyCompactList}\small\item\em sets the maximum index number used in current node \end{DoxyCompactList}\item 
\hypertarget{a00429_a63fd806d8f6ed043013e2f881041f583}{void \hyperlink{a00429_a63fd806d8f6ed043013e2f881041f583}{set\+Index} (unsigned int \+\_\+idx)}\label{a00429_a63fd806d8f6ed043013e2f881041f583}

\begin{DoxyCompactList}\small\item\em sets the current color the given index (like gl\+Load\+Name) \end{DoxyCompactList}\item 
\hypertarget{a00429_a665177635d18f0f8cceb347465838266}{\hyperlink{a01409}{Vec4uc} \hyperlink{a00429_a665177635d18f0f8cceb347465838266}{get\+Index\+Color} (unsigned int \+\_\+idx)}\label{a00429_a665177635d18f0f8cceb347465838266}

\begin{DoxyCompactList}\small\item\em gets the color instead of setting it directly \end{DoxyCompactList}\item 
\hypertarget{a00429_a3db622ec0ed6384ef412d713cad4b36f}{void \hyperlink{a00429_a3db622ec0ed6384ef412d713cad4b36f}{push\+Index} (unsigned int \+\_\+idx)}\label{a00429_a3db622ec0ed6384ef412d713cad4b36f}

\begin{DoxyCompactList}\small\item\em creates a new node the stack (like gl\+Push\+Name) \end{DoxyCompactList}\item 
\hypertarget{a00429_ab93b81c65ccf2e1d48b725d191e1f4c9}{void \hyperlink{a00429_ab93b81c65ccf2e1d48b725d191e1f4c9}{pop\+Index} ()}\label{a00429_ab93b81c65ccf2e1d48b725d191e1f4c9}

\begin{DoxyCompactList}\small\item\em pops the current node from the stack (like gl\+Pop\+Name) \end{DoxyCompactList}\item 
\hypertarget{a00429_a1188f4a42cfdff285ffc174435ff3b31}{std\+::vector$<$ unsigned int $>$ \hyperlink{a00429_a1188f4a42cfdff285ffc174435ff3b31}{color\+To\+Stack} (\hyperlink{a01409}{Vec4uc} \+\_\+rgba) const }\label{a00429_a1188f4a42cfdff285ffc174435ff3b31}

\begin{DoxyCompactList}\small\item\em converts the given color to index values on the stack \end{DoxyCompactList}\item 
\hypertarget{a00429_a08e674ac4205d2ffc8164d25553b86de}{unsigned int \hyperlink{a00429_a08e674ac4205d2ffc8164d25553b86de}{free\+Indicies} () const }\label{a00429_a08e674ac4205d2ffc8164d25553b86de}

\begin{DoxyCompactList}\small\item\em returns maximal available index count \end{DoxyCompactList}\item 
\hypertarget{a00429_a9209c23038e46c92ffb71d5c23b0c1cd}{bool \hyperlink{a00429_a9209c23038e46c92ffb71d5c23b0c1cd}{error} () const }\label{a00429_a9209c23038e46c92ffb71d5c23b0c1cd}

\begin{DoxyCompactList}\small\item\em Did an error occur during picking. \end{DoxyCompactList}\item 
\hypertarget{a00429_acca200fc7b3041ee8a5f900fac1ab1ed}{unsigned int \hyperlink{a00429_acca200fc7b3041ee8a5f900fac1ab1ed}{current\+Index} () const }\label{a00429_acca200fc7b3041ee8a5f900fac1ab1ed}

\begin{DoxyCompactList}\small\item\em returns the current color index \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00429_abab370bedd684b744bb34d904c67c616}{bool {\bfseries initialized\+\_\+}}\label{a00429_abab370bedd684b744bb34d904c67c616}

\item 
\hypertarget{a00429_af837f8d7070172ad406551e464edfb9b}{\hyperlink{a00432}{Color\+Translator} {\bfseries translator\+\_\+}}\label{a00429_af837f8d7070172ad406551e464edfb9b}

\item 
\hypertarget{a00429_ae085c62d5aeca9b396a7ee951e724438}{\hyperlink{a00878}{Node} $\ast$ {\bfseries root\+\_\+}}\label{a00429_ae085c62d5aeca9b396a7ee951e724438}

\item 
\hypertarget{a00429_a9fc98a605586beb1b34d5a094dff4fb9}{\hyperlink{a00878}{Node} $\ast$ {\bfseries current\+Node\+\_\+}}\label{a00429_a9fc98a605586beb1b34d5a094dff4fb9}

\item 
\hypertarget{a00429_a56391dffeb84afd22a8edf3056121c15}{bool {\bfseries error\+\_\+}}\label{a00429_a56391dffeb84afd22a8edf3056121c15}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
This class can be used to implement a gl picking stack based on colors 

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}
