46 #include <QStringList> 69 virtual void addTexture( QString _name , QString _filename , uint _dimension ,
int _id ) {};
81 virtual void addTexture( QString _name , QImage _image , uint _dimension ,
int _id ) {};
92 virtual void addTexture( QString _name , QString _filename , uint _dimension ) {};
103 virtual void addTexture( QString _name , QImage _image , uint _dimension ) {};
122 virtual void addMultiTexture( QString _textureGroup , QString _name , QString _filename ,
int _id ,
int& _textureId ) {};
141 virtual void addMultiTexture( QString _textureGroup , QString _name , QImage _image ,
int _id ,
int& _textureId ) {};
250 virtual void textureIndex( QString _textureName,
int _id,
int& _index) {};
272 virtual void textureName(
int _id,
int _textureIndex, QString& _textureName ) {};
283 virtual void textureFilename(
int _id, QString _textureName, QString& _textureFilename ) {};
298 virtual void getSubTextures(
int _id, QString _multiTextureName, QStringList& _subTextures ) {};
363 virtual void slotTextureAdded( QString _textureName , QString _filename , uint _dimension,
int _id ) {};
374 virtual void slotTextureAdded( QString _textureName , QString _filename , uint _dimension ) {};
391 QString _filename ,
int _id ,
int& _textureId ) {};
virtual void slotGetSubTextures(int _id, QString _multiTextureName, QStringList &_subTextures)
fetches the names of all sub-textures under the given multiTexture
virtual void slotSetTextureMode(QString _textureName, QString _mode, int _id)
Texturemode for texture should be changed.
virtual void slotTextureAdded(QString _textureName, QString _filename, uint _dimension, int _id)
A texture has been added by a plugin.
virtual void textureFilename(int _id, QString _textureName, QString &_textureFilename)
get the filename of the texture with given texture index
virtual void slotTextureName(int _id, int _textureIndex, QString &_textureName)
get the name of the texture with given texture index
virtual void addTexture(QString _name, QString _filename, uint _dimension)
Emit this Signal if a texture has been added (Property Name,filename,Dimension)
virtual void addTexture(QString _name, QImage _image, uint _dimension, int _id)
Emit this Signal if a texture has been added (Property Name,image,Dimension)
virtual void switchTexture(QString _textureName)
emit this signal if you want to switch the global texture This signal can be called from any thread...
virtual void slotTextureFilename(int _id, QString _textureName, QString &_textureFilename)
get the filename of the texture with given texture name
virtual void updateTexture(QString _textureName, int _identifier)
Tell Plugins to update the given texture for the given identifier This signal can be called from any ...
virtual void getCurrentTexture(int _id, QString &_textureName)
get the name of the texture which is currently enabled
Provide texture support for a plugin.
virtual void slotSwitchTexture(QString _textureName, int _id)
This slot is called when a plugin requests to switch an objects texture This signal can be called fro...
virtual void updatedTextures(QString, int)
emit this signal if you updated a texture
virtual void textureName(int _id, int _textureIndex, QString &_textureName)
get the name of the texture with given texture index
virtual void textureGetImage(QString _textureName, QImage &_image)
Get the texture image of a given global texture.
virtual void addMultiTexture(QString _textureGroup, QString _name, QImage _image, int _id, int &_textureId)
Emit this Signal if you want to add a texture for a multitexturing mode.
virtual void slotGetCurrentTexture(int _id, QString &_textureName)
fetches the name of the texture which is currently enabled
virtual void getSubTextures(int _id, QString _multiTextureName, QStringList &_subTextures)
get the names of all sub-textures under the given multiTexture
virtual void textureGetImage(QString _textureName, QImage &_image, int _id)
get the texture image of a given texture
virtual void slotTextureChangeImage(QString _textureName, QImage &_image, int _id)
Changes the texture image of a given texture.
virtual ~TextureInterface()
Destructor.
virtual void setTextureMode(QString _textureName, QString _mode, int _id)
emit this signal if you want to set a special mode for this texture (Clamping,...) ...
virtual void slotSetTextureMode(QString _textureName, QString _mode)
Texturemode for texture should be changed.
virtual void slotTextureIndexPropertyName(int _id, QString &_propertyName)
Get the name of the texture index property.
virtual void setTextureMode(QString _textureName, QString _mode)
emit this signal if you want to set a special mode for this texture (Clamping,...) ...
virtual void textureChangeImage(QString _textureName, QImage &_image, int _id)
Change the texture image of a given texture.
virtual void textureChangeImage(QString _textureName, QImage &_image)
Change the texture image of a given global texture.
virtual void slotSwitchTexture(QString _textureName)
This slot is called when a plugin requests to switch to a different texture mode This signal can be c...
virtual void slotNumberOfTextures(int _id, int &_numTextures)
get the number of textures per object
virtual void slotUpdateAllTextures()
update all textures provided by this plugin
virtual void textureIndexPropertyName(int _id, QString &_propertyName)
Get the name of the texture index property.
virtual void slotTextureAdded(QString _textureName, QString _filename, uint _dimension)
A texture has been added by a plugin.
virtual void switchTexture(QString _textureName, int _id)
emit this signal if you want to switch the texture of a specific object This signal can be called fro...
virtual void slotTextureGetImage(QString _textureName, QImage &_image, int _id)
fetches the texture image of a given texture
virtual void addMultiTexture(QString _textureGroup, QString _name, QString _filename, int _id, int &_textureId)
Emit this Signal if you want to add a texture for a multitexturing mode.
virtual void updateAllTextures()
Tell Plugins to update all textures.
virtual void slotTextureGetImage(QString _textureName, QImage &_image)
fetches the texture image of a given global texture
virtual void slotMultiTextureAdded(QString _textureGroup, QString _name, QString _filename, int _id, int &_textureId)
A multiTexture has been added by a plugin.
virtual void addTexture(QString _name, QString _filename, uint _dimension, int _id)
Emit this Signal if a texture has been added (Property Name,filename,Dimension)
virtual void slotTextureUpdated(QString _textureName, int _identifier)
A texture has been updated.
virtual void slotUpdateTexture(QString _textureName, int _identifier)
update the texture with the given Name ( if this plugin provides this texture ) for all meshes ...
virtual void slotTextureIndex(QString _textureName, int _id, int &_index)
Get the texture index of a given texture.
virtual void textureIndex(QString _textureName, int _id, int &_index)
Get the texture index of a given texture.
virtual void addTexture(QString _name, QImage _image, uint _dimension)
Emit this Signal if a texture has been added (Property Name,image,Dimension)
virtual void slotTextureChangeImage(QString _textureName, QImage &_image)
Changes the texture image of a given global texture.