Skip to content
Snippets Groups Projects

added signals to add textures from QImage to texture interface

Merged Martin Schultz requested to merge featureTextureInterfaceQImage into master
4 files
+ 159
0
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -81,6 +81,18 @@ class TextureInterface {
*/
virtual void addTexture( QString _name , QString _filename , uint _dimension , int _id ) {};
/** \brief Emit this Signal if a texture has been added (Property Name,image,Dimension)
*
* Emit this signal if a texture for a specific object has been added
* This signal can be called from any thread.\n
*
* @param _name Name of the property which contains the tex coords (double or vec2d)
* @param _image A QImage which is used to provide the image data
* @param _dimension 1D texture ( currenty only supports 1 )
* @param _id id of an object
*/
virtual void addTexture( QString _name , QImage _image , uint _dimension , int _id ) {};
/** \brief Emit this Signal if a texture has been added (Property Name,filename,Dimension)
*
* Emit this signal if a global texture has been added
@@ -92,6 +104,17 @@ class TextureInterface {
*/
virtual void addTexture( QString _name , QString _filename , uint _dimension ) {};
/** \brief Emit this Signal if a texture has been added (Property Name,image,Dimension)
*
* Emit this signal if a global texture has been added
* This signal can be called from any thread.\n
*
* @param _name Name of the property which contains the tex coords (double or vec2d)
* @param _image A QImage which is used to provide the image data
* @param _dimension 1D texture ( currenty only supports 1 )
*/
virtual void addTexture( QString _name , QImage _image , uint _dimension ) {};
/** \brief 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.
@@ -111,6 +134,25 @@ class TextureInterface {
*/
virtual void addMultiTexture( QString _textureGroup , QString _name , QString _filename , int _id , int& _textureId ) {};
/** \brief 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.\n
* This signal can be called from any thread.\n
*
* @param _textureGroup Multitexturing group using this texture
* @param _name Name of the property which contains the tex coords (double or vec2d)
* @param _image A QImage which is used to provide the image data
* @param _id Id of the object which should use that texture
* @param _textureId 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).
*/
virtual void addMultiTexture( QString _textureGroup , QString _name , QImage _image , int _id , int& _textureId ) {};
/** \brief Tell Plugins to update the given texture for the given identifier
* This signal can be called from any thread.\n
*/
Loading