\hypertarget{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack}{}\section{A\+CG\+:\+:Scene\+Graph\+:\+:A\+CG\+:\+:Color\+Stack Class Reference}
\label{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack}\index{A\+C\+G\+::\+Scene\+Graph\+::\+A\+C\+G\+::\+Color\+Stack@{A\+C\+G\+::\+Scene\+Graph\+::\+A\+C\+G\+::\+Color\+Stack}}


{\ttfamily \#include $<$Open\+Flipper/libs\+\_\+required/\+A\+C\+G/\+Scenegraph/\+Mesh\+Node2\+T\+\_\+impl.\+hh$>$}

\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
class \hyperlink{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_1_1Node}{Node}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a9577aa36eec1118a568f86211be02398}\label{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a9577aa36eec1118a568f86211be02398}} 
\hyperlink{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a9577aa36eec1118a568f86211be02398}{Color\+Stack} ()
\begin{DoxyCompactList}\small\item\em Default constructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_af34f2927feffeeaeec0a1223f2a6c898}\label{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_af34f2927feffeeaeec0a1223f2a6c898}} 
\hyperlink{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_af34f2927feffeeaeec0a1223f2a6c898}{$\sim$\+Color\+Stack} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a2667538ebf8d24aab2e1df3949fc6553}\label{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a2667538ebf8d24aab2e1df3949fc6553}} 
void \hyperlink{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a2667538ebf8d24aab2e1df3949fc6553}{initialize} (\hyperlink{classACG_1_1SceneGraph_1_1ACG_1_1GLState}{A\+C\+G\+::\+G\+L\+State} $\ast$)
\begin{DoxyCompactList}\small\item\em init (takes current GL context/ like gl\+Init\+Names (); gl\+Push\+Name (0)) \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_aa91597bd94eab4ec2ac13f9d7959176e}\label{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_aa91597bd94eab4ec2ac13f9d7959176e}} 
bool \hyperlink{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_aa91597bd94eab4ec2ac13f9d7959176e}{initialized} () const
\begin{DoxyCompactList}\small\item\em has it been initialized? \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a1c65d1842831aae5f6f118506b10d8d8}\label{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a1c65d1842831aae5f6f118506b10d8d8}} 
bool \hyperlink{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a1c65d1842831aae5f6f118506b10d8d8}{set\+Maximum\+Index} (size\+\_\+t \+\_\+idx)
\begin{DoxyCompactList}\small\item\em sets the maximum index number used in current node \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_aae571ea423797ba2d454d38a62cae1ac}\label{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_aae571ea423797ba2d454d38a62cae1ac}} 
void \hyperlink{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_aae571ea423797ba2d454d38a62cae1ac}{set\+Index} (size\+\_\+t \+\_\+idx)
\begin{DoxyCompactList}\small\item\em sets the current color the given index (like gl\+Load\+Name) \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a587a7efc291ebc254f4b4a904bd74b54}\label{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a587a7efc291ebc254f4b4a904bd74b54}} 
\hyperlink{classOpenMesh_1_1VectorT}{Vec4uc} \hyperlink{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a587a7efc291ebc254f4b4a904bd74b54}{get\+Index\+Color} (size\+\_\+t \+\_\+idx)
\begin{DoxyCompactList}\small\item\em gets the color instead of setting it directly \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a6f79a40225ecda48847640100a02aa08}\label{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a6f79a40225ecda48847640100a02aa08}} 
void \hyperlink{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a6f79a40225ecda48847640100a02aa08}{push\+Index} (size\+\_\+t \+\_\+idx)
\begin{DoxyCompactList}\small\item\em creates a new node the stack (like gl\+Push\+Name) \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_ab93b81c65ccf2e1d48b725d191e1f4c9}\label{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_ab93b81c65ccf2e1d48b725d191e1f4c9}} 
void \hyperlink{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_ab93b81c65ccf2e1d48b725d191e1f4c9}{pop\+Index} ()
\begin{DoxyCompactList}\small\item\em pops the current node from the stack (like gl\+Pop\+Name) \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a712162f7d21f8ff31c5b911473aaa4b8}\label{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a712162f7d21f8ff31c5b911473aaa4b8}} 
std\+::vector$<$ size\+\_\+t $>$ \hyperlink{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a712162f7d21f8ff31c5b911473aaa4b8}{color\+To\+Stack} (\hyperlink{classOpenMesh_1_1VectorT}{Vec4uc} \+\_\+rgba) const
\begin{DoxyCompactList}\small\item\em converts the given color to index values on the stack \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a526368cc5b8bb197b0d3ee4e1313cdce}\label{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a526368cc5b8bb197b0d3ee4e1313cdce}} 
size\+\_\+t \hyperlink{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a526368cc5b8bb197b0d3ee4e1313cdce}{free\+Indicies} () const
\begin{DoxyCompactList}\small\item\em returns maximal available index count \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a7f1cdb12e6b85d0ff6cff9f497c0b82b}\label{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a7f1cdb12e6b85d0ff6cff9f497c0b82b}} 
bool \hyperlink{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a7f1cdb12e6b85d0ff6cff9f497c0b82b}{error} () const
\begin{DoxyCompactList}\small\item\em Did an error occur during picking. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a05d43e97f30e69fd734e6d934a10b382}\label{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a05d43e97f30e69fd734e6d934a10b382}} 
size\+\_\+t \hyperlink{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a05d43e97f30e69fd734e6d934a10b382}{current\+Index} () const
\begin{DoxyCompactList}\small\item\em returns the current color index \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_abab370bedd684b744bb34d904c67c616}\label{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_abab370bedd684b744bb34d904c67c616}} 
bool {\bfseries initialized\+\_\+}
\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_af837f8d7070172ad406551e464edfb9b}\label{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_af837f8d7070172ad406551e464edfb9b}} 
\hyperlink{classACG_1_1SceneGraph_1_1ACG_1_1ColorTranslator}{Color\+Translator} {\bfseries translator\+\_\+}
\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_ae085c62d5aeca9b396a7ee951e724438}\label{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_ae085c62d5aeca9b396a7ee951e724438}} 
\hyperlink{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_1_1Node}{Node} $\ast$ {\bfseries root\+\_\+}
\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a9fc98a605586beb1b34d5a094dff4fb9}\label{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a9fc98a605586beb1b34d5a094dff4fb9}} 
\hyperlink{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_1_1Node}{Node} $\ast$ {\bfseries current\+Node\+\_\+}
\item 
\mbox{\Hypertarget{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a56391dffeb84afd22a8edf3056121c15}\label{classACG_1_1SceneGraph_1_1ACG_1_1ColorStack_a56391dffeb84afd22a8edf3056121c15}} 
bool {\bfseries error\+\_\+}
\end{DoxyCompactItemize}


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

Definition at line 73 of file Mesh\+Node2\+T\+\_\+impl.\+hh.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/libs\+\_\+required/\+A\+C\+G/\+Scenegraph/Mesh\+Node2\+T\+\_\+impl.\+hh\end{DoxyCompactItemize}
