\hypertarget{a11328}{}\section{Light\+Widget\+Generator Class Reference}
\label{a11328}\index{Light\+Widget\+Generator@{Light\+Widget\+Generator}}
Inheritance diagram for Light\+Widget\+Generator\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a11328}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual Q\+Widget $\ast$ \hyperlink{a11328_ac87bf34befa7fa8bc146e17ad96a884c}{get\+Widget} (\hyperlink{a07748}{A\+C\+G\+::\+Scene\+Graph\+::\+Base\+Node} $\ast$\+\_\+node)
\begin{DoxyCompactList}\small\item\em Get a widget for this Node. \end{DoxyCompactList}\item 
virtual bool \hyperlink{a11328_a83df965ec8fb629987ac959fec6809e8}{can\+Handle} (std\+::string \+\_\+class\+Name)
\begin{DoxyCompactList}\small\item\em returns if the widgets can handle the given class \end{DoxyCompactList}\item 
virtual std\+::string \hyperlink{a11328_a550286bbee746f6fc4a8f8a5a8d6b4a6}{handles} ()
\begin{DoxyCompactList}\small\item\em return the type this generator handles \end{DoxyCompactList}\item 
virtual Q\+String \hyperlink{a11328_a470de3dc953e199d9d7f78b860c8334c}{context\+Menu\+Name} ()
\begin{DoxyCompactList}\small\item\em Return a name for your widget in the context menu. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}


Definition at line 69 of file Light\+Object.\+cc.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a11328_a83df965ec8fb629987ac959fec6809e8}\label{a11328_a83df965ec8fb629987ac959fec6809e8}} 
\index{Light\+Widget\+Generator@{Light\+Widget\+Generator}!can\+Handle@{can\+Handle}}
\index{can\+Handle@{can\+Handle}!Light\+Widget\+Generator@{Light\+Widget\+Generator}}
\subsubsection{\texorpdfstring{can\+Handle()}{canHandle()}}
{\footnotesize\ttfamily virtual bool Light\+Widget\+Generator\+::can\+Handle (\begin{DoxyParamCaption}\item[{std\+::string}]{\+\_\+class\+Name }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



returns if the widgets can handle the given class 

This function has to check if the given classname is supported 

Reimplemented from \hyperlink{a07704_accd5ef4c3c6babf5a4a804385437c745}{A\+C\+G\+::\+Qt\+Widgets\+::\+Scene\+Graph\+Widget\+Generator}.



Definition at line 93 of file Light\+Object.\+cc.

\mbox{\Hypertarget{a11328_a470de3dc953e199d9d7f78b860c8334c}\label{a11328_a470de3dc953e199d9d7f78b860c8334c}} 
\index{Light\+Widget\+Generator@{Light\+Widget\+Generator}!context\+Menu\+Name@{context\+Menu\+Name}}
\index{context\+Menu\+Name@{context\+Menu\+Name}!Light\+Widget\+Generator@{Light\+Widget\+Generator}}
\subsubsection{\texorpdfstring{context\+Menu\+Name()}{contextMenuName()}}
{\footnotesize\ttfamily virtual Q\+String Light\+Widget\+Generator\+::context\+Menu\+Name (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Return a name for your widget in the context menu. 

This name will be the same for all passed in nodes 

Reimplemented from \hyperlink{a07704_aea25bba8b98ab1790a3ea4afc16df522}{A\+C\+G\+::\+Qt\+Widgets\+::\+Scene\+Graph\+Widget\+Generator}.



Definition at line 101 of file Light\+Object.\+cc.

\mbox{\Hypertarget{a11328_ac87bf34befa7fa8bc146e17ad96a884c}\label{a11328_ac87bf34befa7fa8bc146e17ad96a884c}} 
\index{Light\+Widget\+Generator@{Light\+Widget\+Generator}!get\+Widget@{get\+Widget}}
\index{get\+Widget@{get\+Widget}!Light\+Widget\+Generator@{Light\+Widget\+Generator}}
\subsubsection{\texorpdfstring{get\+Widget()}{getWidget()}}
{\footnotesize\ttfamily virtual Q\+Widget$\ast$ Light\+Widget\+Generator\+::get\+Widget (\begin{DoxyParamCaption}\item[{\hyperlink{a07748}{A\+C\+G\+::\+Scene\+Graph\+::\+Base\+Node} $\ast$}]{\+\_\+node }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Get a widget for this Node. 

Derive from this class to get a widget for the given node you have to overload this function. First check, if your widget can handle nodes of the given type (check for \+\_\+node-\/$>$class\+Name() ) Then generate your widget and handle the \+\_\+node inside it. Return 0 if you can not handle it and check if the map already contains a widget for this node so that you generate one widget per node. 

Reimplemented from \hyperlink{a07704_a2e02a7e5a917f35f80ac96dd6b702808}{A\+C\+G\+::\+Qt\+Widgets\+::\+Scene\+Graph\+Widget\+Generator}.



Definition at line 76 of file Light\+Object.\+cc.

\mbox{\Hypertarget{a11328_a550286bbee746f6fc4a8f8a5a8d6b4a6}\label{a11328_a550286bbee746f6fc4a8f8a5a8d6b4a6}} 
\index{Light\+Widget\+Generator@{Light\+Widget\+Generator}!handles@{handles}}
\index{handles@{handles}!Light\+Widget\+Generator@{Light\+Widget\+Generator}}
\subsubsection{\texorpdfstring{handles()}{handles()}}
{\footnotesize\ttfamily virtual std\+::string Light\+Widget\+Generator\+::handles (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



return the type this generator handles 

return the classname of the node this generator can handle 

Reimplemented from \hyperlink{a07704_a23a897e1d755b26d63caa7e5f4786381}{A\+C\+G\+::\+Qt\+Widgets\+::\+Scene\+Graph\+Widget\+Generator}.



Definition at line 97 of file Light\+Object.\+cc.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
Type-\/\+Light/\+Object\+Types/\+Light/Light\+Object.\+cc\end{DoxyCompactItemize}
