\hypertarget{classTextureMath}{}\section{Texture\+Math Class Reference}
\label{classTextureMath}\index{Texture\+Math@{Texture\+Math}}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classTextureMath_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{classTextureMath_a511ad3e562d5828c7880a308781d9578}{Texture\+Math} (const \hyperlink{classTexParameters}{Tex\+Parameters} \&\+\_\+parameters, const double \+\_\+minimal\+Input, const double \+\_\+maximal\+Input)
\begin{DoxyCompactList}\small\item\em Convenience constructor. \end{DoxyCompactList}\item 
double \hyperlink{classTextureMath_a18fe01055b7516de0548ca6a36ace91b}{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 
\mbox{\Hypertarget{classTextureMath_a14e7ada7ffa8d6e7bc883e32d78bca5b}\label{classTextureMath_a14e7ada7ffa8d6e7bc883e32d78bca5b}} 
bool {\bfseries abs\+\_\+}
\item 
\mbox{\Hypertarget{classTextureMath_ad58603e1ddab4bad068f4da384564db9}\label{classTextureMath_ad58603e1ddab4bad068f4da384564db9}} 
bool {\bfseries clamp\+\_\+}
\item 
\mbox{\Hypertarget{classTextureMath_a6fb1eb4d4b7aa648b1e3a7f88e1bedcd}\label{classTextureMath_a6fb1eb4d4b7aa648b1e3a7f88e1bedcd}} 
double {\bfseries clamp\+Min\+\_\+}
\item 
\mbox{\Hypertarget{classTextureMath_aa5242691a775b7ec9099f2361e9720da}\label{classTextureMath_aa5242691a775b7ec9099f2361e9720da}} 
double {\bfseries clamp\+Max\+\_\+}
\item 
\mbox{\Hypertarget{classTextureMath_aa83a61d44f6dcf06f2aaa6fe049a2d2e}\label{classTextureMath_aa83a61d44f6dcf06f2aaa6fe049a2d2e}} 
bool {\bfseries repeat\+\_\+}
\item 
\mbox{\Hypertarget{classTextureMath_afa5495b2a9e701141a008b40cfcc0a84}\label{classTextureMath_afa5495b2a9e701141a008b40cfcc0a84}} 
double {\bfseries repeat\+Min\+\_\+}
\item 
\mbox{\Hypertarget{classTextureMath_aa0d09dcdffcd933db7e6b8c1f7b3719f}\label{classTextureMath_aa0d09dcdffcd933db7e6b8c1f7b3719f}} 
double {\bfseries repeat\+Max\+\_\+}
\item 
\mbox{\Hypertarget{classTextureMath_ad7b75935c71f12fb5e74b6dacee3bc9f}\label{classTextureMath_ad7b75935c71f12fb5e74b6dacee3bc9f}} 
bool {\bfseries center\+\_\+}
\item 
\mbox{\Hypertarget{classTextureMath_a2af39fd3b1c63da42deaf80f4d038b81}\label{classTextureMath_a2af39fd3b1c63da42deaf80f4d038b81}} 
bool {\bfseries scale\+\_\+}
\item 
\mbox{\Hypertarget{classTextureMath_a0189f9a86050d5695bf86f2f6eb784db}\label{classTextureMath_a0189f9a86050d5695bf86f2f6eb784db}} 
double {\bfseries min\+Input\+\_\+}
\item 
\mbox{\Hypertarget{classTextureMath_a8836a18936c7a54c2983f49415545294}\label{classTextureMath_a8836a18936c7a54c2983f49415545294}} 
double {\bfseries max\+Input\+\_\+}
\end{DoxyCompactItemize}


\subsection{Detailed Description}


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



\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{classTextureMath_a6769ba43620cca51342057ab28f0b8e8}\label{classTextureMath_a6769ba43620cca51342057ab28f0b8e8}} 
\index{Texture\+Math@{Texture\+Math}!Texture\+Math@{Texture\+Math}}
\index{Texture\+Math@{Texture\+Math}!Texture\+Math@{Texture\+Math}}
\subsubsection{\texorpdfstring{Texture\+Math()}{TextureMath()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily 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})}

\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{classTexture}{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 48 of file Texture\+Math.\+cc.

\mbox{\Hypertarget{classTextureMath_a511ad3e562d5828c7880a308781d9578}\label{classTextureMath_a511ad3e562d5828c7880a308781d9578}} 
\index{Texture\+Math@{Texture\+Math}!Texture\+Math@{Texture\+Math}}
\index{Texture\+Math@{Texture\+Math}!Texture\+Math@{Texture\+Math}}
\subsubsection{\texorpdfstring{Texture\+Math()}{TextureMath()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily Texture\+Math\+::\+Texture\+Math (\begin{DoxyParamCaption}\item[{const \hyperlink{classTexParameters}{Tex\+Parameters} \&}]{\+\_\+parameters,  }\item[{const double}]{\+\_\+minimal\+Input,  }\item[{const double}]{\+\_\+maximal\+Input }\end{DoxyParamCaption})}



Convenience constructor. 


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


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



\subsection{Member Function Documentation}
\mbox{\Hypertarget{classTextureMath_a18fe01055b7516de0548ca6a36ace91b}\label{classTextureMath_a18fe01055b7516de0548ca6a36ace91b}} 
\index{Texture\+Math@{Texture\+Math}!transform@{transform}}
\index{transform@{transform}!Texture\+Math@{Texture\+Math}}
\subsubsection{\texorpdfstring{transform()}{transform()}}
{\footnotesize\ttfamily double Texture\+Math\+::transform (\begin{DoxyParamCaption}\item[{const double}]{\+\_\+input }\end{DoxyParamCaption}) const}



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 89 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}
