\section{D\-D\-C\-E\-D\-Picking\-Handler Class Reference}
\label{classDDCEDPickingHandler}\index{D\-D\-C\-E\-D\-Picking\-Handler@{D\-D\-C\-E\-D\-Picking\-Handler}}


Bring the feature to print a L\-C\-I\-O-\/\-Objekt given by his I\-D.  




{\ttfamily \#include $<$D\-D\-Marlin\-C\-E\-D.\-h$>$}

\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
void {\bf update} (L\-C\-Event $\ast$)
\begin{DoxyCompactList}\small\item\em Register all L\-C\-I\-O-\/objects of the given L\-C\-Event in the \doxyref{D\-D\-C\-E\-D\-Picking\-Handler}{p.}{classDDCEDPickingHandler} map. \end{DoxyCompactList}\item 
void {\bf print\-I\-D} (int)\label{classDDCEDPickingHandler_a375a5c4217377ea7de30fd9676277017}

\begin{DoxyCompactList}\small\item\em Print the L\-C\-I\-O-\/object given by his I\-D. \end{DoxyCompactList}\item 
void {\bf register\-Function} (std\-::string, void($\ast$)(const L\-C\-Object $\ast$))
\begin{DoxyCompactList}\small\item\em This method provides to register a (user defined) print function. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static {\bf D\-D\-C\-E\-D\-Picking\-Handler} \& {\bf get\-Instance} ()\label{classDDCEDPickingHandler_a70d84c7445fc05d682f25e7fc50b5a52}

\begin{DoxyCompactList}\small\item\em Returns a pointer to the \doxyref{D\-D\-C\-E\-D\-Picking\-Handler}{p.}{classDDCEDPickingHandler} object. \end{DoxyCompactList}\item 
{\footnotesize template$<$class T $>$ }\\static void {\bf default\-Output\-Function} (const L\-C\-Object $\ast$obj)\label{classDDCEDPickingHandler_a381121bcf82aa1aeda75cc8f2bf6df9a}

\begin{DoxyCompactList}\small\item\em The default print method for all L\-C\-I\-O objects. \end{DoxyCompactList}\item 
static int {\bf kbhit} (void)
\begin{DoxyCompactList}\small\item\em Returns 1 if a key was been pressed, otherwise 0. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Bring the feature to print a L\-C\-I\-O-\/\-Objekt given by his I\-D. 

To Provide this behavior it is required to register all ids first. This is an Singelton Class, use it with \doxyref{get\-Instance()}{p.}{classDDCEDPickingHandler_a70d84c7445fc05d682f25e7fc50b5a52}. \begin{DoxyAuthor}{Author}
Hauke Hoelbe (D\-E\-S\-Y) 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}
May 2010 
\end{DoxyVersion}


\subsection{Member Function Documentation}
\index{D\-D\-C\-E\-D\-Picking\-Handler@{D\-D\-C\-E\-D\-Picking\-Handler}!kbhit@{kbhit}}
\index{kbhit@{kbhit}!DDCEDPickingHandler@{D\-D\-C\-E\-D\-Picking\-Handler}}
\subsubsection[{kbhit}]{\setlength{\rightskip}{0pt plus 5cm}int D\-D\-C\-E\-D\-Picking\-Handler\-::kbhit (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}\label{classDDCEDPickingHandler_afa92fb8a99a35dae35405f7b0fb07210}


Returns 1 if a key was been pressed, otherwise 0. 

(Should be not part of \doxyref{D\-D\-C\-E\-D\-Picking\-Handler}{p.}{classDDCEDPickingHandler}) 

Referenced by D\-D\-Marlin\-C\-E\-D\-::draw().

\index{D\-D\-C\-E\-D\-Picking\-Handler@{D\-D\-C\-E\-D\-Picking\-Handler}!register\-Function@{register\-Function}}
\index{register\-Function@{register\-Function}!DDCEDPickingHandler@{D\-D\-C\-E\-D\-Picking\-Handler}}
\subsubsection[{register\-Function}]{\setlength{\rightskip}{0pt plus 5cm}void D\-D\-C\-E\-D\-Picking\-Handler\-::register\-Function (
\begin{DoxyParamCaption}
\item[{std\-::string}]{type, }
\item[{void($\ast$)(const L\-C\-Object $\ast$)}]{print\-Function}
\end{DoxyParamCaption}
)}\label{classDDCEDPickingHandler_ad7b5d0856ec62c748fbe3e8682bc6061}


This method provides to register a (user defined) print function. 

The first argument is the collection-\/ or type-\/\-Name of the L\-C\-I\-O Object, the second a pointer of the print function.\par
 Example\-: p\-Handler.\-register\-Function(\-L\-C\-I\-O\-::\-T\-R\-A\-C\-K\-E\-R\-H\-I\-T, \&your\-Print\-Function); \index{D\-D\-C\-E\-D\-Picking\-Handler@{D\-D\-C\-E\-D\-Picking\-Handler}!update@{update}}
\index{update@{update}!DDCEDPickingHandler@{D\-D\-C\-E\-D\-Picking\-Handler}}
\subsubsection[{update}]{\setlength{\rightskip}{0pt plus 5cm}void D\-D\-C\-E\-D\-Picking\-Handler\-::update (
\begin{DoxyParamCaption}
\item[{L\-C\-Event $\ast$}]{evt}
\end{DoxyParamCaption}
)}\label{classDDCEDPickingHandler_a780dbe0bb012b9fb4e418ff25d5f33f0}


Register all L\-C\-I\-O-\/objects of the given L\-C\-Event in the \doxyref{D\-D\-C\-E\-D\-Picking\-Handler}{p.}{classDDCEDPickingHandler} map. 

This method iterate over all objects how are part of the L\-C\-Event. \par
 For each object, the collection name will searched in the func\-Map. If this collection name not found in the func\-Map the type\-Name will be searched. Now the object pointer, the object id and the given print function from the func\-Map will be stored in the the \doxyref{D\-D\-C\-E\-D\-Picking\-Handler}{p.}{classDDCEDPickingHandler} map.\par
 If either the collection name and the type\-Name not found in the func\-Map, this function is not able to register the id of the object. The result is that print this object with his id is not possible. 

The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
D\-D\-Marlin\-C\-E\-D.\-h\item 
D\-D\-Marlin\-C\-E\-D.\-cc\end{DoxyCompactItemize}
