\hypertarget{a01298}{\section{Texture\+Interface Class Reference}
\label{a01298}\index{Texture\+Interface@{Texture\+Interface}}
}


Provide texture support for a plugin.  




{\ttfamily \#include $<$Open\+Flipper/\+Base\+Plugin/\+Texture\+Interface.\+hh$>$}

Inheritance diagram for Texture\+Interface\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=1.088435cm]{a01298}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
virtual void \hyperlink{a01298_a86b0f1f19e6aa3038e4698519d5f0009}{add\+Texture} (Q\+String \+\_\+name, Q\+String \+\_\+filename, uint \+\_\+dimension, int \+\_\+id)
\begin{DoxyCompactList}\small\item\em Emit this Signal if a texture has been added (Property Name,filename,Dimension) \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual void \hyperlink{a01298_ab0806792054ae243388c1be00c1348c6}{add\+Texture} (Q\+String \+\_\+name, Q\+String \+\_\+filename, uint \+\_\+dimension)
\begin{DoxyCompactList}\small\item\em Emit this Signal if a texture has been added (Property Name,filename,Dimension) \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_ac053bacba1f1d85de38a169b37f14686}{add\+Multi\+Texture} (Q\+String \+\_\+texture\+Group, Q\+String \+\_\+name, Q\+String \+\_\+filename, int \+\_\+id, int \&\+\_\+texture\+Id)
\begin{DoxyCompactList}\small\item\em Emit this Signal if you want to add a texture for a multitexturing mode. \end{DoxyCompactList}\item 
\hypertarget{a01298_a823da66c85a5d986addb783ef279cef0}{virtual void \hyperlink{a01298_a823da66c85a5d986addb783ef279cef0}{update\+Texture} (Q\+String \+\_\+texture\+Name, int \+\_\+identifier)}\label{a01298_a823da66c85a5d986addb783ef279cef0}

\begin{DoxyCompactList}\small\item\em Tell Plugins to update the given texture for the given identifier This signal can be called from any thread.~\newline
. \end{DoxyCompactList}\item 
\hypertarget{a01298_afe1b4dbd7b5c9bcb615734168796d0de}{virtual void \hyperlink{a01298_afe1b4dbd7b5c9bcb615734168796d0de}{update\+All\+Textures} ()}\label{a01298_afe1b4dbd7b5c9bcb615734168796d0de}

\begin{DoxyCompactList}\small\item\em Tell Plugins to update all textures. \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_a862d7c31117a668195f14a09ba8efaf8}{updated\+Textures} (Q\+String, int)
\begin{DoxyCompactList}\small\item\em emit this signal if you updated a texture \end{DoxyCompactList}\item 
\hypertarget{a01298_a3808114bad083444369c8c5924cd7512}{virtual void \hyperlink{a01298_a3808114bad083444369c8c5924cd7512}{switch\+Texture} (Q\+String \+\_\+texture\+Name, int \+\_\+id)}\label{a01298_a3808114bad083444369c8c5924cd7512}

\begin{DoxyCompactList}\small\item\em emit this signal if you want to switch the texture of a specific object This signal can be called from any thread.~\newline
\end{DoxyCompactList}\item 
\hypertarget{a01298_ab23285f4c419e5b4dfe6a87bfd3dd6cd}{virtual void \hyperlink{a01298_ab23285f4c419e5b4dfe6a87bfd3dd6cd}{switch\+Texture} (Q\+String \+\_\+texture\+Name)}\label{a01298_ab23285f4c419e5b4dfe6a87bfd3dd6cd}

\begin{DoxyCompactList}\small\item\em emit this signal if you want to switch the global texture This signal can be called from any thread.~\newline
\end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_abd95929bad975b9f792fc1a1ec1c1fb6}{set\+Texture\+Mode} (Q\+String \+\_\+texture\+Name, Q\+String \+\_\+mode)
\begin{DoxyCompactList}\small\item\em emit this signal if you want to set a special mode for this texture (Clamping,...) \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_a46a63552036deb5dac490534a6521eae}{set\+Texture\+Mode} (Q\+String \+\_\+texture\+Name, Q\+String \+\_\+mode, int \+\_\+id)
\begin{DoxyCompactList}\small\item\em emit this signal if you want to set a special mode for this texture (Clamping,...) \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_ae9343b82af1a4dbf02019433e6f787fd}{texture\+Change\+Image} (Q\+String \+\_\+texture\+Name, Q\+Image \&\+\_\+image, int \+\_\+id)
\begin{DoxyCompactList}\small\item\em Change the texture image of a given texture. \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_a21a6fcd90e201434cf38e795bec04109}{texture\+Change\+Image} (Q\+String \+\_\+texture\+Name, Q\+Image \&\+\_\+image)
\begin{DoxyCompactList}\small\item\em Change the texture image of a given global texture. \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_abca510e144cbf5b34a80dd4fc9f5638e}{texture\+Get\+Image} (Q\+String \+\_\+texture\+Name, Q\+Image \&\+\_\+image, int \+\_\+id)
\begin{DoxyCompactList}\small\item\em get the texture image of a given texture \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_a625d9915e455352b262759f9853eea79}{texture\+Get\+Image} (Q\+String \+\_\+texture\+Name, Q\+Image \&\+\_\+image)
\begin{DoxyCompactList}\small\item\em Get the texture image of a given global texture. \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_ac63012a67bab5d8743903710acc839db}{texture\+Index} (Q\+String \+\_\+texture\+Name, int \+\_\+id, int \&\+\_\+index)
\begin{DoxyCompactList}\small\item\em Get the texture index of a given texture. \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_af153c934d7432f6df280af645ddefe94}{texture\+Index\+Property\+Name} (int \+\_\+id, Q\+String \&\+\_\+property\+Name)
\begin{DoxyCompactList}\small\item\em Get the name of the texture index property. \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_ae3b8c0d537b3ebbd29df7cca5c9054c0}{texture\+Name} (int \+\_\+id, int \+\_\+texture\+Index, Q\+String \&\+\_\+texture\+Name)
\begin{DoxyCompactList}\small\item\em get the name of the texture with given texture index \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_a8bd3e3a683104b086857b9e5d3732239}{texture\+Filename} (int \+\_\+id, Q\+String \+\_\+texture\+Name, Q\+String \&\+\_\+texture\+Filename)
\begin{DoxyCompactList}\small\item\em get the filename of the texture with given texture index \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_a5406d8120d070da4f84fcc1366c94a42}{get\+Current\+Texture} (int \+\_\+id, Q\+String \&\+\_\+texture\+Name)
\begin{DoxyCompactList}\small\item\em get the name of the texture which is currently enabled \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_a334dd4b2bcaedd36876e62566e4ee5a5}{get\+Sub\+Textures} (int \+\_\+id, Q\+String \+\_\+multi\+Texture\+Name, Q\+String\+List \&\+\_\+sub\+Textures)
\begin{DoxyCompactList}\small\item\em get the names of all sub-\/textures under the given multi\+Texture \end{DoxyCompactList}\item 
\hypertarget{a01298_aef1718df41e63084af42c37f270c5dcc}{virtual \hyperlink{a01298_aef1718df41e63084af42c37f270c5dcc}{$\sim$\+Texture\+Interface} ()}\label{a01298_aef1718df41e63084af42c37f270c5dcc}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Slots}
\begin{DoxyCompactItemize}
\item 
virtual void \hyperlink{a01298_a4cdfc4a94990fd274fcfcdd8df416095}{slot\+Update\+Texture} (Q\+String \+\_\+texture\+Name, int \+\_\+identifier)
\begin{DoxyCompactList}\small\item\em update the texture with the given Name ( if this plugin provides this texture ) for all meshes \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01298_a48b8d7f5899a91d7961595c7f5b2e212}{virtual void \hyperlink{a01298_a48b8d7f5899a91d7961595c7f5b2e212}{slot\+Update\+All\+Textures} ()}\label{a01298_a48b8d7f5899a91d7961595c7f5b2e212}

\begin{DoxyCompactList}\small\item\em update all textures provided by this plugin \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_adcda2f55fd606faf2177dbbaeef05ebd}{slot\+Texture\+Updated} (Q\+String \+\_\+texture\+Name, int \+\_\+identifier)
\begin{DoxyCompactList}\small\item\em A texture has been updated. \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_a2cd24b8734ee47477c114fcfbfb88688}{slot\+Switch\+Texture} (Q\+String \+\_\+texture\+Name, int \+\_\+id)
\begin{DoxyCompactList}\small\item\em This slot is called when a plugin requests to switch an objects texture This signal can be called from any thread.~\newline
. \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_a49fefe07bc881d96bb6a5e85607c8f82}{slot\+Switch\+Texture} (Q\+String \+\_\+texture\+Name)
\begin{DoxyCompactList}\small\item\em This slot is called when a plugin requests to switch to a different texture mode This signal can be called from any thread.~\newline
. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions handled by texture\+Control\+Plugin}
\label{_amgrpfd28e16205642959bc4406db294cd0a3}%
 Normally you dont have to do anything when these functions are called. Texturecontrol handles visualization and updates of textures. \begin{DoxyCompactItemize}
\item 
virtual void \hyperlink{a01298_a07f6a9e1961558ce66c9d868dc4fe3d7}{slot\+Texture\+Added} (Q\+String \+\_\+texture\+Name, Q\+String \+\_\+filename, uint \+\_\+dimension, int \+\_\+id)
\begin{DoxyCompactList}\small\item\em A texture has been added by a plugin. \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_a0d8ce7b65f0ac1c3d8b0521ccaec1526}{slot\+Texture\+Added} (Q\+String \+\_\+texture\+Name, Q\+String \+\_\+filename, uint \+\_\+dimension)
\begin{DoxyCompactList}\small\item\em A texture has been added by a plugin. \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_aa2ccafd77d290f5e4b5d6aa733c9761d}{slot\+Multi\+Texture\+Added} (Q\+String \+\_\+texture\+Group, Q\+String \+\_\+name, Q\+String \+\_\+filename, int \+\_\+id, int \&\+\_\+texture\+Id)
\begin{DoxyCompactList}\small\item\em A multi\+Texture has been added by a plugin. \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_a5e4c5c0dd02342aeff4028dc6daf0478}{slot\+Set\+Texture\+Mode} (Q\+String \+\_\+texture\+Name, Q\+String \+\_\+mode, int \+\_\+id)
\begin{DoxyCompactList}\small\item\em Texturemode for texture should be changed. \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_a5d625a341b2c4a069b3ea3deb553da08}{slot\+Texture\+Change\+Image} (Q\+String \+\_\+texture\+Name, Q\+Image \&\+\_\+image, int \+\_\+id)
\begin{DoxyCompactList}\small\item\em Changes the texture image of a given texture. \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_a75a0e9fc608fb49c0d7c6fff2f27e394}{slot\+Texture\+Change\+Image} (Q\+String \+\_\+texture\+Name, Q\+Image \&\+\_\+image)
\begin{DoxyCompactList}\small\item\em Changes the texture image of a given global texture. \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_a620c99584eb81755830e6fd0aaa9bad1}{slot\+Set\+Texture\+Mode} (Q\+String \+\_\+texture\+Name, Q\+String \+\_\+mode)
\begin{DoxyCompactList}\small\item\em Texturemode for texture should be changed. \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_a4e372a41da55990d3e9c6ba0342aaa0d}{slot\+Texture\+Get\+Image} (Q\+String \+\_\+texture\+Name, Q\+Image \&\+\_\+image, int \+\_\+id)
\begin{DoxyCompactList}\small\item\em fetches the texture image of a given texture \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_af4e2eaac4ac63d61269a9af8db1b66d4}{slot\+Texture\+Get\+Image} (Q\+String \+\_\+texture\+Name, Q\+Image \&\+\_\+image)
\begin{DoxyCompactList}\small\item\em fetches the texture image of a given global texture \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_aa06ca3a7735d2037b9aec457e35266f7}{slot\+Texture\+Index} (Q\+String \+\_\+texture\+Name, int \+\_\+id, int \&\+\_\+index)
\begin{DoxyCompactList}\small\item\em Get the texture index of a given texture. \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_ae1255f9efcfe864e360cc1b407b905d7}{slot\+Texture\+Index\+Property\+Name} (int \+\_\+id, Q\+String \&\+\_\+property\+Name)
\begin{DoxyCompactList}\small\item\em Get the name of the texture index property. \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_a9d750b4ae9653a8f4462c8229cec09d1}{slot\+Texture\+Name} (int \+\_\+id, int \+\_\+texture\+Index, Q\+String \&\+\_\+texture\+Name)
\begin{DoxyCompactList}\small\item\em get the name of the texture with given texture index \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_a163f71b3f7fd3b0e260359080ddc3822}{slot\+Texture\+Filename} (int \+\_\+id, Q\+String \+\_\+texture\+Name, Q\+String \&\+\_\+texture\+Filename)
\begin{DoxyCompactList}\small\item\em get the filename of the texture with given texture name \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_ab94dc15aea6a78354c73f125912861f2}{slot\+Number\+Of\+Textures} (int \+\_\+id, int \&\+\_\+num\+Textures)
\begin{DoxyCompactList}\small\item\em get the number of textures per object \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_a69056c6e327a22e46a44ecff40d3c15e}{slot\+Get\+Current\+Texture} (int \+\_\+id, Q\+String \&\+\_\+texture\+Name)
\begin{DoxyCompactList}\small\item\em fetches the name of the texture which is currently enabled \end{DoxyCompactList}\item 
virtual void \hyperlink{a01298_ab4cd8a85dbd900ffa2dd15ba48de2f99}{slot\+Get\+Sub\+Textures} (int \+\_\+id, Q\+String \+\_\+multi\+Texture\+Name, Q\+String\+List \&\+\_\+sub\+Textures)
\begin{DoxyCompactList}\small\item\em fetches the names of all sub-\/textures under the given multi\+Texture \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Provide texture support for a plugin. 

This Interface should be used by plugins which will provide a texture. The texture coordinates have to be written into a mesh property. You do not need to write texture information into the texture coordinates of the mesh. As other plugins may provide textures to, the visualization of the textures is handled by the main application (or a texture control plugin). 

Definition at line 73 of file Texture\+Interface.\+hh.



\subsection{Member Function Documentation}
\hypertarget{a01298_ac053bacba1f1d85de38a169b37f14686}{\index{Texture\+Interface@{Texture\+Interface}!add\+Multi\+Texture@{add\+Multi\+Texture}}
\index{add\+Multi\+Texture@{add\+Multi\+Texture}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{add\+Multi\+Texture}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::add\+Multi\+Texture (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+texture\+Group, }
\item[{Q\+String}]{\+\_\+name, }
\item[{Q\+String}]{\+\_\+filename, }
\item[{int}]{\+\_\+id, }
\item[{int \&}]{\+\_\+texture\+Id}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a01298_ac053bacba1f1d85de38a169b37f14686}


Emit this Signal if you want to add a texture for a multitexturing mode. 

Emit this signal if a texture should be added to a multitexturing mode.

The first parameter defines a texturegroup which collects all textures that should be painted in the multitexturing mode. This group does not have to exist on the first call but will be created automatically.

The second parameter defines the single textures name used in the gui.~\newline
This signal can be called from any thread.~\newline
 
\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Group} & Multitexturing group using this texture \\
\hline
{\em \+\_\+name} & Name of the property which contains the tex coords (double or vec2d) \\
\hline
{\em \+\_\+filename} & Filename of the texture (either local in Open\+Flippers texture dir or global ( \char`\"{}./\+Textures/$<$name$>$\char`\"{}) \\
\hline
{\em \+\_\+id} & Id of the object which should use that texture \\
\hline
{\em \+\_\+texture\+Id} & The new internal id of the texture( This id is object related!!). Use this id in your mesh as the texture index (Use mesh-\/$>$set\+\_\+texture\+\_\+index on the face using this texture). \\
\hline
\end{DoxyParams}


Definition at line 116 of file Texture\+Interface.\+hh.

\hypertarget{a01298_a86b0f1f19e6aa3038e4698519d5f0009}{\index{Texture\+Interface@{Texture\+Interface}!add\+Texture@{add\+Texture}}
\index{add\+Texture@{add\+Texture}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{add\+Texture}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::add\+Texture (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+name, }
\item[{Q\+String}]{\+\_\+filename, }
\item[{uint}]{\+\_\+dimension, }
\item[{int}]{\+\_\+id}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}, {\ttfamily [signal]}}}\label{a01298_a86b0f1f19e6aa3038e4698519d5f0009}


Emit this Signal if a texture has been added (Property Name,filename,Dimension) 

Emit this signal if a texture for a specific object has been added This signal can be called from any thread.~\newline
 
\begin{DoxyParams}{Parameters}
{\em \+\_\+name} & Name of the property which contains the tex coords (double or vec2d) \\
\hline
{\em \+\_\+filename} & Filename of the texture (either local in Open\+Flippers texture dir or global ( \char`\"{}./\+Textures/$<$name$>$\char`\"{}) \\
\hline
{\em \+\_\+dimension} & 1\+D texture ( currenty only supports 1 ) \\
\hline
{\em \+\_\+id} & id of an object \\
\hline
\end{DoxyParams}


Definition at line 86 of file Texture\+Interface.\+hh.

\hypertarget{a01298_ab0806792054ae243388c1be00c1348c6}{\index{Texture\+Interface@{Texture\+Interface}!add\+Texture@{add\+Texture}}
\index{add\+Texture@{add\+Texture}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{add\+Texture}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::add\+Texture (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+name, }
\item[{Q\+String}]{\+\_\+filename, }
\item[{uint}]{\+\_\+dimension}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a01298_ab0806792054ae243388c1be00c1348c6}


Emit this Signal if a texture has been added (Property Name,filename,Dimension) 

Emit this signal if a global texture has been added This signal can be called from any thread.~\newline
 
\begin{DoxyParams}{Parameters}
{\em \+\_\+name} & Name of the property which contains the tex coords (double or vec2d) \\
\hline
{\em \+\_\+filename} & Filename of the texture (either local in Open\+Flippers texture dir or global ( \char`\"{}./\+Textures/$<$name$>$\char`\"{}) \\
\hline
{\em \+\_\+dimension} & 1\+D texture ( currenty only supports 1 ) \\
\hline
\end{DoxyParams}


Definition at line 97 of file Texture\+Interface.\+hh.

\hypertarget{a01298_a5406d8120d070da4f84fcc1366c94a42}{\index{Texture\+Interface@{Texture\+Interface}!get\+Current\+Texture@{get\+Current\+Texture}}
\index{get\+Current\+Texture@{get\+Current\+Texture}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{get\+Current\+Texture}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::get\+Current\+Texture (
\begin{DoxyParamCaption}
\item[{int}]{\+\_\+id, }
\item[{Q\+String \&}]{\+\_\+texture\+Name}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a01298_a5406d8120d070da4f84fcc1366c94a42}


get the name of the texture which is currently enabled 


\begin{DoxyParams}{Parameters}
{\em \+\_\+id} & Id of the object where the current texture should be fetched from \\
\hline
{\em \+\_\+texture\+Name} & this returns the name of the texture \\
\hline
\end{DoxyParams}


Definition at line 265 of file Texture\+Interface.\+hh.

\hypertarget{a01298_a334dd4b2bcaedd36876e62566e4ee5a5}{\index{Texture\+Interface@{Texture\+Interface}!get\+Sub\+Textures@{get\+Sub\+Textures}}
\index{get\+Sub\+Textures@{get\+Sub\+Textures}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{get\+Sub\+Textures}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::get\+Sub\+Textures (
\begin{DoxyParamCaption}
\item[{int}]{\+\_\+id, }
\item[{Q\+String}]{\+\_\+multi\+Texture\+Name, }
\item[{Q\+String\+List \&}]{\+\_\+sub\+Textures}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a01298_a334dd4b2bcaedd36876e62566e4ee5a5}


get the names of all sub-\/textures under the given multi\+Texture 


\begin{DoxyParams}{Parameters}
{\em \+\_\+id} & Id of the object where the current texture should be fetched from \\
\hline
{\em \+\_\+multi\+Texture\+Name} & name of a multi texture \\
\hline
{\em \+\_\+sub\+Textures} & this returns the names of all sub textures that are combined under the given multi texture \\
\hline
\end{DoxyParams}


Definition at line 273 of file Texture\+Interface.\+hh.

\hypertarget{a01298_abd95929bad975b9f792fc1a1ec1c1fb6}{\index{Texture\+Interface@{Texture\+Interface}!set\+Texture\+Mode@{set\+Texture\+Mode}}
\index{set\+Texture\+Mode@{set\+Texture\+Mode}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{set\+Texture\+Mode}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::set\+Texture\+Mode (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+texture\+Name, }
\item[{Q\+String}]{\+\_\+mode}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a01298_abd95929bad975b9f792fc1a1ec1c1fb6}


emit this signal if you want to set a special mode for this texture (Clamping,...) 

emit this signal if you want to set a special mode for this texture

The values are modified in the following way\+:~\newline
 First the absolute value of the property is taken if requested\+:~\newline
abs=true/false ~\newline
 Then this value is clamped against the given values\+:~\newline
clamp=true/false ~\newline
clamp\+\_\+min=value ~\newline
clamp\+\_\+max=value ~\newline
 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\+: ~\newline
repeat=true/false ~\newline
min\+\_\+val=value ~\newline
max\+\_\+val=value ~\newline
 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\+:~\newline
center=true/false~\newline
 Otherwise, the values are mapped directly to 0..1. You can also disable that final scaling with\+:~\newline
scale=true/false~\newline
 Examples\+:~\newline
Pass texture without modification\+: abs=false,clamp=false,repeat=false,center=false,scale=false~\newline
This signal can be called from any thread.~\newline
 
\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Name} & Name of your \hyperlink{a01281}{Texture} \\
\hline
{\em \+\_\+mode} & colon separated String describing your settings (e.\+g. clamp,abs ) \\
\hline
\end{DoxyParams}


Definition at line 176 of file Texture\+Interface.\+hh.

\hypertarget{a01298_a46a63552036deb5dac490534a6521eae}{\index{Texture\+Interface@{Texture\+Interface}!set\+Texture\+Mode@{set\+Texture\+Mode}}
\index{set\+Texture\+Mode@{set\+Texture\+Mode}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{set\+Texture\+Mode}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::set\+Texture\+Mode (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+texture\+Name, }
\item[{Q\+String}]{\+\_\+mode, }
\item[{int}]{\+\_\+id}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a01298_a46a63552036deb5dac490534a6521eae}


emit this signal if you want to set a special mode for this texture (Clamping,...) 

for info about the \+\_\+mode parameter see \hyperlink{a01298_abd95929bad975b9f792fc1a1ec1c1fb6}{set\+Texture\+Mode(\+Q\+String,\+Q\+String)} This signal can be called from any thread.~\newline
 
\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Name} & Name of your \hyperlink{a01281}{Texture} \\
\hline
{\em \+\_\+mode} & colon separated String describing your settings (e.\+g. clamp,abs ) \\
\hline
{\em \+\_\+id} & id of an object \\
\hline
\end{DoxyParams}


Definition at line 187 of file Texture\+Interface.\+hh.

\hypertarget{a01298_a69056c6e327a22e46a44ecff40d3c15e}{\index{Texture\+Interface@{Texture\+Interface}!slot\+Get\+Current\+Texture@{slot\+Get\+Current\+Texture}}
\index{slot\+Get\+Current\+Texture@{slot\+Get\+Current\+Texture}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{slot\+Get\+Current\+Texture}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::slot\+Get\+Current\+Texture (
\begin{DoxyParamCaption}
\item[{int}]{\+\_\+id, }
\item[{Q\+String \&}]{\+\_\+texture\+Name}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}}}\label{a01298_a69056c6e327a22e46a44ecff40d3c15e}


fetches the name of the texture which is currently enabled 


\begin{DoxyParams}{Parameters}
{\em \+\_\+id} & Id of the object where the current texture should be fetched from \\
\hline
{\em \+\_\+texture\+Name} & this returns the name of the texture \\
\hline
\end{DoxyParams}


Definition at line 464 of file Texture\+Interface.\+hh.

\hypertarget{a01298_ab4cd8a85dbd900ffa2dd15ba48de2f99}{\index{Texture\+Interface@{Texture\+Interface}!slot\+Get\+Sub\+Textures@{slot\+Get\+Sub\+Textures}}
\index{slot\+Get\+Sub\+Textures@{slot\+Get\+Sub\+Textures}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{slot\+Get\+Sub\+Textures}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::slot\+Get\+Sub\+Textures (
\begin{DoxyParamCaption}
\item[{int}]{\+\_\+id, }
\item[{Q\+String}]{\+\_\+multi\+Texture\+Name, }
\item[{Q\+String\+List \&}]{\+\_\+sub\+Textures}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}}}\label{a01298_ab4cd8a85dbd900ffa2dd15ba48de2f99}


fetches the names of all sub-\/textures under the given multi\+Texture 


\begin{DoxyParams}{Parameters}
{\em \+\_\+id} & Id of the object where the current texture should be fetched from \\
\hline
{\em \+\_\+multi\+Texture\+Name} & name of a multi texture \\
\hline
{\em \+\_\+sub\+Textures} & this returns the names of all sub textures that are combined under the given multi texture \\
\hline
\end{DoxyParams}


Definition at line 472 of file Texture\+Interface.\+hh.

\hypertarget{a01298_aa2ccafd77d290f5e4b5d6aa733c9761d}{\index{Texture\+Interface@{Texture\+Interface}!slot\+Multi\+Texture\+Added@{slot\+Multi\+Texture\+Added}}
\index{slot\+Multi\+Texture\+Added@{slot\+Multi\+Texture\+Added}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{slot\+Multi\+Texture\+Added}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::slot\+Multi\+Texture\+Added (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+texture\+Group, }
\item[{Q\+String}]{\+\_\+name, }
\item[{Q\+String}]{\+\_\+filename, }
\item[{int}]{\+\_\+id, }
\item[{int \&}]{\+\_\+texture\+Id}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}}}\label{a01298_aa2ccafd77d290f5e4b5d6aa733c9761d}


A multi\+Texture has been added by a plugin. 

This slot is called when a multi \hyperlink{a01281}{Texture} has been added by a plugin.

A multi texture has a global name which is defined as the texture group and consists of mutliple sub textures which have their own names but are all used when the group is active.~\newline
This slot will be executed on the main thread.~\newline
 
\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Group} & Name of the texture group that is associated with the texture. \\
\hline
{\em \+\_\+name} & Name of the Added texture (has to be equal to the property name) \\
\hline
{\em \+\_\+filename} & Filename of the \hyperlink{a01281}{Texture} Image to be used \\
\hline
{\em \+\_\+id} & Id of the object which should use the texture \\
\hline
{\em \+\_\+texture\+Id} & The new id of the texture( This id is object related!!) \\
\hline
\end{DoxyParams}


Definition at line 365 of file Texture\+Interface.\+hh.

\hypertarget{a01298_ab94dc15aea6a78354c73f125912861f2}{\index{Texture\+Interface@{Texture\+Interface}!slot\+Number\+Of\+Textures@{slot\+Number\+Of\+Textures}}
\index{slot\+Number\+Of\+Textures@{slot\+Number\+Of\+Textures}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{slot\+Number\+Of\+Textures}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::slot\+Number\+Of\+Textures (
\begin{DoxyParamCaption}
\item[{int}]{\+\_\+id, }
\item[{int \&}]{\+\_\+num\+Textures}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}}}\label{a01298_ab94dc15aea6a78354c73f125912861f2}


get the number of textures per object 


\begin{DoxyParams}{Parameters}
{\em \+\_\+id} & Id of the object \\
\hline
{\em \+\_\+num\+Textures} & returns the number of textures \\
\hline
\end{DoxyParams}


Definition at line 457 of file Texture\+Interface.\+hh.

\hypertarget{a01298_a5e4c5c0dd02342aeff4028dc6daf0478}{\index{Texture\+Interface@{Texture\+Interface}!slot\+Set\+Texture\+Mode@{slot\+Set\+Texture\+Mode}}
\index{slot\+Set\+Texture\+Mode@{slot\+Set\+Texture\+Mode}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{slot\+Set\+Texture\+Mode}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::slot\+Set\+Texture\+Mode (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+texture\+Name, }
\item[{Q\+String}]{\+\_\+mode, }
\item[{int}]{\+\_\+id}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}}}\label{a01298_a5e4c5c0dd02342aeff4028dc6daf0478}


Texturemode for texture should be changed. 

A plugin has updated the \hyperlink{a01281}{Texture} settings for a texture 
\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Name} & The name of the updated texture \\
\hline
{\em \+\_\+mode} & New mode flags for the given texture \\
\hline
{\em \+\_\+id} & id of an object \\
\hline
\end{DoxyParams}


Definition at line 375 of file Texture\+Interface.\+hh.

\hypertarget{a01298_a620c99584eb81755830e6fd0aaa9bad1}{\index{Texture\+Interface@{Texture\+Interface}!slot\+Set\+Texture\+Mode@{slot\+Set\+Texture\+Mode}}
\index{slot\+Set\+Texture\+Mode@{slot\+Set\+Texture\+Mode}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{slot\+Set\+Texture\+Mode}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::slot\+Set\+Texture\+Mode (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+texture\+Name, }
\item[{Q\+String}]{\+\_\+mode}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}}}\label{a01298_a620c99584eb81755830e6fd0aaa9bad1}


Texturemode for texture should be changed. 

A plugin has updated the \hyperlink{a01281}{Texture} settings for a texture 
\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Name} & The name of the updated texture \\
\hline
{\em \+\_\+mode} & New mode flags for the given texture \\
\hline
\end{DoxyParams}


Definition at line 398 of file Texture\+Interface.\+hh.

\hypertarget{a01298_a2cd24b8734ee47477c114fcfbfb88688}{\index{Texture\+Interface@{Texture\+Interface}!slot\+Switch\+Texture@{slot\+Switch\+Texture}}
\index{slot\+Switch\+Texture@{slot\+Switch\+Texture}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{slot\+Switch\+Texture}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::slot\+Switch\+Texture (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+texture\+Name, }
\item[{int}]{\+\_\+id}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}}}\label{a01298_a2cd24b8734ee47477c114fcfbfb88688}


This slot is called when a plugin requests to switch an objects texture This signal can be called from any thread.~\newline
. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Name} & Name of the \hyperlink{a01281}{Texture} \\
\hline
{\em \+\_\+id} & id of an object \\
\hline
\end{DoxyParams}


Definition at line 304 of file Texture\+Interface.\+hh.

\hypertarget{a01298_a49fefe07bc881d96bb6a5e85607c8f82}{\index{Texture\+Interface@{Texture\+Interface}!slot\+Switch\+Texture@{slot\+Switch\+Texture}}
\index{slot\+Switch\+Texture@{slot\+Switch\+Texture}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{slot\+Switch\+Texture}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::slot\+Switch\+Texture (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+texture\+Name}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}}}\label{a01298_a49fefe07bc881d96bb6a5e85607c8f82}


This slot is called when a plugin requests to switch to a different texture mode This signal can be called from any thread.~\newline
. 


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


Definition at line 311 of file Texture\+Interface.\+hh.

\hypertarget{a01298_a07f6a9e1961558ce66c9d868dc4fe3d7}{\index{Texture\+Interface@{Texture\+Interface}!slot\+Texture\+Added@{slot\+Texture\+Added}}
\index{slot\+Texture\+Added@{slot\+Texture\+Added}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{slot\+Texture\+Added}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::slot\+Texture\+Added (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+texture\+Name, }
\item[{Q\+String}]{\+\_\+filename, }
\item[{uint}]{\+\_\+dimension, }
\item[{int}]{\+\_\+id}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}, {\ttfamily [slot]}}}\label{a01298_a07f6a9e1961558ce66c9d868dc4fe3d7}


A texture has been added by a plugin. 

This slot is called when a texture for a specific object has been added by a plugin.~\newline
This slot will be executed on the main thread.~\newline
 
\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Name} & Name of the Added texture (has to be equal to the property name) \\
\hline
{\em \+\_\+filename} & Filename of the \hyperlink{a01281}{Texture} Image to be used \\
\hline
{\em \+\_\+dimension} & Dimension of the \hyperlink{a01281}{Texture} (currently only 1\+D and 2\+D Textures are supported \\
\hline
{\em \+\_\+id} & id of an object \\
\hline
\end{DoxyParams}


Definition at line 338 of file Texture\+Interface.\+hh.

\hypertarget{a01298_a0d8ce7b65f0ac1c3d8b0521ccaec1526}{\index{Texture\+Interface@{Texture\+Interface}!slot\+Texture\+Added@{slot\+Texture\+Added}}
\index{slot\+Texture\+Added@{slot\+Texture\+Added}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{slot\+Texture\+Added}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::slot\+Texture\+Added (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+texture\+Name, }
\item[{Q\+String}]{\+\_\+filename, }
\item[{uint}]{\+\_\+dimension}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}}}\label{a01298_a0d8ce7b65f0ac1c3d8b0521ccaec1526}


A texture has been added by a plugin. 

This slot is called when a global texture has been added by a plugin.~\newline
This slot will be executed on the main thread.~\newline
 
\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Name} & Name of the Added texture (has to be equal to the property name) \\
\hline
{\em \+\_\+filename} & Filename of the \hyperlink{a01281}{Texture} Image to be used \\
\hline
{\em \+\_\+dimension} & Dimension of the \hyperlink{a01281}{Texture} (currently only 1\+D and 2\+D Textures are supported \\
\hline
\end{DoxyParams}


Definition at line 349 of file Texture\+Interface.\+hh.

\hypertarget{a01298_a5d625a341b2c4a069b3ea3deb553da08}{\index{Texture\+Interface@{Texture\+Interface}!slot\+Texture\+Change\+Image@{slot\+Texture\+Change\+Image}}
\index{slot\+Texture\+Change\+Image@{slot\+Texture\+Change\+Image}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{slot\+Texture\+Change\+Image}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::slot\+Texture\+Change\+Image (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+texture\+Name, }
\item[{Q\+Image \&}]{\+\_\+image, }
\item[{int}]{\+\_\+id}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}}}\label{a01298_a5d625a341b2c4a069b3ea3deb553da08}


Changes the texture image of a given texture. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Name} & The name of the texture which should be changed \\
\hline
{\em \+\_\+image} & The new image for the texture \\
\hline
{\em \+\_\+id} & Id of the object where the texture should be changed \\
\hline
\end{DoxyParams}


Definition at line 383 of file Texture\+Interface.\+hh.

\hypertarget{a01298_a75a0e9fc608fb49c0d7c6fff2f27e394}{\index{Texture\+Interface@{Texture\+Interface}!slot\+Texture\+Change\+Image@{slot\+Texture\+Change\+Image}}
\index{slot\+Texture\+Change\+Image@{slot\+Texture\+Change\+Image}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{slot\+Texture\+Change\+Image}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::slot\+Texture\+Change\+Image (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+texture\+Name, }
\item[{Q\+Image \&}]{\+\_\+image}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}}}\label{a01298_a75a0e9fc608fb49c0d7c6fff2f27e394}


Changes the texture image of a given global texture. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Name} & The name of the texture which should be changed \\
\hline
{\em \+\_\+image} & The new image for the texture \\
\hline
\end{DoxyParams}


Definition at line 390 of file Texture\+Interface.\+hh.

\hypertarget{a01298_a163f71b3f7fd3b0e260359080ddc3822}{\index{Texture\+Interface@{Texture\+Interface}!slot\+Texture\+Filename@{slot\+Texture\+Filename}}
\index{slot\+Texture\+Filename@{slot\+Texture\+Filename}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{slot\+Texture\+Filename}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::slot\+Texture\+Filename (
\begin{DoxyParamCaption}
\item[{int}]{\+\_\+id, }
\item[{Q\+String}]{\+\_\+texture\+Name, }
\item[{Q\+String \&}]{\+\_\+texture\+Filename}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}}}\label{a01298_a163f71b3f7fd3b0e260359080ddc3822}


get the filename of the texture with given texture name 

Get the filename to texture with name \+\_\+texture\+Name. Retrieve texture names via signal \hyperlink{a01298_ae3b8c0d537b3ebbd29df7cca5c9054c0}{texture\+Name(int,int,\+Q\+String\&)} using the object's id and the texture index.


\begin{DoxyParams}{Parameters}
{\em \+\_\+id} & Id of the object where the texture should be fetched from \\
\hline
{\em \+\_\+texture\+Name} & texture name of the wanted texture \\
\hline
{\em \+\_\+texture\+Filename} & this returns the filename of the texture \\
\hline
\end{DoxyParams}


Definition at line 450 of file Texture\+Interface.\+hh.

\hypertarget{a01298_a4e372a41da55990d3e9c6ba0342aaa0d}{\index{Texture\+Interface@{Texture\+Interface}!slot\+Texture\+Get\+Image@{slot\+Texture\+Get\+Image}}
\index{slot\+Texture\+Get\+Image@{slot\+Texture\+Get\+Image}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{slot\+Texture\+Get\+Image}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::slot\+Texture\+Get\+Image (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+texture\+Name, }
\item[{Q\+Image \&}]{\+\_\+image, }
\item[{int}]{\+\_\+id}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}}}\label{a01298_a4e372a41da55990d3e9c6ba0342aaa0d}


fetches the texture image of a given texture 


\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Name} & The name of the texture which should be addressed \\
\hline
{\em \+\_\+image} & reference to the image for the texture \\
\hline
{\em \+\_\+id} & Id of the object where the texture should be fetched from \\
\hline
\end{DoxyParams}


Definition at line 406 of file Texture\+Interface.\+hh.

\hypertarget{a01298_af4e2eaac4ac63d61269a9af8db1b66d4}{\index{Texture\+Interface@{Texture\+Interface}!slot\+Texture\+Get\+Image@{slot\+Texture\+Get\+Image}}
\index{slot\+Texture\+Get\+Image@{slot\+Texture\+Get\+Image}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{slot\+Texture\+Get\+Image}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::slot\+Texture\+Get\+Image (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+texture\+Name, }
\item[{Q\+Image \&}]{\+\_\+image}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}}}\label{a01298_af4e2eaac4ac63d61269a9af8db1b66d4}


fetches the texture image of a given global texture 


\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Name} & The name of the texture which should be addressed \\
\hline
{\em \+\_\+image} & reference to the image for the texture \\
\hline
\end{DoxyParams}


Definition at line 413 of file Texture\+Interface.\+hh.

\hypertarget{a01298_aa06ca3a7735d2037b9aec457e35266f7}{\index{Texture\+Interface@{Texture\+Interface}!slot\+Texture\+Index@{slot\+Texture\+Index}}
\index{slot\+Texture\+Index@{slot\+Texture\+Index}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{slot\+Texture\+Index}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::slot\+Texture\+Index (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+texture\+Name, }
\item[{int}]{\+\_\+id, }
\item[{int \&}]{\+\_\+index}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}}}\label{a01298_aa06ca3a7735d2037b9aec457e35266f7}


Get the texture index of a given texture. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Name} & The name of the texture which should be addressed \\
\hline
{\em \+\_\+id} & Id of the object where the texture is defined on \\
\hline
{\em \+\_\+index} & the index of the texture (used for multi\+Texturing) \\
\hline
\end{DoxyParams}


Definition at line 421 of file Texture\+Interface.\+hh.

\hypertarget{a01298_ae1255f9efcfe864e360cc1b407b905d7}{\index{Texture\+Interface@{Texture\+Interface}!slot\+Texture\+Index\+Property\+Name@{slot\+Texture\+Index\+Property\+Name}}
\index{slot\+Texture\+Index\+Property\+Name@{slot\+Texture\+Index\+Property\+Name}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{slot\+Texture\+Index\+Property\+Name}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::slot\+Texture\+Index\+Property\+Name (
\begin{DoxyParamCaption}
\item[{int}]{\+\_\+id, }
\item[{Q\+String \&}]{\+\_\+property\+Name}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}}}\label{a01298_ae1255f9efcfe864e360cc1b407b905d7}


Get the name of the texture index property. 

Get the name of the property that holds the texture index (face property).


\begin{DoxyParams}{Parameters}
{\em \+\_\+id} & The id of the mesh object \\
\hline
{\em \+\_\+property\+Name} & The name of the property that holds the texture indices \\
\hline
\end{DoxyParams}


Definition at line 430 of file Texture\+Interface.\+hh.

\hypertarget{a01298_a9d750b4ae9653a8f4462c8229cec09d1}{\index{Texture\+Interface@{Texture\+Interface}!slot\+Texture\+Name@{slot\+Texture\+Name}}
\index{slot\+Texture\+Name@{slot\+Texture\+Name}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{slot\+Texture\+Name}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::slot\+Texture\+Name (
\begin{DoxyParamCaption}
\item[{int}]{\+\_\+id, }
\item[{int}]{\+\_\+texture\+Index, }
\item[{Q\+String \&}]{\+\_\+texture\+Name}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}}}\label{a01298_a9d750b4ae9653a8f4462c8229cec09d1}


get the name of the texture with given texture index 


\begin{DoxyParams}{Parameters}
{\em \+\_\+id} & Id of the object where the texture should be fetched from \\
\hline
{\em \+\_\+texture\+Index} & texture index of the wanted texture \\
\hline
{\em \+\_\+texture\+Name} & this returns the name of the texture \\
\hline
\end{DoxyParams}


Definition at line 438 of file Texture\+Interface.\+hh.

\hypertarget{a01298_adcda2f55fd606faf2177dbbaeef05ebd}{\index{Texture\+Interface@{Texture\+Interface}!slot\+Texture\+Updated@{slot\+Texture\+Updated}}
\index{slot\+Texture\+Updated@{slot\+Texture\+Updated}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{slot\+Texture\+Updated}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::slot\+Texture\+Updated (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+texture\+Name, }
\item[{int}]{\+\_\+identifier}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}}}\label{a01298_adcda2f55fd606faf2177dbbaeef05ebd}


A texture has been updated. 

A plugin has updated a \hyperlink{a01281}{Texture} 
\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Name} & The name of the updated texture \\
\hline
{\em \+\_\+identifier} & -\/1 if all objects updated, otherwise the identifier of the object \\
\hline
\end{DoxyParams}


Definition at line 296 of file Texture\+Interface.\+hh.

\hypertarget{a01298_a4cdfc4a94990fd274fcfcdd8df416095}{\index{Texture\+Interface@{Texture\+Interface}!slot\+Update\+Texture@{slot\+Update\+Texture}}
\index{slot\+Update\+Texture@{slot\+Update\+Texture}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{slot\+Update\+Texture}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::slot\+Update\+Texture (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+texture\+Name, }
\item[{int}]{\+\_\+identifier}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}, {\ttfamily [slot]}}}\label{a01298_a4cdfc4a94990fd274fcfcdd8df416095}


update the texture with the given Name ( if this plugin provides this texture ) for all meshes 

This function is called if the texture of the object is about to be shown and the object has changed since the last rendering of the texture.


\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Name} & Name of the \hyperlink{a01281}{Texture} to be updated \\
\hline
{\em \+\_\+identifier} & The id of the object to update \\
\hline
\end{DoxyParams}


Definition at line 284 of file Texture\+Interface.\+hh.

\hypertarget{a01298_ae9343b82af1a4dbf02019433e6f787fd}{\index{Texture\+Interface@{Texture\+Interface}!texture\+Change\+Image@{texture\+Change\+Image}}
\index{texture\+Change\+Image@{texture\+Change\+Image}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{texture\+Change\+Image}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::texture\+Change\+Image (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+texture\+Name, }
\item[{Q\+Image \&}]{\+\_\+image, }
\item[{int}]{\+\_\+id}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a01298_ae9343b82af1a4dbf02019433e6f787fd}


Change the texture image of a given texture. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Name} & The name of the texture which should be changed \\
\hline
{\em \+\_\+image} & The new image for the texture \\
\hline
{\em \+\_\+id} & Id of the object where the texture should be changed \\
\hline
\end{DoxyParams}


Definition at line 195 of file Texture\+Interface.\+hh.

\hypertarget{a01298_a21a6fcd90e201434cf38e795bec04109}{\index{Texture\+Interface@{Texture\+Interface}!texture\+Change\+Image@{texture\+Change\+Image}}
\index{texture\+Change\+Image@{texture\+Change\+Image}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{texture\+Change\+Image}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::texture\+Change\+Image (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+texture\+Name, }
\item[{Q\+Image \&}]{\+\_\+image}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a01298_a21a6fcd90e201434cf38e795bec04109}


Change the texture image of a given global texture. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Name} & The name of the texture which should be changed \\
\hline
{\em \+\_\+image} & The new image for the texture \\
\hline
\end{DoxyParams}


Definition at line 202 of file Texture\+Interface.\+hh.

\hypertarget{a01298_a8bd3e3a683104b086857b9e5d3732239}{\index{Texture\+Interface@{Texture\+Interface}!texture\+Filename@{texture\+Filename}}
\index{texture\+Filename@{texture\+Filename}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{texture\+Filename}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::texture\+Filename (
\begin{DoxyParamCaption}
\item[{int}]{\+\_\+id, }
\item[{Q\+String}]{\+\_\+texture\+Name, }
\item[{Q\+String \&}]{\+\_\+texture\+Filename}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a01298_a8bd3e3a683104b086857b9e5d3732239}


get the filename of the texture with given texture index 

Get the filename of a given texture with name \+\_\+texture\+Name. Retrieve the texture's name via signal \hyperlink{a01298_ae3b8c0d537b3ebbd29df7cca5c9054c0}{texture\+Name(int,int,\+Q\+String\&)} first.


\begin{DoxyParams}{Parameters}
{\em \+\_\+id} & Id of the object where the texture should be fetched from \\
\hline
{\em \+\_\+texture\+Name} & The name of the texture whose filename will be fetched \\
\hline
{\em \+\_\+texture\+Filename} & this returns the name of the texture \\
\hline
\end{DoxyParams}


Definition at line 258 of file Texture\+Interface.\+hh.

\hypertarget{a01298_abca510e144cbf5b34a80dd4fc9f5638e}{\index{Texture\+Interface@{Texture\+Interface}!texture\+Get\+Image@{texture\+Get\+Image}}
\index{texture\+Get\+Image@{texture\+Get\+Image}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{texture\+Get\+Image}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::texture\+Get\+Image (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+texture\+Name, }
\item[{Q\+Image \&}]{\+\_\+image, }
\item[{int}]{\+\_\+id}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a01298_abca510e144cbf5b34a80dd4fc9f5638e}


get the texture image of a given texture 


\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Name} & The name of the texture which should be addressed \\
\hline
{\em \+\_\+image} & reference to the image for the texture \\
\hline
{\em \+\_\+id} & Id of the object where the texture should be fetched from \\
\hline
\end{DoxyParams}


Definition at line 210 of file Texture\+Interface.\+hh.

\hypertarget{a01298_a625d9915e455352b262759f9853eea79}{\index{Texture\+Interface@{Texture\+Interface}!texture\+Get\+Image@{texture\+Get\+Image}}
\index{texture\+Get\+Image@{texture\+Get\+Image}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{texture\+Get\+Image}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::texture\+Get\+Image (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+texture\+Name, }
\item[{Q\+Image \&}]{\+\_\+image}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a01298_a625d9915e455352b262759f9853eea79}


Get the texture image of a given global texture. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Name} & The name of the texture which should be addressed \\
\hline
{\em \+\_\+image} & reference to the image for the texture \\
\hline
\end{DoxyParams}


Definition at line 217 of file Texture\+Interface.\+hh.

\hypertarget{a01298_ac63012a67bab5d8743903710acc839db}{\index{Texture\+Interface@{Texture\+Interface}!texture\+Index@{texture\+Index}}
\index{texture\+Index@{texture\+Index}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{texture\+Index}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::texture\+Index (
\begin{DoxyParamCaption}
\item[{Q\+String}]{\+\_\+texture\+Name, }
\item[{int}]{\+\_\+id, }
\item[{int \&}]{\+\_\+index}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a01298_ac63012a67bab5d8743903710acc839db}


Get the texture index of a given texture. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+texture\+Name} & The name of the texture which should be addressed \\
\hline
{\em \+\_\+id} & Id of the object where the texture is defined on \\
\hline
{\em \+\_\+index} & the index of the texture (used for multi\+Texturing) \\
\hline
\end{DoxyParams}


Definition at line 225 of file Texture\+Interface.\+hh.

\hypertarget{a01298_af153c934d7432f6df280af645ddefe94}{\index{Texture\+Interface@{Texture\+Interface}!texture\+Index\+Property\+Name@{texture\+Index\+Property\+Name}}
\index{texture\+Index\+Property\+Name@{texture\+Index\+Property\+Name}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{texture\+Index\+Property\+Name}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::texture\+Index\+Property\+Name (
\begin{DoxyParamCaption}
\item[{int}]{\+\_\+id, }
\item[{Q\+String \&}]{\+\_\+property\+Name}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a01298_af153c934d7432f6df280af645ddefe94}


Get the name of the texture index property. 

Get the name of the property that holds the texture index (face property).


\begin{DoxyParams}{Parameters}
{\em \+\_\+id} & The id of the mesh object \\
\hline
{\em \+\_\+property\+Name} & The name of the property that holds the texture indices \\
\hline
\end{DoxyParams}


Definition at line 234 of file Texture\+Interface.\+hh.

\hypertarget{a01298_ae3b8c0d537b3ebbd29df7cca5c9054c0}{\index{Texture\+Interface@{Texture\+Interface}!texture\+Name@{texture\+Name}}
\index{texture\+Name@{texture\+Name}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{texture\+Name}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::texture\+Name (
\begin{DoxyParamCaption}
\item[{int}]{\+\_\+id, }
\item[{int}]{\+\_\+texture\+Index, }
\item[{Q\+String \&}]{\+\_\+texture\+Name}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a01298_ae3b8c0d537b3ebbd29df7cca5c9054c0}


get the name of the texture with given texture index 

When using multi\+Texturing you can retrieve the texture index of a face with 'mesh.\+texture\+\_\+index(\+Handle)' This function maps the texture index to the name of the actual texture that is used to texture the face. Note that some plugins may change the mesh's internal property name for the texture index such that mesh.\+texture\+\_\+index(\+Handle) won't return a valid texture index.


\begin{DoxyParams}{Parameters}
{\em \+\_\+id} & Id of the object where the texture should be fetched from \\
\hline
{\em \+\_\+texture\+Index} & texture index of the wanted texture \\
\hline
{\em \+\_\+texture\+Name} & this returns the name of the texture \\
\hline
\end{DoxyParams}


Definition at line 247 of file Texture\+Interface.\+hh.

\hypertarget{a01298_a862d7c31117a668195f14a09ba8efaf8}{\index{Texture\+Interface@{Texture\+Interface}!updated\+Textures@{updated\+Textures}}
\index{updated\+Textures@{updated\+Textures}!Texture\+Interface@{Texture\+Interface}}
\subsubsection[{updated\+Textures}]{\setlength{\rightskip}{0pt plus 5cm}virtual void Texture\+Interface\+::updated\+Textures (
\begin{DoxyParamCaption}
\item[{Q\+String}]{, }
\item[{int}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a01298_a862d7c31117a668195f14a09ba8efaf8}


emit this signal if you updated a texture 

Give the name of the texture and the id of the object or -\/1 if all objects were update 

Definition at line 131 of file Texture\+Interface.\+hh.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/\+Base\+Plugin/Texture\+Interface.\+hh\end{DoxyCompactItemize}
