\hypertarget{classTextureData}{}\section{Texture\+Data Class Reference}
\label{classTextureData}\index{Texture\+Data@{Texture\+Data}}
Inheritance diagram for Texture\+Data\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classTextureData}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classTextureData_a3ddb180b141d41ffdc5ebd73df3c6c10}\label{classTextureData_a3ddb180b141d41ffdc5ebd73df3c6c10}} 
\hyperlink{classTextureData_a3ddb180b141d41ffdc5ebd73df3c6c10}{Texture\+Data} ()
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classTextureData_ab5ba8c4b65adf5f919450fbd8374001e}\label{classTextureData_ab5ba8c4b65adf5f919450fbd8374001e}} 
\hyperlink{classTextureData_ab5ba8c4b65adf5f919450fbd8374001e}{$\sim$\+Texture\+Data} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
virtual \hyperlink{classPerObjectData}{Per\+Object\+Data} $\ast$ \hyperlink{classTextureData_a7dc89c65832fef870f1d4b5581f20afa}{copy\+Per\+Object\+Data} ()
\begin{DoxyCompactList}\small\item\em Copy Function. \end{DoxyCompactList}\item 
bool \hyperlink{classTextureData_ac1c2193b143462da8a87af07f927e37d}{texture\+Exists} (Q\+String \+\_\+texture\+Name)
\begin{DoxyCompactList}\small\item\em Check if a texture exists. \end{DoxyCompactList}\item 
bool \hyperlink{classTextureData_a2483f9a8a9e3dabc5896f86098477f93}{is\+Enabled} (Q\+String \+\_\+texture\+Name)
\begin{DoxyCompactList}\small\item\em Check if a texture is enabled. \end{DoxyCompactList}\item 
bool \hyperlink{classTextureData_aeada567ee30b99a91573390051a27cca}{enable\+Texture} (Q\+String \+\_\+texture\+Name, bool \+\_\+exclusive=false)
\begin{DoxyCompactList}\small\item\em Enable a given texture. \end{DoxyCompactList}\item 
void \hyperlink{classTextureData_acd1c41fb723fb40c65be7f35da946d7d}{disable\+Texture} (Q\+String \+\_\+texture\+Name)
\begin{DoxyCompactList}\small\item\em Disable a given texture. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classTextureData_a688eba25042af4855ef1af77cc5971b1}\label{classTextureData_a688eba25042af4855ef1af77cc5971b1}} 
int \hyperlink{classTextureData_a688eba25042af4855ef1af77cc5971b1}{add\+Texture} (Q\+String \+\_\+texture\+Name, uint \+\_\+dimension, G\+Luint \+\_\+gl\+Name)
\begin{DoxyCompactList}\small\item\em Add a \hyperlink{classTexture}{Texture} without file backing. \end{DoxyCompactList}\item 
int \hyperlink{classTextureData_aac13701a4c33360c9c63f4404b333710}{add\+Texture} (Q\+String \+\_\+texture\+Name, Q\+String \+\_\+filename, uint \+\_\+dimension, G\+Luint \+\_\+gl\+Name)
\begin{DoxyCompactList}\small\item\em Add a \hyperlink{classTexture}{Texture}. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classTextureData_a372315f14df4287ec10e1db3a8b4abc8}\label{classTextureData_a372315f14df4287ec10e1db3a8b4abc8}} 
int \hyperlink{classTextureData_a372315f14df4287ec10e1db3a8b4abc8}{add\+Texture} (\hyperlink{classTexture}{Texture} \+\_\+texture, G\+Luint \+\_\+gl\+Name)
\begin{DoxyCompactList}\small\item\em Add a \hyperlink{classTexture}{Texture} ( Based on an existing specification ) \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classTextureData_ac3b456146d565ca8399a1e94b17a45bd}\label{classTextureData_ac3b456146d565ca8399a1e94b17a45bd}} 
bool \hyperlink{classTextureData_ac3b456146d565ca8399a1e94b17a45bd}{add\+Multi\+Texture} (Q\+String \+\_\+texture\+Name)
\begin{DoxyCompactList}\small\item\em Adds a new multi\+Texture ( This texture will only contain a list of enabled textures for multitexturing ) \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classTextureData_a8b87da5093eca82044ccc257a55ffa28}\label{classTextureData_a8b87da5093eca82044ccc257a55ffa28}} 
bool \hyperlink{classTextureData_a8b87da5093eca82044ccc257a55ffa28}{set\+Image} (Q\+String \+\_\+texture\+Name, int \+\_\+id)
\begin{DoxyCompactList}\small\item\em Stores the given image in the texture information. \end{DoxyCompactList}\item 
\hyperlink{classTexture}{Texture} \& \hyperlink{classTextureData_a2a9d3602a40b81b11a455905a0eb637a}{texture} (Q\+String \+\_\+texture\+Name)
\begin{DoxyCompactList}\small\item\em Get the texture object. \end{DoxyCompactList}\item 
std\+::vector$<$ \hyperlink{classTexture}{Texture} $>$ \& \hyperlink{classTextureData_a53185dd83b36743c694c70e08814adb0}{textures} ()
\begin{DoxyCompactList}\small\item\em Get reference to the texture vector. \end{DoxyCompactList}\item 
std\+::map$<$ int, G\+Luint $>$ $\ast$ \hyperlink{classTextureData_aa0f7ee0f32c058d8c6717a670c434529}{texture\+Map} ()
\begin{DoxyCompactList}\small\item\em Get pointer to the texture\+Map. \end{DoxyCompactList}\item 
std\+::map$<$ int, std\+::string $>$ $\ast$ \hyperlink{classTextureData_a3985f082d83952cb1ec6ffc55aad3981}{property\+Map} ()
\begin{DoxyCompactList}\small\item\em Get pointer to the property\+Map. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{classTextureData_abb35b79674eaef3564fe61d0f0a0c25b}{get\+Texture\+Index} (Q\+String \+\_\+texture\+Name)
\begin{DoxyCompactList}\small\item\em Get the index of a given texture. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classTextureData_ad93c174cde75ff792d6cc6c7698304d1}\label{classTextureData_ad93c174cde75ff792d6cc6c7698304d1}} 
std\+::map$<$ int, G\+Luint $>$ {\bfseries texture\+Map\+\_\+}
\item 
\mbox{\Hypertarget{classTextureData_a0d6675b69cfc0c28cb28d68e20f61bdc}\label{classTextureData_a0d6675b69cfc0c28cb28d68e20f61bdc}} 
std\+::map$<$ int, std\+::string $>$ {\bfseries property\+Map\+\_\+}
\item 
\mbox{\Hypertarget{classTextureData_acc9e8af841fd4777ba4be99a0cc4c943}\label{classTextureData_acc9e8af841fd4777ba4be99a0cc4c943}} 
int \hyperlink{classTextureData_acc9e8af841fd4777ba4be99a0cc4c943}{next\+Internal\+I\+D\+\_\+}
\begin{DoxyCompactList}\small\item\em internal id for the next texture \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classTextureData_affcd6829f25412e4d8fc4a2c4501f44b}\label{classTextureData_affcd6829f25412e4d8fc4a2c4501f44b}} 
std\+::vector$<$ \hyperlink{classTexture}{Texture} $>$ \hyperlink{classTextureData_affcd6829f25412e4d8fc4a2c4501f44b}{textures\+\_\+}
\begin{DoxyCompactList}\small\item\em vector containing all textures of an object \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classTextureData_a4ab7565a04d6a7e2d106dea1fffc35cd}\label{classTextureData_a4ab7565a04d6a7e2d106dea1fffc35cd}} 
\hyperlink{classTexture}{Texture} {\bfseries no\+Texture}
\end{DoxyCompactItemize}


\subsection{Detailed Description}


Definition at line 189 of file Texture\+Data.\+hh.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{classTextureData_aac13701a4c33360c9c63f4404b333710}\label{classTextureData_aac13701a4c33360c9c63f4404b333710}} 
\index{Texture\+Data@{Texture\+Data}!add\+Texture@{add\+Texture}}
\index{add\+Texture@{add\+Texture}!Texture\+Data@{Texture\+Data}}
\subsubsection{\texorpdfstring{add\+Texture()}{addTexture()}}
{\footnotesize\ttfamily int Texture\+Data\+::add\+Texture (\begin{DoxyParamCaption}\item[{Q\+String}]{\+\_\+texture\+Name,  }\item[{Q\+String}]{\+\_\+filename,  }\item[{uint}]{\+\_\+dimension,  }\item[{G\+Luint}]{\+\_\+gl\+Name }\end{DoxyParamCaption})}



Add a \hyperlink{classTexture}{Texture}. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Name} & name of the texture \\
\hline
{\em \+\_\+filename} & filename of the texture \\
\hline
{\em \+\_\+dimension} & dimension of the texture \\
\hline
{\em \+\_\+gl\+Name} & gl\+Name for the texture \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
persistent id of the texture 
\end{DoxyReturn}


Definition at line 158 of file Texture\+Data.\+cc.

\mbox{\Hypertarget{classTextureData_a7dc89c65832fef870f1d4b5581f20afa}\label{classTextureData_a7dc89c65832fef870f1d4b5581f20afa}} 
\index{Texture\+Data@{Texture\+Data}!copy\+Per\+Object\+Data@{copy\+Per\+Object\+Data}}
\index{copy\+Per\+Object\+Data@{copy\+Per\+Object\+Data}!Texture\+Data@{Texture\+Data}}
\subsubsection{\texorpdfstring{copy\+Per\+Object\+Data()}{copyPerObjectData()}}
{\footnotesize\ttfamily virtual \hyperlink{classPerObjectData}{Per\+Object\+Data}$\ast$ Texture\+Data\+::copy\+Per\+Object\+Data (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}



Copy Function. 

You have to reimplement this function to allow the core to create a copies of your Object. By default it will return 0;

The function has to create a deep copy of the object, as it will also be used to create backups. If you use pointer inside your class, remember to not copy the pointer only but also the data! 

Reimplemented from \hyperlink{classPerObjectData_a0ff13ad2e3fc9df25f6de96a1cd384e0}{Per\+Object\+Data}.



Definition at line 200 of file Texture\+Data.\+hh.

\mbox{\Hypertarget{classTextureData_acd1c41fb723fb40c65be7f35da946d7d}\label{classTextureData_acd1c41fb723fb40c65be7f35da946d7d}} 
\index{Texture\+Data@{Texture\+Data}!disable\+Texture@{disable\+Texture}}
\index{disable\+Texture@{disable\+Texture}!Texture\+Data@{Texture\+Data}}
\subsubsection{\texorpdfstring{disable\+Texture()}{disableTexture()}}
{\footnotesize\ttfamily void Texture\+Data\+::disable\+Texture (\begin{DoxyParamCaption}\item[{Q\+String}]{\+\_\+texture\+Name }\end{DoxyParamCaption})}



Disable a given texture. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Name} & name of the texture \\
\hline
\end{DoxyParams}


Definition at line 140 of file Texture\+Data.\+cc.

\mbox{\Hypertarget{classTextureData_aeada567ee30b99a91573390051a27cca}\label{classTextureData_aeada567ee30b99a91573390051a27cca}} 
\index{Texture\+Data@{Texture\+Data}!enable\+Texture@{enable\+Texture}}
\index{enable\+Texture@{enable\+Texture}!Texture\+Data@{Texture\+Data}}
\subsubsection{\texorpdfstring{enable\+Texture()}{enableTexture()}}
{\footnotesize\ttfamily bool Texture\+Data\+::enable\+Texture (\begin{DoxyParamCaption}\item[{Q\+String}]{\+\_\+texture\+Name,  }\item[{bool}]{\+\_\+exclusive = {\ttfamily false} }\end{DoxyParamCaption})}



Enable a given texture. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Name} & name of the texture \\
\hline
{\em \+\_\+exclusive} & disable other textures? \\
\hline
\end{DoxyParams}


Definition at line 116 of file Texture\+Data.\+cc.

\mbox{\Hypertarget{classTextureData_abb35b79674eaef3564fe61d0f0a0c25b}\label{classTextureData_abb35b79674eaef3564fe61d0f0a0c25b}} 
\index{Texture\+Data@{Texture\+Data}!get\+Texture\+Index@{get\+Texture\+Index}}
\index{get\+Texture\+Index@{get\+Texture\+Index}!Texture\+Data@{Texture\+Data}}
\subsubsection{\texorpdfstring{get\+Texture\+Index()}{getTextureIndex()}}
{\footnotesize\ttfamily int Texture\+Data\+::get\+Texture\+Index (\begin{DoxyParamCaption}\item[{Q\+String}]{\+\_\+texture\+Name }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [private]}}



Get the index of a given texture. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Name} & name of the texture \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
index in texture vector or -\/1 if not found 
\end{DoxyReturn}


Definition at line 290 of file Texture\+Data.\+cc.

\mbox{\Hypertarget{classTextureData_a2483f9a8a9e3dabc5896f86098477f93}\label{classTextureData_a2483f9a8a9e3dabc5896f86098477f93}} 
\index{Texture\+Data@{Texture\+Data}!is\+Enabled@{is\+Enabled}}
\index{is\+Enabled@{is\+Enabled}!Texture\+Data@{Texture\+Data}}
\subsubsection{\texorpdfstring{is\+Enabled()}{isEnabled()}}
{\footnotesize\ttfamily bool Texture\+Data\+::is\+Enabled (\begin{DoxyParamCaption}\item[{Q\+String}]{\+\_\+texture\+Name }\end{DoxyParamCaption})}



Check if a texture is enabled. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Name} & name of the texture \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
returns wether the texture is enabled 
\end{DoxyReturn}


Definition at line 99 of file Texture\+Data.\+cc.

\mbox{\Hypertarget{classTextureData_a3985f082d83952cb1ec6ffc55aad3981}\label{classTextureData_a3985f082d83952cb1ec6ffc55aad3981}} 
\index{Texture\+Data@{Texture\+Data}!property\+Map@{property\+Map}}
\index{property\+Map@{property\+Map}!Texture\+Data@{Texture\+Data}}
\subsubsection{\texorpdfstring{property\+Map()}{propertyMap()}}
{\footnotesize\ttfamily std\+::map$<$ int, std\+::string $>$ $\ast$ Texture\+Data\+::property\+Map (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Get pointer to the property\+Map. 

This map is used to store the available Textures and map them to their corresponding properties.

\begin{DoxyReturn}{Returns}
property\+Map 
\end{DoxyReturn}


Definition at line 330 of file Texture\+Data.\+cc.

\mbox{\Hypertarget{classTextureData_a2a9d3602a40b81b11a455905a0eb637a}\label{classTextureData_a2a9d3602a40b81b11a455905a0eb637a}} 
\index{Texture\+Data@{Texture\+Data}!texture@{texture}}
\index{texture@{texture}!Texture\+Data@{Texture\+Data}}
\subsubsection{\texorpdfstring{texture()}{texture()}}
{\footnotesize\ttfamily \hyperlink{classTexture}{Texture} \& Texture\+Data\+::texture (\begin{DoxyParamCaption}\item[{Q\+String}]{\+\_\+texture\+Name }\end{DoxyParamCaption})}



Get the texture object. 

get texture object of a given texture


\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Name} & name of the texture \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
corresponding texture object 
\end{DoxyReturn}


Definition at line 271 of file Texture\+Data.\+cc.

\mbox{\Hypertarget{classTextureData_ac1c2193b143462da8a87af07f927e37d}\label{classTextureData_ac1c2193b143462da8a87af07f927e37d}} 
\index{Texture\+Data@{Texture\+Data}!texture\+Exists@{texture\+Exists}}
\index{texture\+Exists@{texture\+Exists}!Texture\+Data@{Texture\+Data}}
\subsubsection{\texorpdfstring{texture\+Exists()}{textureExists()}}
{\footnotesize\ttfamily bool Texture\+Data\+::texture\+Exists (\begin{DoxyParamCaption}\item[{Q\+String}]{\+\_\+texture\+Name }\end{DoxyParamCaption})}



Check if a texture exists. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Name} & name of the texture \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
returns wether the texture exists 
\end{DoxyReturn}


Definition at line 87 of file Texture\+Data.\+cc.

\mbox{\Hypertarget{classTextureData_aa0f7ee0f32c058d8c6717a670c434529}\label{classTextureData_aa0f7ee0f32c058d8c6717a670c434529}} 
\index{Texture\+Data@{Texture\+Data}!texture\+Map@{texture\+Map}}
\index{texture\+Map@{texture\+Map}!Texture\+Data@{Texture\+Data}}
\subsubsection{\texorpdfstring{texture\+Map()}{textureMap()}}
{\footnotesize\ttfamily std\+::map$<$ int, G\+Luint $>$ $\ast$ Texture\+Data\+::texture\+Map (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Get pointer to the texture\+Map. 

This map maps all available textures for the object which this class belongs to to their G\+Luint. The Mesh\+Node will use this map to activate one texture for each face.

\begin{DoxyReturn}{Returns}
texture\+Map 
\end{DoxyReturn}


Definition at line 320 of file Texture\+Data.\+cc.

\mbox{\Hypertarget{classTextureData_a53185dd83b36743c694c70e08814adb0}\label{classTextureData_a53185dd83b36743c694c70e08814adb0}} 
\index{Texture\+Data@{Texture\+Data}!textures@{textures}}
\index{textures@{textures}!Texture\+Data@{Texture\+Data}}
\subsubsection{\texorpdfstring{textures()}{textures()}}
{\footnotesize\ttfamily std\+::vector$<$ \hyperlink{classTexture}{Texture} $>$ \& Texture\+Data\+::textures (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Get reference to the texture vector. 

\begin{DoxyReturn}{Returns}
texture vector 
\end{DoxyReturn}


Definition at line 310 of file Texture\+Data.\+cc.



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