\hypertarget{a00773}{\section{Light\+Widget\+Generator Class Reference}
\label{a00773}\index{Light\+Widget\+Generator@{Light\+Widget\+Generator}}
}
Inheritance diagram for Light\+Widget\+Generator\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a00773}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual Q\+Widget $\ast$ \hyperlink{a00773_ac87bf34befa7fa8bc146e17ad96a884c}{get\+Widget} (\hyperlink{a00327}{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{a00773_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{a00773_a550286bbee746f6fc4a8f8a5a8d6b4a6}{handles} ()
\begin{DoxyCompactList}\small\item\em return the type this generator handles \end{DoxyCompactList}\item 
virtual Q\+String \hyperlink{a00773_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 71 of file Light\+Object.\+cc.



\subsection{Member Function Documentation}
\hypertarget{a00773_a83df965ec8fb629987ac959fec6809e8}{\index{Light\+Widget\+Generator@{Light\+Widget\+Generator}!can\+Handle@{can\+Handle}}
\index{can\+Handle@{can\+Handle}!Light\+Widget\+Generator@{Light\+Widget\+Generator}}
\subsubsection[{can\+Handle}]{\setlength{\rightskip}{0pt plus 5cm}virtual bool Light\+Widget\+Generator\+::can\+Handle (
\begin{DoxyParamCaption}
\item[{std\+::string}]{\+\_\+class\+Name}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a00773_a83df965ec8fb629987ac959fec6809e8}


returns if the widgets can handle the given class 

This function has to check if the given classname is supported 

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



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

\hypertarget{a00773_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[{context\+Menu\+Name}]{\setlength{\rightskip}{0pt plus 5cm}virtual Q\+String Light\+Widget\+Generator\+::context\+Menu\+Name (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a00773_a470de3dc953e199d9d7f78b860c8334c}


Return a name for your widget in the context menu. 

This name will be the same for all passed in nodes 

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



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

\hypertarget{a00773_ac87bf34befa7fa8bc146e17ad96a884c}{\index{Light\+Widget\+Generator@{Light\+Widget\+Generator}!get\+Widget@{get\+Widget}}
\index{get\+Widget@{get\+Widget}!Light\+Widget\+Generator@{Light\+Widget\+Generator}}
\subsubsection[{get\+Widget}]{\setlength{\rightskip}{0pt plus 5cm}virtual Q\+Widget$\ast$ Light\+Widget\+Generator\+::get\+Widget (
\begin{DoxyParamCaption}
\item[{{\bf A\+C\+G\+::\+Scene\+Graph\+::\+Base\+Node} $\ast$}]{\+\_\+node}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a00773_ac87bf34befa7fa8bc146e17ad96a884c}


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{a01133_a2e02a7e5a917f35f80ac96dd6b702808}{A\+C\+G\+::\+Qt\+Widgets\+::\+Scene\+Graph\+Widget\+Generator}.



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

\hypertarget{a00773_a550286bbee746f6fc4a8f8a5a8d6b4a6}{\index{Light\+Widget\+Generator@{Light\+Widget\+Generator}!handles@{handles}}
\index{handles@{handles}!Light\+Widget\+Generator@{Light\+Widget\+Generator}}
\subsubsection[{handles}]{\setlength{\rightskip}{0pt plus 5cm}virtual std\+::string Light\+Widget\+Generator\+::handles (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a00773_a550286bbee746f6fc4a8f8a5a8d6b4a6}


return the type this generator handles 

return the classname of the node this generator can handle 

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



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



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