\hypertarget{a11172}{}\section{Toon\+Renderer Class Reference}
\label{a11172}\index{Toon\+Renderer@{Toon\+Renderer}}
Inheritance diagram for Toon\+Renderer\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a11172}
\end{center}
\end{figure}
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{a11176}{Viewer\+Resources}
\begin{DoxyCompactList}\small\item\em Collection of fbos for each viewport. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Slots}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a11172_ab53e4b9b6f902ef08e40de91c0a8ce2b}\label{a11172_ab53e4b9b6f902ef08e40de91c0a8ce2b}} 
Q\+String {\bfseries version} ()
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
Q\+String \hyperlink{a11172_a6435954b9b8d3360f539c8e033d2452d}{name} ()
\begin{DoxyCompactList}\small\item\em Return a name for the plugin. \end{DoxyCompactList}\item 
Q\+String \hyperlink{a11172_a3a4e234ad6de13fadd4bc0af10eef36b}{description} ()
\begin{DoxyCompactList}\small\item\em Return a description of what the plugin is doing. \end{DoxyCompactList}\item 
Q\+String \hyperlink{a11172_a264a9655b7ae7280784eeb166ab49758}{render\+Objects\+Info} (bool \+\_\+output\+Shader\+Info)
\begin{DoxyCompactList}\small\item\em Return a qstring of the current render objects. \end{DoxyCompactList}\item 
Q\+Action $\ast$ \hyperlink{a11172_a300acde915a6d0ccc084191daa58caaf}{options\+Action} ()
\begin{DoxyCompactList}\small\item\em Return options menu. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Slots}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a11172_a9cd8d7faa6170bc2c7814294bd24c23c}\label{a11172_a9cd8d7faa6170bc2c7814294bd24c23c}} 
void {\bfseries initialize\+Plugin} ()
\item 
\mbox{\Hypertarget{a11172_ae493aaad8671bd4fbb0ba0af2e36e7a2}\label{a11172_ae493aaad8671bd4fbb0ba0af2e36e7a2}} 
void {\bfseries exit} ()
\item 
\mbox{\Hypertarget{a11172_a3d7de8b603b975cfde3db383f280a9a6}\label{a11172_a3d7de8b603b975cfde3db383f280a9a6}} 
void {\bfseries render} (\hyperlink{a07452}{A\+C\+G\+::\+G\+L\+State} $\ast$\+\_\+gl\+State, \hyperlink{a07100}{Viewer\+::\+Viewer\+Properties} \&\+\_\+properties)
\item 
\mbox{\Hypertarget{a11172_a3176cbee023ec77645d24231c8adc7be}\label{a11172_a3176cbee023ec77645d24231c8adc7be}} 
Q\+String {\bfseries renderer\+Name} ()
\item 
\mbox{\Hypertarget{a11172_a6a8f99fb399a8831781e507141cc8589}\label{a11172_a6a8f99fb399a8831781e507141cc8589}} 
void {\bfseries supported\+Draw\+Modes} (\hyperlink{a07792}{A\+C\+G\+::\+Scene\+Graph\+::\+Draw\+Modes\+::\+Draw\+Mode} \&\+\_\+mode)
\item 
\mbox{\Hypertarget{a11172_a030fa2f153978fe5aa63d63b12315245}\label{a11172_a030fa2f153978fe5aa63d63b12315245}} 
Q\+String {\bfseries check\+Open\+GL} ()
\item 
\mbox{\Hypertarget{a11172_a80d742989524880e058ce140552d4a7d}\label{a11172_a80d742989524880e058ce140552d4a7d}} 
void {\bfseries action\+Dialog} (bool)
\item 
\mbox{\Hypertarget{a11172_ae286f2a86a0bf9b991e3b4781cab8e4b}\label{a11172_ae286f2a86a0bf9b991e3b4781cab8e4b}} 
void {\bfseries palette\+Size\+Changed} (int)
\item 
\mbox{\Hypertarget{a11172_a84581f989434df48aa12dbd9b0f2b63f}\label{a11172_a84581f989434df48aa12dbd9b0f2b63f}} 
void {\bfseries outline\+Color\+Changed} (Q\+Color)
\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a11172_a37234c7f9b784464cc29b51832180b65}\label{a11172_a37234c7f9b784464cc29b51832180b65}} 
void {\bfseries load\+Shader} ()
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a11172_a370dec7e1a7039f1f046fbd3e68011a9}\label{a11172_a370dec7e1a7039f1f046fbd3e68011a9}} 
\hyperlink{a08132}{G\+L\+S\+L\+::\+Program} $\ast$ \hyperlink{a11172_a370dec7e1a7039f1f046fbd3e68011a9}{prog\+Outline\+\_\+}
\begin{DoxyCompactList}\small\item\em outline shader\+: multiply scene color with edge factor derived from edges in depth buffer \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a11172_ae9015604b42eb6c403b1834fbf78be01}\label{a11172_ae9015604b42eb6c403b1834fbf78be01}} 
float \hyperlink{a11172_ae9015604b42eb6c403b1834fbf78be01}{palette\+Size\+\_\+}
\begin{DoxyCompactList}\small\item\em size of cel shading palette \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a11172_afd790990a4bdc5cc02d43811505719b0}\label{a11172_afd790990a4bdc5cc02d43811505719b0}} 
\hyperlink{a06176_a86c28120e8596ee7d03e58b7300f59bc}{A\+C\+G\+::\+Vec3f} \hyperlink{a11172_afd790990a4bdc5cc02d43811505719b0}{outline\+Col\+\_\+}
\begin{DoxyCompactList}\small\item\em outline color \end{DoxyCompactList}\item 
std\+::map$<$ int, \hyperlink{a11176}{Viewer\+Resources} $>$ \hyperlink{a11172_ad844665d0da195a4e4754d4fd8e337c2}{viewer\+Res\+\_\+}
\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}


Definition at line 54 of file Toon\+Renderer.\+hh.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a11172_a3a4e234ad6de13fadd4bc0af10eef36b}\label{a11172_a3a4e234ad6de13fadd4bc0af10eef36b}} 
\index{Toon\+Renderer@{Toon\+Renderer}!description@{description}}
\index{description@{description}!Toon\+Renderer@{Toon\+Renderer}}
\subsubsection{\texorpdfstring{description()}{description()}}
{\footnotesize\ttfamily Q\+String Toon\+Renderer\+::description (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Return a description of what the plugin is doing. 

This function has to return a basic description of the plugin 

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



Definition at line 67 of file Toon\+Renderer.\+hh.

\mbox{\Hypertarget{a11172_a6435954b9b8d3360f539c8e033d2452d}\label{a11172_a6435954b9b8d3360f539c8e033d2452d}} 
\index{Toon\+Renderer@{Toon\+Renderer}!name@{name}}
\index{name@{name}!Toon\+Renderer@{Toon\+Renderer}}
\subsubsection{\texorpdfstring{name()}{name()}}
{\footnotesize\ttfamily Q\+String Toon\+Renderer\+::name (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Return a name for the plugin. 

This Function has to return the name of the plugin. 

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



Definition at line 66 of file Toon\+Renderer.\+hh.

\mbox{\Hypertarget{a11172_a300acde915a6d0ccc084191daa58caaf}\label{a11172_a300acde915a6d0ccc084191daa58caaf}} 
\index{Toon\+Renderer@{Toon\+Renderer}!options\+Action@{options\+Action}}
\index{options\+Action@{options\+Action}!Toon\+Renderer@{Toon\+Renderer}}
\subsubsection{\texorpdfstring{options\+Action()}{optionsAction()}}
{\footnotesize\ttfamily Q\+Action $\ast$ Toon\+Renderer\+::options\+Action (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Return options menu. 

If you want an options \hyperlink{a10084}{Menu} or menu entry, you can return your action here. It will be shown on top of the renderer list in the options menu.

\begin{DoxyReturn}{Returns}
Action for a menu or menu entry 
\end{DoxyReturn}


Reimplemented from \hyperlink{a06972_ade77e083ab999d29a3bec9d2b815aaea}{Render\+Interface}.



Definition at line 295 of file Toon\+Renderer.\+cc.

\mbox{\Hypertarget{a11172_a264a9655b7ae7280784eeb166ab49758}\label{a11172_a264a9655b7ae7280784eeb166ab49758}} 
\index{Toon\+Renderer@{Toon\+Renderer}!render\+Objects\+Info@{render\+Objects\+Info}}
\index{render\+Objects\+Info@{render\+Objects\+Info}!Toon\+Renderer@{Toon\+Renderer}}
\subsubsection{\texorpdfstring{render\+Objects\+Info()}{renderObjectsInfo()}}
{\footnotesize\ttfamily Q\+String Toon\+Renderer\+::render\+Objects\+Info (\begin{DoxyParamCaption}\item[{bool}]{\+\_\+output\+Shader\+Info }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



Return a qstring of the current render objects. 

In this function your plugin should return a list of the render objects (possibly with additional information). It can be used for debugging purposes.

The I\+Renderer class already has a function called \hyperlink{a07468_ad6553af076266eaecb48b59dc968897e}{dump\+Current\+Render\+Objects\+To\+String()} which can be used to implement this function.


\begin{DoxyParams}{Parameters}
{\em \+\_\+output\+Shader\+Info} & Output shader code along with the render objects \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
string of render objects 
\end{DoxyReturn}


Reimplemented from \hyperlink{a06972_aeb8df2a3aeee771a5e3a3616796d9cab}{Render\+Interface}.



Definition at line 169 of file Toon\+Renderer.\+cc.



\subsection{Member Data Documentation}
\mbox{\Hypertarget{a11172_ad844665d0da195a4e4754d4fd8e337c2}\label{a11172_ad844665d0da195a4e4754d4fd8e337c2}} 
\index{Toon\+Renderer@{Toon\+Renderer}!viewer\+Res\+\_\+@{viewer\+Res\+\_\+}}
\index{viewer\+Res\+\_\+@{viewer\+Res\+\_\+}!Toon\+Renderer@{Toon\+Renderer}}
\subsubsection{\texorpdfstring{viewer\+Res\+\_\+}{viewerRes\_}}
{\footnotesize\ttfamily std\+::map$<$int, \hyperlink{a11176}{Viewer\+Resources}$>$ Toon\+Renderer\+::viewer\+Res\+\_\+\hspace{0.3cm}{\ttfamily [private]}}

Stores fbo resources for each viewport. Mapping\+: viewer\+ID -\/$>$ \hyperlink{a11176}{Viewer\+Resources} 

Definition at line 121 of file Toon\+Renderer.\+hh.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Plugin\+Collection-\/\+Renderers/\+Plugin-\/\+Render-\/\+Toon/Toon\+Renderer.\+hh\item 
Plugin\+Collection-\/\+Renderers/\+Plugin-\/\+Render-\/\+Toon/Toon\+Renderer.\+cc\item 
Plugin\+Collection-\/\+Renderers/\+Plugin-\/\+Render-\/\+Toon/\hyperlink{a04658}{Toon\+Renderer\+\_\+qt.\+cc}\end{DoxyCompactItemize}
