51 #ifndef TEXTUREINTERFACE_HH 52 #define TEXTUREINTERFACE_HH 56 #if QT_VERSION >= 0x050000 86 virtual void addTexture( QString _name , QString _filename , uint _dimension ,
int _id ) {};
97 virtual void addTexture( QString _name , QString _filename , uint _dimension ) {};
116 virtual void addMultiTexture( QString _textureGroup , QString _name , QString _filename ,
int _id ,
int& _textureId ) {};
225 virtual void textureIndex( QString _textureName,
int _id,
int& _index) {};
247 virtual void textureName(
int _id,
int _textureIndex, QString& _textureName ) {};
258 virtual void textureFilename(
int _id, QString _textureName, QString& _textureFilename ) {};
273 virtual void getSubTextures(
int _id, QString _multiTextureName, QStringList& _subTextures ) {};
338 virtual void slotTextureAdded( QString _textureName , QString _filename , uint _dimension,
int _id ) {};
349 virtual void slotTextureAdded( QString _textureName , QString _filename , uint _dimension ) {};
366 QString _filename ,
int _id ,
int& _textureId ) {};
479 #endif // TEXTUREINTERFACE_HH virtual void getSubTextures(int _id, QString _multiTextureName, QStringList &_subTextures)
get the names of all sub-textures under the given multiTexture
virtual void slotTextureFilename(int _id, QString _textureName, QString &_textureFilename)
get the filename of the texture with given texture name
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 updatedTextures(QString, int)
emit this signal if you updated a texture
virtual void textureGetImage(QString _textureName, QImage &_image, int _id)
get 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 slotTextureGetImage(QString _textureName, QImage &_image, int _id)
fetches the texture image of a given texture
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 slotTextureAdded(QString _textureName, QString _filename, uint _dimension, int _id)
A texture has been added by a plugin.
virtual void slotTextureChangeImage(QString _textureName, QImage &_image, int _id)
Changes the texture image of a given texture.
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 slotTextureName(int _id, int _textureIndex, QString &_textureName)
get the name of the texture with given texture index
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 slotNumberOfTextures(int _id, int &_numTextures)
get the number of textures per object
virtual ~TextureInterface()
Destructor.
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 slotSetTextureMode(QString _textureName, QString _mode, int _id)
Texturemode for texture should be changed.
virtual void textureIndex(QString _textureName, int _id, int &_index)
Get the texture index of a given texture.
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 addTexture(QString _name, QString _filename, uint _dimension)
Emit this Signal if a texture has been added (Property Name,filename,Dimension)
virtual void slotSetTextureMode(QString _textureName, QString _mode)
Texturemode for texture should be changed.
virtual void slotGetCurrentTexture(int _id, QString &_textureName)
fetches the name of the texture which is currently enabled
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
virtual void setTextureMode(QString _textureName, QString _mode)
emit this signal if you want to set a special mode for this texture (Clamping,...) ...
virtual void slotTextureUpdated(QString _textureName, int _identifier)
A texture has been updated.
Provide texture support for a plugin.
virtual void textureFilename(int _id, QString _textureName, QString &_textureFilename)
get the filename of the texture with given texture index
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 slotTextureIndexPropertyName(int _id, QString &_propertyName)
Get the name of the texture index property.
virtual void slotTextureIndex(QString _textureName, int _id, int &_index)
Get the texture index of a given texture.
virtual void slotUpdateAllTextures()
update all textures provided by this plugin
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 textureGetImage(QString _textureName, QImage &_image)
Get the texture image of a given global texture.
virtual void slotGetSubTextures(int _id, QString _multiTextureName, QStringList &_subTextures)
fetches the names of all sub-textures under the given multiTexture
virtual void textureName(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, int _id)
Emit this Signal if a texture has been added (Property Name,filename,Dimension)
virtual void textureChangeImage(QString _textureName, QImage &_image, int _id)
Change the texture image of a given texture.
virtual void slotTextureChangeImage(QString _textureName, QImage &_image)
Changes 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 slotTextureAdded(QString _textureName, QString _filename, uint _dimension)
A texture has been added by a plugin.
virtual void textureIndexPropertyName(int _id, QString &_propertyName)
Get the name of the texture index property.