\hypertarget{a01366}{\section{Type\+Qt\+Widget\+Plugin Class Reference}
\label{a01366}\index{Type\+Qt\+Widget\+Plugin@{Type\+Qt\+Widget\+Plugin}}
}
Inheritance diagram for Type\+Qt\+Widget\+Plugin\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=1.671642cm]{a01366}
\end{center}
\end{figure}
\subsection*{Public Slots}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01366_a094a04ca2497ad74fdefa95272240547}{Q\+String {\bfseries version} ()}\label{a01366_a094a04ca2497ad74fdefa95272240547}

\end{DoxyCompactItemize}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01366_a0d34174e456f5ecefec613f95ab24698}{void {\bfseries empty\+Object\+Added} (int \+\_\+id)}\label{a01366_a0d34174e456f5ecefec613f95ab24698}

\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
Q\+String \hyperlink{a01366_a6096b8d037187204e6efdb69bed527a0}{name} ()
\begin{DoxyCompactList}\small\item\em Return a name for the plugin. \end{DoxyCompactList}\item 
Q\+String \hyperlink{a01366_ae61e3947496edb5c0c0f447e2e3fb190}{description} ()
\begin{DoxyCompactList}\small\item\em Return a description of what the plugin is doing. \end{DoxyCompactList}\item 
\hypertarget{a01366_af4191989264de81b3dd533621e0fd23a}{bool {\bfseries register\+Type} ()}\label{a01366_af4191989264de81b3dd533621e0fd23a}

\item 
int \hyperlink{a01366_a2ea59d7607a8533e98321e50444bd731}{add\+Empty} ()
\begin{DoxyCompactList}\small\item\em Create an empty object. \end{DoxyCompactList}\item 
\hyperlink{a00477}{Data\+Type} \hyperlink{a01366_a01d6038d83d0dd327812ff61e060e7d2}{supported\+Type} ()
\begin{DoxyCompactList}\small\item\em Return your supported object type( e.\+g. D\+A\+T\+A\+\_\+\+T\+R\+I\+A\+N\+G\+L\+E\+\_\+\+M\+E\+S\+H ) \end{DoxyCompactList}\item 
void \hyperlink{a01366_a3ea0ae14bcbccab7f5821be6cbbea054}{slot\+Mouse\+Event} (Q\+Mouse\+Event $\ast$\+\_\+event)
\begin{DoxyCompactList}\small\item\em Mouse Event from main application ( Picking Mode ) \end{DoxyCompactList}\item 
void \hyperlink{a01366_ac207dfa91f9af432462bd489bf2bec09}{object\+Deleted} (int \+\_\+id)
\begin{DoxyCompactList}\small\item\em An object was deleted. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Slots}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01366_abb9d6e294c73e338dd18ecaec944106d}{void {\bfseries nogui\+Supported} ()}\label{a01366_abb9d6e294c73e338dd18ecaec944106d}

\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01366_afebbc1596940f89a3bd1d81e525c2025}{void {\bfseries pass\+Mouse\+Events} (Q\+Mouse\+Event $\ast$\+\_\+event)}\label{a01366_afebbc1596940f89a3bd1d81e525c2025}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01366_a80c53cfa78d5fca229390063afae1ddd}{std\+::map$<$ int, \hyperlink{a01087}{Qt\+Widget\+Object} $\ast$ $>$ {\bfseries widgets\+\_\+}}\label{a01366_a80c53cfa78d5fca229390063afae1ddd}

\end{DoxyCompactItemize}


\subsection{Detailed Description}


Definition at line 66 of file Type\+Qt\+Widget.\+hh.



\subsection{Member Function Documentation}
\hypertarget{a01366_a2ea59d7607a8533e98321e50444bd731}{\index{Type\+Qt\+Widget\+Plugin@{Type\+Qt\+Widget\+Plugin}!add\+Empty@{add\+Empty}}
\index{add\+Empty@{add\+Empty}!Type\+Qt\+Widget\+Plugin@{Type\+Qt\+Widget\+Plugin}}
\subsubsection[{add\+Empty}]{\setlength{\rightskip}{0pt plus 5cm}int Type\+Qt\+Widget\+Plugin\+::add\+Empty (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{a01366_a2ea59d7607a8533e98321e50444bd731}


Create an empty object. 

When this slot is called you have to create an object of your supported type. \begin{DoxyReturn}{Returns}
Id of the new Object 
\end{DoxyReturn}


Implements \hyperlink{a01357_a50b2bfa5db5ff3ce6f3e8cc8e40260f0}{Type\+Interface}.



Definition at line 64 of file Type\+Qt\+Widget.\+cc.

\hypertarget{a01366_ae61e3947496edb5c0c0f447e2e3fb190}{\index{Type\+Qt\+Widget\+Plugin@{Type\+Qt\+Widget\+Plugin}!description@{description}}
\index{description@{description}!Type\+Qt\+Widget\+Plugin@{Type\+Qt\+Widget\+Plugin}}
\subsubsection[{description}]{\setlength{\rightskip}{0pt plus 5cm}Q\+String Type\+Qt\+Widget\+Plugin\+::description (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a01366_ae61e3947496edb5c0c0f447e2e3fb190}


Return a description of what the plugin is doing. 

This function has to return a basic description of the plugin 

Implements \hyperlink{a00322_a43f0d3612695b53c848c14f48fea9a7a}{Base\+Interface}.



Definition at line 96 of file Type\+Qt\+Widget.\+hh.

\hypertarget{a01366_a6096b8d037187204e6efdb69bed527a0}{\index{Type\+Qt\+Widget\+Plugin@{Type\+Qt\+Widget\+Plugin}!name@{name}}
\index{name@{name}!Type\+Qt\+Widget\+Plugin@{Type\+Qt\+Widget\+Plugin}}
\subsubsection[{name}]{\setlength{\rightskip}{0pt plus 5cm}Q\+String Type\+Qt\+Widget\+Plugin\+::name (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a01366_a6096b8d037187204e6efdb69bed527a0}


Return a name for the plugin. 

This Function has to return the name of the plugin. 

Implements \hyperlink{a00322_a2b351aa6ef0eb368bce735e243235958}{Base\+Interface}.



Definition at line 95 of file Type\+Qt\+Widget.\+hh.

\hypertarget{a01366_ac207dfa91f9af432462bd489bf2bec09}{\index{Type\+Qt\+Widget\+Plugin@{Type\+Qt\+Widget\+Plugin}!object\+Deleted@{object\+Deleted}}
\index{object\+Deleted@{object\+Deleted}!Type\+Qt\+Widget\+Plugin@{Type\+Qt\+Widget\+Plugin}}
\subsubsection[{object\+Deleted}]{\setlength{\rightskip}{0pt plus 5cm}void Type\+Qt\+Widget\+Plugin\+::object\+Deleted (
\begin{DoxyParamCaption}
\item[{int}]{\+\_\+id}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{a01366_ac207dfa91f9af432462bd489bf2bec09}


An object was deleted. 

This function is called by the core if an object gets deleted. It is called immediately before the object is removed from the scenegraph. So if this function is invoked, the object still exists. All plugins get informed via this slot.\textbackslash{}

After this function got called for all plugins, the object is removed from the scene with all nodes attached to it and all \hyperlink{a00953}{Per\+Object\+Data} attached to it.~\newline
 This slot will be executed on the main thread.


\begin{DoxyParams}{Parameters}
{\em \+\_\+id} & Id of the object that is deleted. \\
\hline
\end{DoxyParams}


Reimplemented from \hyperlink{a00778_a0ab70c4ae3c08f298ecefa58f0bb8b2f}{Load\+Save\+Interface}.



Definition at line 95 of file Type\+Qt\+Widget.\+cc.

\hypertarget{a01366_a3ea0ae14bcbccab7f5821be6cbbea054}{\index{Type\+Qt\+Widget\+Plugin@{Type\+Qt\+Widget\+Plugin}!slot\+Mouse\+Event@{slot\+Mouse\+Event}}
\index{slot\+Mouse\+Event@{slot\+Mouse\+Event}!Type\+Qt\+Widget\+Plugin@{Type\+Qt\+Widget\+Plugin}}
\subsubsection[{slot\+Mouse\+Event}]{\setlength{\rightskip}{0pt plus 5cm}void Type\+Qt\+Widget\+Plugin\+::slot\+Mouse\+Event (
\begin{DoxyParamCaption}
\item[{Q\+Mouse\+Event $\ast$}]{\+\_\+event}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{a01366_a3ea0ae14bcbccab7f5821be6cbbea054}


Mouse Event from main application ( Picking Mode ) 

This slot is called if a mouse event occurred in the Viewer This slot will only get called in picking\+Mode. Right button clicks will not be passed to the plugins as this is reserved for the context \hyperlink{a00802}{Menu}.


\begin{DoxyParams}{Parameters}
{\em \+\_\+event} & Mouse event \\
\hline
\end{DoxyParams}


Reimplemented from \hyperlink{a00860_ad998de7699f7f6ea0e60de3ba5a5503d}{Mouse\+Interface}.



Definition at line 84 of file Type\+Qt\+Widget.\+cc.

\hypertarget{a01366_a01d6038d83d0dd327812ff61e060e7d2}{\index{Type\+Qt\+Widget\+Plugin@{Type\+Qt\+Widget\+Plugin}!supported\+Type@{supported\+Type}}
\index{supported\+Type@{supported\+Type}!Type\+Qt\+Widget\+Plugin@{Type\+Qt\+Widget\+Plugin}}
\subsubsection[{supported\+Type}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Data\+Type} Type\+Qt\+Widget\+Plugin\+::supported\+Type (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a01366_a01d6038d83d0dd327812ff61e060e7d2}


Return your supported object type( e.\+g. D\+A\+T\+A\+\_\+\+T\+R\+I\+A\+N\+G\+L\+E\+\_\+\+M\+E\+S\+H ) 

The function is used from add\+Empty in the core to check if your plugin can create an object of a given data\+Type. If so, your add\+Empty function will be invoked to create it. 

Implements \hyperlink{a01357_a05736f72d3220fbd4152e902b0fa7756}{Type\+Interface}.



Definition at line 107 of file Type\+Qt\+Widget.\+hh.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Plugin\+Collection-\/\+Type\+Plugins/\+Plugin-\/\+Type\+Qt\+Widget/Type\+Qt\+Widget.\+hh\item 
Plugin\+Collection-\/\+Type\+Plugins/\+Plugin-\/\+Type\+Qt\+Widget/Type\+Qt\+Widget.\+cc\end{DoxyCompactItemize}
