\hypertarget{a01312}{\section{Toon\+Renderer Class Reference}
\label{a01312}\index{Toon\+Renderer@{Toon\+Renderer}}
}
Inheritance diagram for Toon\+Renderer\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a01312}
\end{center}
\end{figure}
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{a01453}{Viewer\+Resources}
\begin{DoxyCompactList}\small\item\em Collection of fbos for each viewport. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Slots}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01312_ab53e4b9b6f902ef08e40de91c0a8ce2b}{Q\+String {\bfseries version} ()}\label{a01312_ab53e4b9b6f902ef08e40de91c0a8ce2b}

\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
Q\+String \hyperlink{a01312_a6435954b9b8d3360f539c8e033d2452d}{name} ()
\begin{DoxyCompactList}\small\item\em Return a name for the plugin. \end{DoxyCompactList}\item 
Q\+String \hyperlink{a01312_a3a4e234ad6de13fadd4bc0af10eef36b}{description} ()
\begin{DoxyCompactList}\small\item\em Return a description of what the plugin is doing. \end{DoxyCompactList}\item 
Q\+String \hyperlink{a01312_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{a01312_a300acde915a6d0ccc084191daa58caaf}{options\+Action} ()
\begin{DoxyCompactList}\small\item\em Return options menu. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Slots}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01312_a9cd8d7faa6170bc2c7814294bd24c23c}{void {\bfseries initialize\+Plugin} ()}\label{a01312_a9cd8d7faa6170bc2c7814294bd24c23c}

\item 
\hypertarget{a01312_ae493aaad8671bd4fbb0ba0af2e36e7a2}{void {\bfseries exit} ()}\label{a01312_ae493aaad8671bd4fbb0ba0af2e36e7a2}

\item 
\hypertarget{a01312_a3d7de8b603b975cfde3db383f280a9a6}{void {\bfseries render} (\hyperlink{a00643}{A\+C\+G\+::\+G\+L\+State} $\ast$\+\_\+gl\+State, \hyperlink{a01451}{Viewer\+::\+Viewer\+Properties} \&\+\_\+properties)}\label{a01312_a3d7de8b603b975cfde3db383f280a9a6}

\item 
\hypertarget{a01312_a3176cbee023ec77645d24231c8adc7be}{Q\+String {\bfseries renderer\+Name} ()}\label{a01312_a3176cbee023ec77645d24231c8adc7be}

\item 
\hypertarget{a01312_a6a8f99fb399a8831781e507141cc8589}{void {\bfseries supported\+Draw\+Modes} (\hyperlink{a00509}{A\+C\+G\+::\+Scene\+Graph\+::\+Draw\+Modes\+::\+Draw\+Mode} \&\+\_\+mode)}\label{a01312_a6a8f99fb399a8831781e507141cc8589}

\item 
\hypertarget{a01312_a030fa2f153978fe5aa63d63b12315245}{Q\+String {\bfseries check\+Open\+G\+L} ()}\label{a01312_a030fa2f153978fe5aa63d63b12315245}

\item 
\hypertarget{a01312_a80d742989524880e058ce140552d4a7d}{void {\bfseries action\+Dialog} (bool)}\label{a01312_a80d742989524880e058ce140552d4a7d}

\item 
\hypertarget{a01312_ae286f2a86a0bf9b991e3b4781cab8e4b}{void {\bfseries palette\+Size\+Changed} (int)}\label{a01312_ae286f2a86a0bf9b991e3b4781cab8e4b}

\item 
\hypertarget{a01312_a84581f989434df48aa12dbd9b0f2b63f}{void {\bfseries outline\+Color\+Changed} (Q\+Color)}\label{a01312_a84581f989434df48aa12dbd9b0f2b63f}

\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01312_a37234c7f9b784464cc29b51832180b65}{void {\bfseries load\+Shader} ()}\label{a01312_a37234c7f9b784464cc29b51832180b65}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01312_a370dec7e1a7039f1f046fbd3e68011a9}{\hyperlink{a01020}{G\+L\+S\+L\+::\+Program} $\ast$ \hyperlink{a01312_a370dec7e1a7039f1f046fbd3e68011a9}{prog\+Outline\+\_\+}}\label{a01312_a370dec7e1a7039f1f046fbd3e68011a9}

\begin{DoxyCompactList}\small\item\em outline shader\+: multiply scene color with edge factor derived from edges in depth buffer \end{DoxyCompactList}\item 
\hypertarget{a01312_ae9015604b42eb6c403b1834fbf78be01}{float \hyperlink{a01312_ae9015604b42eb6c403b1834fbf78be01}{palette\+Size\+\_\+}}\label{a01312_ae9015604b42eb6c403b1834fbf78be01}

\begin{DoxyCompactList}\small\item\em size of cel shading palette \end{DoxyCompactList}\item 
\hypertarget{a01312_afd790990a4bdc5cc02d43811505719b0}{\hyperlink{a03336_a86c28120e8596ee7d03e58b7300f59bc}{A\+C\+G\+::\+Vec3f} \hyperlink{a01312_afd790990a4bdc5cc02d43811505719b0}{outline\+Col\+\_\+}}\label{a01312_afd790990a4bdc5cc02d43811505719b0}

\begin{DoxyCompactList}\small\item\em outline color \end{DoxyCompactList}\item 
std\+::map$<$ int, \hyperlink{a01453}{Viewer\+Resources} $>$ \hyperlink{a01312_ad844665d0da195a4e4754d4fd8e337c2}{viewer\+Res\+\_\+}
\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}


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



\subsection{Member Function Documentation}
\hypertarget{a01312_a3a4e234ad6de13fadd4bc0af10eef36b}{\index{Toon\+Renderer@{Toon\+Renderer}!description@{description}}
\index{description@{description}!Toon\+Renderer@{Toon\+Renderer}}
\subsubsection[{description}]{\setlength{\rightskip}{0pt plus 5cm}Q\+String Toon\+Renderer\+::description (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a01312_a3a4e234ad6de13fadd4bc0af10eef36b}


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 75 of file Toon\+Renderer.\+hh.

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


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 74 of file Toon\+Renderer.\+hh.

\hypertarget{a01312_a300acde915a6d0ccc084191daa58caaf}{\index{Toon\+Renderer@{Toon\+Renderer}!options\+Action@{options\+Action}}
\index{options\+Action@{options\+Action}!Toon\+Renderer@{Toon\+Renderer}}
\subsubsection[{options\+Action}]{\setlength{\rightskip}{0pt plus 5cm}Q\+Action $\ast$ Toon\+Renderer\+::options\+Action (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{a01312_a300acde915a6d0ccc084191daa58caaf}


Return options menu. 

If you want an options \hyperlink{a00802}{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{a01107_ade77e083ab999d29a3bec9d2b815aaea}{Render\+Interface}.



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

\hypertarget{a01312_a264a9655b7ae7280784eeb166ab49758}{\index{Toon\+Renderer@{Toon\+Renderer}!render\+Objects\+Info@{render\+Objects\+Info}}
\index{render\+Objects\+Info@{render\+Objects\+Info}!Toon\+Renderer@{Toon\+Renderer}}
\subsubsection[{render\+Objects\+Info}]{\setlength{\rightskip}{0pt plus 5cm}Q\+String Toon\+Renderer\+::render\+Objects\+Info (
\begin{DoxyParamCaption}
\item[{bool}]{\+\_\+output\+Shader\+Info}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{a01312_a264a9655b7ae7280784eeb166ab49758}


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{a00738_ac395090b05b1d750c8240b55b0ddf5cc}{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{a01107_aeb8df2a3aeee771a5e3a3616796d9cab}{Render\+Interface}.



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



\subsection{Member Data Documentation}
\hypertarget{a01312_ad844665d0da195a4e4754d4fd8e337c2}{\index{Toon\+Renderer@{Toon\+Renderer}!viewer\+Res\+\_\+@{viewer\+Res\+\_\+}}
\index{viewer\+Res\+\_\+@{viewer\+Res\+\_\+}!Toon\+Renderer@{Toon\+Renderer}}
\subsubsection[{viewer\+Res\+\_\+}]{\setlength{\rightskip}{0pt plus 5cm}std\+::map$<$int, {\bf Viewer\+Resources}$>$ Toon\+Renderer\+::viewer\+Res\+\_\+\hspace{0.3cm}{\ttfamily [private]}}}\label{a01312_ad844665d0da195a4e4754d4fd8e337c2}
Stores fbo resources for each viewport. Mapping\+: viewer\+I\+D -\/$>$ \hyperlink{a01453}{Viewer\+Resources} 

Definition at line 129 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{a03198}{Toon\+Renderer\+\_\+qt.\+cc}\end{DoxyCompactItemize}
