\hypertarget{a01299}{\section{Texture\+Math Class Reference}
\label{a01299}\index{Texture\+Math@{Texture\+Math}}
}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{a01299_a6769ba43620cca51342057ab28f0b8e8}{Texture\+Math} (const bool \+\_\+abs, const bool \+\_\+clamp, const double \+\_\+clamp\+Min, const double \+\_\+clamp\+Max, const bool \+\_\+repeat, const double \+\_\+min\+Repeat, const double \+\_\+max\+Repeat, const bool \+\_\+center, const bool \+\_\+scale, const double \+\_\+minimal\+Input, const double \+\_\+maximal\+Input)
\item 
\hyperlink{a01299_a511ad3e562d5828c7880a308781d9578}{Texture\+Math} (const \hyperlink{a01276}{Tex\+Parameters} \&\+\_\+parameters, const double \+\_\+minimal\+Input, const double \+\_\+maximal\+Input)
\begin{DoxyCompactList}\small\item\em Convenience constructor. \end{DoxyCompactList}\item 
double \hyperlink{a01299_a99013370412060a189cadb6caff292be}{transform} (const double \+\_\+input) const 
\begin{DoxyCompactList}\small\item\em Modify given values based on the specified parameters given to the constructor. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01299_a14e7ada7ffa8d6e7bc883e32d78bca5b}{bool {\bfseries abs\+\_\+}}\label{a01299_a14e7ada7ffa8d6e7bc883e32d78bca5b}

\item 
\hypertarget{a01299_ad58603e1ddab4bad068f4da384564db9}{bool {\bfseries clamp\+\_\+}}\label{a01299_ad58603e1ddab4bad068f4da384564db9}

\item 
\hypertarget{a01299_a6fb1eb4d4b7aa648b1e3a7f88e1bedcd}{double {\bfseries clamp\+Min\+\_\+}}\label{a01299_a6fb1eb4d4b7aa648b1e3a7f88e1bedcd}

\item 
\hypertarget{a01299_aa5242691a775b7ec9099f2361e9720da}{double {\bfseries clamp\+Max\+\_\+}}\label{a01299_aa5242691a775b7ec9099f2361e9720da}

\item 
\hypertarget{a01299_aa83a61d44f6dcf06f2aaa6fe049a2d2e}{bool {\bfseries repeat\+\_\+}}\label{a01299_aa83a61d44f6dcf06f2aaa6fe049a2d2e}

\item 
\hypertarget{a01299_afa5495b2a9e701141a008b40cfcc0a84}{double {\bfseries repeat\+Min\+\_\+}}\label{a01299_afa5495b2a9e701141a008b40cfcc0a84}

\item 
\hypertarget{a01299_aa0d09dcdffcd933db7e6b8c1f7b3719f}{double {\bfseries repeat\+Max\+\_\+}}\label{a01299_aa0d09dcdffcd933db7e6b8c1f7b3719f}

\item 
\hypertarget{a01299_ad7b75935c71f12fb5e74b6dacee3bc9f}{bool {\bfseries center\+\_\+}}\label{a01299_ad7b75935c71f12fb5e74b6dacee3bc9f}

\item 
\hypertarget{a01299_a2af39fd3b1c63da42deaf80f4d038b81}{bool {\bfseries scale\+\_\+}}\label{a01299_a2af39fd3b1c63da42deaf80f4d038b81}

\item 
\hypertarget{a01299_a0189f9a86050d5695bf86f2f6eb784db}{double {\bfseries min\+Input\+\_\+}}\label{a01299_a0189f9a86050d5695bf86f2f6eb784db}

\item 
\hypertarget{a01299_a8836a18936c7a54c2983f49415545294}{double {\bfseries max\+Input\+\_\+}}\label{a01299_a8836a18936c7a54c2983f49415545294}

\end{DoxyCompactItemize}


\subsection{Detailed Description}


Definition at line 55 of file Texture\+Math.\+hh.



\subsection{Constructor \& Destructor Documentation}
\hypertarget{a01299_a6769ba43620cca51342057ab28f0b8e8}{\index{Texture\+Math@{Texture\+Math}!Texture\+Math@{Texture\+Math}}
\index{Texture\+Math@{Texture\+Math}!Texture\+Math@{Texture\+Math}}
\subsubsection[{Texture\+Math}]{\setlength{\rightskip}{0pt plus 5cm}Texture\+Math\+::\+Texture\+Math (
\begin{DoxyParamCaption}
\item[{const bool}]{\+\_\+abs, }
\item[{const bool}]{\+\_\+clamp, }
\item[{const double}]{\+\_\+clamp\+Min, }
\item[{const double}]{\+\_\+clamp\+Max, }
\item[{const bool}]{\+\_\+repeat, }
\item[{const double}]{\+\_\+min\+Repeat, }
\item[{const double}]{\+\_\+max\+Repeat, }
\item[{const bool}]{\+\_\+center, }
\item[{const bool}]{\+\_\+scale, }
\item[{const double}]{\+\_\+minimal\+Input, }
\item[{const double}]{\+\_\+maximal\+Input}
\end{DoxyParamCaption}
)}}\label{a01299_a6769ba43620cca51342057ab28f0b8e8}
\textbackslash{} brief Initialize converter

The values are modified in the following way\+:~\newline
 First the absolute value of the property is taken if requested (\+\_\+abs)

Then this value is clamped against the given values (\+\_\+clamp,\+\_\+clamp\+Min,\+\_\+clamp\+Max)

If the texture should be repeated, the values are translated such that the minimum is at min\+\_\+val(0.\+0 by default) and than scaled such that the maximum is at max\+\_\+val. This data is than passed to the rendering (\+\_\+repeat,\+\_\+min\+Repeat,\+\_\+max\+Repeat)

If the texture should not be repeated you could choose to center the data around 0.\+5. The negative values are than mapped to 0..0.\+5 and the positive values to 0.\+5..1 (\+\_\+center)

Otherwise, the values are mapped directly to 0..1. You can also disable that final scaling with (\+\_\+scale)


\begin{DoxyParams}{Parameters}
{\em \+\_\+abs} & Take absolute value? \\
\hline
{\em \+\_\+clamp} & Clamp values? \\
\hline
{\em \+\_\+clamp\+Min} & Minimal clamping value \\
\hline
{\em \+\_\+clamp\+Max} & Maximal Clamping value \\
\hline
{\em \+\_\+repeat} & Repeat \hyperlink{a01281}{Texture}? \\
\hline
{\em \+\_\+min\+Repeat} & Minimal value for repeat \\
\hline
{\em \+\_\+max\+Repeat} & Maximal value for repeat \\
\hline
{\em \+\_\+center} & Center values? \\
\hline
{\em \+\_\+scale} & Scale values? \\
\hline
{\em \+\_\+minimal\+Input} & Minimal input value given \\
\hline
{\em \+\_\+maximal\+Input} & Maximal input value given \\
\hline
\end{DoxyParams}


Definition at line 54 of file Texture\+Math.\+cc.

\hypertarget{a01299_a511ad3e562d5828c7880a308781d9578}{\index{Texture\+Math@{Texture\+Math}!Texture\+Math@{Texture\+Math}}
\index{Texture\+Math@{Texture\+Math}!Texture\+Math@{Texture\+Math}}
\subsubsection[{Texture\+Math}]{\setlength{\rightskip}{0pt plus 5cm}Texture\+Math\+::\+Texture\+Math (
\begin{DoxyParamCaption}
\item[{const {\bf Tex\+Parameters} \&}]{\+\_\+parameters, }
\item[{const double}]{\+\_\+minimal\+Input, }
\item[{const double}]{\+\_\+maximal\+Input}
\end{DoxyParamCaption}
)}}\label{a01299_a511ad3e562d5828c7880a308781d9578}


Convenience constructor. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+parameters} & texture parameters \\
\hline
{\em \+\_\+minimal\+Input} & \\
\hline
{\em \+\_\+maximal\+Input} & \\
\hline
\end{DoxyParams}


Definition at line 80 of file Texture\+Math.\+cc.



\subsection{Member Function Documentation}
\hypertarget{a01299_a99013370412060a189cadb6caff292be}{\index{Texture\+Math@{Texture\+Math}!transform@{transform}}
\index{transform@{transform}!Texture\+Math@{Texture\+Math}}
\subsubsection[{transform}]{\setlength{\rightskip}{0pt plus 5cm}double Texture\+Math\+::transform (
\begin{DoxyParamCaption}
\item[{const double}]{\+\_\+input}
\end{DoxyParamCaption}
) const}}\label{a01299_a99013370412060a189cadb6caff292be}


Modify given values based on the specified parameters given to the constructor. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+input} & Input value \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Modified value 
\end{DoxyReturn}


Definition at line 95 of file Texture\+Math.\+cc.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Plugin-\/\+Texture\+Control/Texture\+Math.\+hh\item 
Plugin-\/\+Texture\+Control/Texture\+Math.\+cc\end{DoxyCompactItemize}
