\section{TLine Class Reference}
\label{classTLine}\index{TLine@{TLine}}
Represents one line of the transfer function. 


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

\subsection*{Public Methods}
\begin{CompactItemize}
\item 
\index{TLine@{TLine}!TLine@{TLine}}\index{TLine@{TLine}!TLine@{TLine}}
{\bf TLine} ({\bf TLine\-Point} s, {\bf TLine\-Point} e, {\bf THistogram} $\ast$h, int pd, int name)\label{classTLine_TLinea0}

\begin{CompactList}\small\item\em Constructor.\item\end{CompactList}\item 
\index{TLine@{TLine}!TLine@{TLine}}\index{TLine@{TLine}!TLine@{TLine}}
{\bf TLine} (TLine \&l)\label{classTLine_TLinea1}

\begin{CompactList}\small\item\em Constructor.\item\end{CompactList}\item 
\index{TLine@{TLine}!TLine@{TLine}}\index{TLine@{TLine}!TLine@{TLine}}
{\bf TLine} (const TLine \&l)\label{classTLine_TLinea2}

\begin{CompactList}\small\item\em Constructor.\item\end{CompactList}\item 
\index{operator=@{operator=}!TLine@{TLine}}\index{TLine@{TLine}!operator=@{operator=}}
const TLine \& {\bf operator=} (const TLine \&l)\label{classTLine_TLinea4}

\begin{CompactList}\small\item\em Asignment Operator.\item\end{CompactList}\item 
\index{getStartX@{getStartX}!TLine@{TLine}}\index{TLine@{TLine}!getStartX@{getStartX}}
int \_\-\_\-fastcall {\bf get\-Start\-X} (TPaint\-Box $\ast$pb)\label{classTLine_TLinea5}

\begin{CompactList}\small\item\em Returns the start points X in TPaint\-Box coordinates.\item\end{CompactList}\item 
\index{getStartY@{getStartY}!TLine@{TLine}}\index{TLine@{TLine}!getStartY@{getStartY}}
int \_\-\_\-fastcall {\bf get\-Start\-Y} (TPaint\-Box $\ast$pb)\label{classTLine_TLinea6}

\begin{CompactList}\small\item\em Returns the start points Y in TPaint\-Box coordinates.\item\end{CompactList}\item 
\index{getEndX@{getEndX}!TLine@{TLine}}\index{TLine@{TLine}!getEndX@{getEndX}}
int \_\-\_\-fastcall {\bf get\-End\-X} (TPaint\-Box $\ast$pb)\label{classTLine_TLinea7}

\begin{CompactList}\small\item\em Returns the end points X in TPaint\-Box coordinates.\item\end{CompactList}\item 
\index{getEndY@{getEndY}!TLine@{TLine}}\index{TLine@{TLine}!getEndY@{getEndY}}
int \_\-\_\-fastcall {\bf get\-End\-Y} (TPaint\-Box $\ast$pb)\label{classTLine_TLinea8}

\begin{CompactList}\small\item\em Returns the end points Y in TPaint\-Box coordinates.\item\end{CompactList}\item 
\index{getSlope@{getSlope}!TLine@{TLine}}\index{TLine@{TLine}!getSlope@{getSlope}}
float \_\-\_\-fastcall {\bf get\-Slope} (TPaint\-Box $\ast$pb)\label{classTLine_TLinea11}

\begin{CompactList}\small\item\em Get the line slope in TPaint\-Box coordinates.\item\end{CompactList}\item 
\index{highSlope@{highSlope}!TLine@{TLine}}\index{TLine@{TLine}!highSlope@{highSlope}}
bool \_\-\_\-fastcall {\bf high\-Slope} (TPaint\-Box $\ast$pb)\label{classTLine_TLinea12}

\begin{CompactList}\small\item\em Is slope in TPaint\-Box coordinates greater than 1.0 .\item\end{CompactList}\item 
\index{isNear@{isNear}!TLine@{TLine}}\index{TLine@{TLine}!isNear@{isNear}}
bool \_\-\_\-fastcall {\bf is\-Near} (TPaint\-Box $\ast$pb, int x, int y)\label{classTLine_TLinea13}

\begin{CompactList}\small\item\em Returns true if the distance to the point (x,y) is smaler than DEF\_\-DIST.\item\end{CompactList}\item 
\index{drawTo@{drawTo}!TLine@{TLine}}\index{TLine@{TLine}!drawTo@{drawTo}}
void \_\-\_\-fastcall {\bf draw\-To} (TPaint\-Box $\ast$pb)\label{classTLine_TLinea15}

\begin{CompactList}\small\item\em Draw the line to the TPaint\-Box pb.\item\end{CompactList}\end{CompactItemize}
\subsection*{Public Attributes}
\begin{CompactItemize}
\item 
\index{Start@{Start}!TLine@{TLine}}\index{TLine@{TLine}!Start@{Start}}
\_\-\_\-property {\bf TLine\-Point} {\bf Start} = \{ read={\bf \_\-start}, write={\bf \_\-start} \}\label{classTLine_TLinem0}

\begin{CompactList}\small\item\em The start point.\item\end{CompactList}\item 
\index{End@{End}!TLine@{TLine}}\index{TLine@{TLine}!End@{End}}
\_\-\_\-property {\bf TLine\-Point} {\bf End} = \{ read={\bf \_\-end}, write={\bf \_\-end} \}\label{classTLine_TLinem1}

\begin{CompactList}\small\item\em The end point.\item\end{CompactList}\item 
\index{Selected@{Selected}!TLine@{TLine}}\index{TLine@{TLine}!Selected@{Selected}}
\_\-\_\-property bool {\bf Selected} = \{ read={\bf \_\-selected}, write={\bf \_\-selected} \}\label{classTLine_TLinem2}

\begin{CompactList}\small\item\em Is the {\bf line} selected.\item\end{CompactList}\item 
\index{Name@{Name}!TLine@{TLine}}\index{TLine@{TLine}!Name@{Name}}
\_\-\_\-property int {\bf Name} = \{ read={\bf \_\-name}, write={\bf \_\-name} \}\label{classTLine_TLinem3}

\begin{CompactList}\small\item\em The index in the Name list.\item\end{CompactList}\end{CompactItemize}
\subsection*{Private Methods}
\begin{CompactItemize}
\item 
\index{_drawMarker@{\_\-drawMarker}!TLine@{TLine}}\index{TLine@{TLine}!_drawMarker@{\_\-drawMarker}}
void \_\-\_\-fastcall {\bf \_\-draw\-Marker} (TCanvas $\ast$c, TColor col, int x, int y, int width)\label{classTLine_TLinec0}

\begin{CompactList}\small\item\em Draws a marker, which should show that the line (or point) is selected.\item\end{CompactList}\item 
\index{_drawCross@{\_\-drawCross}!TLine@{TLine}}\index{TLine@{TLine}!_drawCross@{\_\-drawCross}}
void \_\-\_\-fastcall {\bf \_\-draw\-Cross} (TCanvas $\ast$c, TColor col, int x, int y)\label{classTLine_TLinec1}

\begin{CompactList}\small\item\em Draws a endpoint of an unselected line.\item\end{CompactList}\end{CompactItemize}
\subsection*{Private Attributes}
\begin{CompactItemize}
\item 
\index{_start@{\_\-start}!TLine@{TLine}}\index{TLine@{TLine}!_start@{\_\-start}}
{\bf TLine\-Point} {\bf \_\-start}\label{classTLine_TLineo0}

\begin{CompactList}\small\item\em The start point.\item\end{CompactList}\item 
\index{_end@{\_\-end}!TLine@{TLine}}\index{TLine@{TLine}!_end@{\_\-end}}
{\bf TLine\-Point} {\bf \_\-end}\label{classTLine_TLineo1}

\begin{CompactList}\small\item\em The end point.\item\end{CompactList}\item 
\index{_selected@{\_\-selected}!TLine@{TLine}}\index{TLine@{TLine}!_selected@{\_\-selected}}
bool {\bf \_\-selected}\label{classTLine_TLineo2}

\begin{CompactList}\small\item\em Is the {\bf line} selected.\item\end{CompactList}\item 
int {\bf \_\-name}
\begin{CompactList}\small\item\em Index in the name list.\item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Represents one line of the transfer function.

The class has to a start- and an endpoint. \begin{Desc}
\item[{\bf Todo: }]\par
 Add a rendering class for the Two Level Ray Caster. \end{Desc}
 



Definition at line 163 of file transfer.h.

\subsection{Member Data Documentation}
\index{TLine@{TLine}!_name@{\_\-name}}
\index{_name@{\_\-name}!TLine@{TLine}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int TLine::\_\-name\hspace{0.3cm}{\tt  [private]}}\label{classTLine_TLineo3}


Index in the name list.

The name list begins with 0! 

Definition at line 183 of file transfer.h.

Referenced by operator=(), and TLine().

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