\hypertarget{a01133}{\section{A\+C\+G\+:\+:Qt\+Widgets\+:\+:Scene\+Graph\+Widget\+Generator Class Reference}
\label{a01133}\index{A\+C\+G\+::\+Qt\+Widgets\+::\+Scene\+Graph\+Widget\+Generator@{A\+C\+G\+::\+Qt\+Widgets\+::\+Scene\+Graph\+Widget\+Generator}}
}
Inheritance diagram for A\+C\+G\+:\+:Qt\+Widgets\+:\+:Scene\+Graph\+Widget\+Generator\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a01133}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual Q\+Widget $\ast$ \hyperlink{a01133_a2e02a7e5a917f35f80ac96dd6b702808}{get\+Widget} (\hyperlink{a00327}{Scene\+Graph\+::\+Base\+Node} $\ast$\+\_\+node)
\begin{DoxyCompactList}\small\item\em Get a widget for this Node. \end{DoxyCompactList}\item 
virtual bool \hyperlink{a01133_accd5ef4c3c6babf5a4a804385437c745}{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{a01133_a23a897e1d755b26d63caa7e5f4786381}{handles} ()
\begin{DoxyCompactList}\small\item\em return the type this generator handles \end{DoxyCompactList}\item 
virtual Q\+String \hyperlink{a01133_aea25bba8b98ab1790a3ea4afc16df522}{context\+Menu\+Name} ()
\begin{DoxyCompactList}\small\item\em Return a name for your widget in the context menu. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01133_a527dea7389c6dc62edeb6b711729e2d4}{Q\+Map$<$ \hyperlink{a00327}{Scene\+Graph\+::\+Base\+Node} \\*
$\ast$, Q\+Widget $\ast$ $>$ {\bfseries widget\+Map\+\_\+}}\label{a01133_a527dea7389c6dc62edeb6b711729e2d4}

\end{DoxyCompactItemize}


\subsection{Detailed Description}


Definition at line 87 of file Qt\+Scene\+Graph\+Widget.\+hh.



\subsection{Member Function Documentation}
\hypertarget{a01133_accd5ef4c3c6babf5a4a804385437c745}{\index{A\+C\+G\+::\+Qt\+Widgets\+::\+Scene\+Graph\+Widget\+Generator@{A\+C\+G\+::\+Qt\+Widgets\+::\+Scene\+Graph\+Widget\+Generator}!can\+Handle@{can\+Handle}}
\index{can\+Handle@{can\+Handle}!A\+C\+G\+::\+Qt\+Widgets\+::\+Scene\+Graph\+Widget\+Generator@{A\+C\+G\+::\+Qt\+Widgets\+::\+Scene\+Graph\+Widget\+Generator}}
\subsubsection[{can\+Handle}]{\setlength{\rightskip}{0pt plus 5cm}bool A\+C\+G\+::\+Qt\+Widgets\+::\+Scene\+Graph\+Widget\+Generator\+::can\+Handle (
\begin{DoxyParamCaption}
\item[{std\+::string}]{\+\_\+class\+Name}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{a01133_accd5ef4c3c6babf5a4a804385437c745}


returns if the widgets can handle the given class 

This function has to check if the given classname is supported 

Reimplemented in \hyperlink{a00773_a83df965ec8fb629987ac959fec6809e8}{Light\+Widget\+Generator}.



Definition at line 99 of file Qt\+Scene\+Graph\+Widget.\+cc.

\hypertarget{a01133_aea25bba8b98ab1790a3ea4afc16df522}{\index{A\+C\+G\+::\+Qt\+Widgets\+::\+Scene\+Graph\+Widget\+Generator@{A\+C\+G\+::\+Qt\+Widgets\+::\+Scene\+Graph\+Widget\+Generator}!context\+Menu\+Name@{context\+Menu\+Name}}
\index{context\+Menu\+Name@{context\+Menu\+Name}!A\+C\+G\+::\+Qt\+Widgets\+::\+Scene\+Graph\+Widget\+Generator@{A\+C\+G\+::\+Qt\+Widgets\+::\+Scene\+Graph\+Widget\+Generator}}
\subsubsection[{context\+Menu\+Name}]{\setlength{\rightskip}{0pt plus 5cm}Q\+String A\+C\+G\+::\+Qt\+Widgets\+::\+Scene\+Graph\+Widget\+Generator\+::context\+Menu\+Name (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{a01133_aea25bba8b98ab1790a3ea4afc16df522}


Return a name for your widget in the context menu. 

This name will be the same for all passed in nodes 

Reimplemented in \hyperlink{a00773_a470de3dc953e199d9d7f78b860c8334c}{Light\+Widget\+Generator}.



Definition at line 111 of file Qt\+Scene\+Graph\+Widget.\+cc.

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


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 in \hyperlink{a00773_ac87bf34befa7fa8bc146e17ad96a884c}{Light\+Widget\+Generator}.



Definition at line 93 of file Qt\+Scene\+Graph\+Widget.\+cc.

\hypertarget{a01133_a23a897e1d755b26d63caa7e5f4786381}{\index{A\+C\+G\+::\+Qt\+Widgets\+::\+Scene\+Graph\+Widget\+Generator@{A\+C\+G\+::\+Qt\+Widgets\+::\+Scene\+Graph\+Widget\+Generator}!handles@{handles}}
\index{handles@{handles}!A\+C\+G\+::\+Qt\+Widgets\+::\+Scene\+Graph\+Widget\+Generator@{A\+C\+G\+::\+Qt\+Widgets\+::\+Scene\+Graph\+Widget\+Generator}}
\subsubsection[{handles}]{\setlength{\rightskip}{0pt plus 5cm}std\+::string A\+C\+G\+::\+Qt\+Widgets\+::\+Scene\+Graph\+Widget\+Generator\+::handles (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{a01133_a23a897e1d755b26d63caa7e5f4786381}


return the type this generator handles 

return the classname of the node this generator can handle 

Reimplemented in \hyperlink{a00773_a550286bbee746f6fc4a8f8a5a8d6b4a6}{Light\+Widget\+Generator}.



Definition at line 105 of file Qt\+Scene\+Graph\+Widget.\+cc.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
A\+C\+G/\+Qt\+Widgets/Qt\+Scene\+Graph\+Widget.\+hh\item 
A\+C\+G/\+Qt\+Widgets/Qt\+Scene\+Graph\+Widget.\+cc\end{DoxyCompactItemize}
