\section{TNPRForm Class Reference}
\label{classTNPRForm}\index{TNPRForm@{TNPRForm}}
MDI-Child for the NPR-Raycaster. 


{\tt \#include $<$MDINPR.h$>$}

\subsection*{Private Methods}
\begin{CompactItemize}
\item 
\index{PaintGL@{PaintGL}!TNPRForm@{TNPRForm}}\index{TNPRForm@{TNPRForm}!PaintGL@{PaintGL}}
void \_\-\_\-fastcall {\bf Paint\-GL} ()\label{classTNPRForm_TNPRFormc0}

\begin{CompactList}\small\item\em Paint\-GL is redrawing the precalculated view in the Open\-GL-Window - if the window size changes, Prepare\-GLWindow has to be called first to calculate the new aspect ratio.\item\end{CompactList}\item 
void \_\-\_\-fastcall {\bf Prepare\-GLWindow} ()
\begin{CompactList}\small\item\em Aspect ratio and Position of the GLWindow within the client area of the window are recalculated in Prepare\-GLWindow, this is necessary whenever the window was resized.\item\end{CompactList}\item 
void \_\-\_\-fastcall {\bf Ray\-Cast} ()
\begin{CompactList}\small\item\em Ray\-Cast has to be called after one or more of the raycaster parameters have been changed.\item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
MDI-Child for the NPR-Raycaster.

The Non-Photorealistic Raycaster tries to emphasize object contours by viewing gradient values rather than data values. The gradient values are multiplied by view-dependent intensities that result from the viewing vector multiplied by the gradient vector. 



Definition at line 32 of file MDINPR.h.

\subsection{Member Function Documentation}
\index{TNPRForm@{TNPRForm}!PrepareGLWindow@{PrepareGLWindow}}
\index{PrepareGLWindow@{PrepareGLWindow}!TNPRForm@{TNPRForm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void \_\-\_\-fastcall TNPRForm::Prepare\-GLWindow ()\hspace{0.3cm}{\tt  [private]}}\label{classTNPRForm_TNPRFormc1}


Aspect ratio and Position of the GLWindow within the client area of the window are recalculated in Prepare\-GLWindow, this is necessary whenever the window was resized.

An additional call to Paint\-GL is neccessary to redraw the changes. 

Definition at line 150 of file MDINPR.cpp.

Referenced by Paint\-GL().\index{TNPRForm@{TNPRForm}!RayCast@{RayCast}}
\index{RayCast@{RayCast}!TNPRForm@{TNPRForm}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void \_\-\_\-fastcall TNPRForm::Ray\-Cast ()\hspace{0.3cm}{\tt  [private]}}\label{classTNPRForm_TNPRFormc2}


Ray\-Cast has to be called after one or more of the raycaster parameters have been changed.

The raycaster will reset all values and recalculate the whole viewing array again. An additional call to Paint\-GL is neccessary to redraw the changes. 

Definition at line 230 of file MDINPR.cpp.

References rgb::b, rgb::g, rgb::r, vertex::x, vertex::y, and vertex::z.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
MDINPR.h\item 
MDINPR.cpp\end{CompactItemize}
