\section{TAverage\-Form Class Reference}
\label{classTAverageForm}\index{TAverageForm@{TAverageForm}}
MDI-Child for the Average-Raycaster. 


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

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

\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 Average-Raycaster.

This Raycaster is Averaging the data value throughout the volume. Since there is no possibility of an early ray termination, it is significantly slower than the first hit or even the transparency  views. Detail level can be modified to adjust the step length of the raycaster. Since the average  values are not aliasing a lot, the additional effect of trilinear filtering is limited.  The resulting image looks much like an x-ray scan, with the white parts reflecting areas of higher  overall density (bones) and the dark grey parts tissue of lower density (skin). 



Definition at line 34 of file MDIAverage.h.

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


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 129 of file MDIAverage.cpp.

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


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 209 of file MDIAverage.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 
MDIAverage.h\item 
MDIAverage.cpp\end{CompactItemize}
