Developer Documentation
|
Public Slots | |
QString | version () |
Signals | |
void | updateView () |
void | updatedObject (int _identifier, const UpdateType &_type) |
void | updateTexture (QString, int) |
void | log (Logtype _type, QString _message) |
void | log (QString _message) |
void | addMenubarAction (QAction *_action, QString _type) |
void | addContextMenuItem (QAction *_action, DataType _objectType, ContextMenuType _type) |
![]() | |
virtual void | updateView () |
Update current view in Main Application. More... | |
virtual void | setSlotDescription (QString _slotName, QString _slotDescription, QStringList _parameters, QStringList _descriptions) |
Set a description for a public slot. More... | |
virtual void | setRenderer (unsigned int _viewer, QString _rendererName) |
Set a renderer for the given viewer. More... | |
![]() | |
virtual void | createBackup (int _objectid, QString _name, UpdateType _type=UPDATE_ALL) |
Tell Backup Plugin to create a backup. More... | |
virtual void | aboutToRestore (int _objectid) |
Backup Plugin tells other Plugins that a restore will happen. More... | |
virtual void | generateBackup (int _id, QString _name, UpdateType _type) |
This signal is emitted by a BackupPlugin and tells a TypePlugin to generate a backup. More... | |
![]() | |
virtual void | addTexture (QString _name, QString _filename, uint _dimension, int _id) |
Emit this Signal if a texture has been added (Property Name,filename,Dimension) More... | |
![]() | |
virtual void | getMenubarMenu (QString _name, QMenu *&_menu, bool _create) |
Get a existing top level menu pointer or create a new one. More... | |
![]() | |
virtual void | log (Logtype _type, QString _message)=0 |
virtual void | log (QString _message)=0 |
![]() | |
virtual void | save (int _id, QString _filename) |
Save object to a file. More... | |
virtual void | load (QString _filename, DataType _type, int &_id) |
Load object from file with a specific DataType. More... | |
![]() | |
virtual void | addContextMenuItem (QAction *_action, ContextMenuType _type) |
Add an entry for a context Menu. More... | |
Public Member Functions | |
TextureControlPlugin () | |
Constructor. More... | |
~TextureControlPlugin () | |
Destructor. More... | |
QString | name () |
Return a name for the plugin. More... | |
QString | description () |
Return a description of what the plugin is doing. More... | |
Private Slots | |
void | pluginsInitialized () |
void | slotObjectUpdated (int _identifier, const UpdateType &_type) |
void | slotDrawModeChanged (int _viewerId) |
void | slotUpdateAllTextures () |
void | slotTextureAdded (QString _textureName, QString _filename, uint _dimension, int _id) |
void | slotTextureAdded (QString _textureName, QImage _image, uint _dimension, int _id) |
void | slotTextureAdded (QString _textureName, QString _filename, uint _dimension) |
void | slotTextureAdded (QString _textureName, QImage _image, uint _dimension) |
void | slotMultiTextureAdded (QString _textureGroup, QString _name, QString _filename, int _id, int &_textureId) |
void | slotMultiTextureAdded (QString _textureGroup, QString _name, QImage _image, int _id, int &_textureId) |
void | slotTextureUpdated (QString _textureName, int _identifier) |
void | slotSetTextureMode (QString _textureName, QString _mode, int _id) |
void | slotSetTextureMode (QString _textureName, QString _mode) |
void | slotSwitchTexture (QString _textureName, int _id) |
void | slotSwitchTexture (QString _textureName) |
void | slotUpdateTexture (QString _textureName, int _identifier) |
void | slotTextureChangeImage (QString _textureName, QImage &_image, int _id) |
void | slotTextureChangeImage (QString _textureName, QImage &_image) |
void | slotTextureGetImage (QString _textureName, QImage &_image, int _id) |
void | slotTextureGetImage (QString _textureName, QImage &_image) |
void | slotTextureIndex (QString _textureName, int _id, int &_index) |
void | slotTextureIndexPropertyName (int _id, QString &_propertyName) |
void | slotTextureName (int _id, int _textureIndex, QString &_textureName) |
void | slotTextureFilename (int _id, QString _textureName, QString &_textureFilename) |
void | slotGetCurrentTexture (int _id, QString &_textureName) |
void | slotGetSubTextures (int _id, QString _multiTextureName, QStringList &_subTextures) |
void | fileOpened (int _id) |
void | addedEmptyObject (int _id) |
void | slotAboutToRestore (int _objectid) |
void | slotRestored (int _objectid) |
void | doSwitchTexture (QString _textureName, int _id) |
void | slotTextureMenu (QAction *_action) |
Called when an action in the TextureMenu is triggered. More... | |
void | slotSetTextureProperties () |
Slot for showing the TextureProperties Dialog. More... | |
void | slotPrintImagePoolInfo () |
Print Pool Info. More... | |
void | applyDialogSettings (TextureData *_texData, QString _textureName, int _id) |
void | getCoordinates1D (QString _textureName, int _id, std::vector< double > &_x) |
![]() | |
virtual void | exit () |
virtual QString | version () |
Return a version string for your plugin. More... | |
Private Member Functions | |
void | slotTextureAdded (QString _textureName, QString _fileName, QImage _image, uint _dimension, int _id) |
void | slotTextureAdded (QString _textureName, QString _fileName, QImage _image, uint _dimension) |
void | slotMultiTextureAdded (QString _textureGroup, QString _name, QString _fileName, QImage _image, int _id, int &_textureId) |
bool | StringToBool (QString _value) |
void | switchDrawMode (TextureType _type, int _id) |
Checks for a correct drawmode and changes if necessary. More... | |
template<typename MeshT > | |
void | doUpdateTexture (Texture &_texture, MeshT &_mesh) |
Calls the correct copyTexture() function to copy the texture property into the displayed OM property. More... | |
template<typename MeshT > | |
void | getOriginalHistogram (std::vector< double > &_x, std::vector< double > &_y, int _textureid, MeshT &_mesh, OpenMesh::VPropHandleT< double > _texProp) |
template<typename MeshT > | |
void | handleFileOpenTextures (MeshT *&_mesh, int _objectId) |
Handles data stored in new opened files ( e.g. Texture Information ) More... | |
bool | parseMode (QString _mode, Texture &_texture) |
parse texture mode settings Parses the string _mode and changes the settings in _texture according to the string. If the setting changes, it will return true. More... | |
1D Texture copy functions( copy 1D input textures to target texture coordinates and transform values ) | |
template<typename MeshT > | |
void | copyTexture (Texture &_texture, MeshT &_mesh, OpenMesh::VPropHandleT< double > _texProp) |
Copy the supplied 1D vertex property to both coordinates of the 2D vertex OM texture property. More... | |
template<typename MeshT > | |
void | copyTexture (Texture &_texture, MeshT &_mesh, OpenMesh::HPropHandleT< double > _texProp) |
Copy the supplied 1D halfedge property to both coordinates of the 2D halfedge OM texture property. More... | |
2D Texture copy functions( copy 2D input textures to target texture coordinates and transform values ) | |
template<typename MeshT > | |
void | copyTexture (Texture &_texture, MeshT &_mesh, OpenMesh::VPropHandleT< ACG::Vec2d > _texProp) |
Copy the supplied 2D vertex property to the 2D vertex OM property. More... | |
template<typename MeshT > | |
void | copyTexture (Texture &_texture, MeshT &_mesh, OpenMesh::HPropHandleT< ACG::Vec2d > _texProp) |
Copy the supplied 2D halfedge property to the 2D halfedge OM property. More... | |
![]() | |
virtual void | noguiSupported () |
virtual | ~BaseInterface () |
Destructor. More... | |
virtual void | blockScenegraphUpdates (bool _block) |
Tell the core to prevent scenegraph updates. More... | |
virtual void | updatedObject (int _objectId) |
An object has been changed or added by this plugin. More... | |
virtual void | updatedObject (int _identifier, const UpdateType &_type) |
An object has been changed or added by this plugin. More... | |
virtual void | nodeVisibilityChanged (int _identifier) |
A scenegraph node has been shown or hidden. More... | |
virtual void | getCurrentRenderer (unsigned int _viewer, QString &_rendererName) |
Get the current renderer for the given viewer. More... | |
![]() | |
virtual void | createBackup (IdList _objectids, QString _name, std::vector< UpdateType > _types) |
Tell Backup Plugin to create a group backup. More... | |
virtual void | undo (int _objectid) |
Tell Backup Plugin to undo the last action of an object. More... | |
virtual void | redo (int _objectid) |
Tell Backup Plugin to redo the last action on an object. More... | |
virtual void | undo () |
Tell Backup Plugin to undo the last action. More... | |
virtual void | redo () |
Tell Backup Plugin to redo the last action. More... | |
virtual | ~BackupInterface () |
Destructor. More... | |
virtual void | restored (int _objectid) |
Backup Plugin tells other Plugins that a restore has happened. More... | |
![]() | |
virtual void | addTexture (QString _name, QImage _image, uint _dimension, int _id) |
Emit this Signal if a texture has been added (Property Name,image,Dimension) More... | |
virtual void | addTexture (QString _name, QString _filename, uint _dimension) |
Emit this Signal if a texture has been added (Property Name,filename,Dimension) More... | |
virtual void | addTexture (QString _name, QImage _image, uint _dimension) |
Emit this Signal if a texture has been added (Property Name,image,Dimension) More... | |
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. More... | |
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. More... | |
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 thread. . More... | |
virtual void | updateAllTextures () |
Tell Plugins to update all textures. More... | |
virtual void | updatedTextures (QString, int) |
emit this signal if you updated a texture More... | |
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 from any thread. More... | |
virtual void | switchTexture (QString _textureName) |
emit this signal if you want to switch the global texture This signal can be called from any thread. More... | |
virtual void | setTextureMode (QString _textureName, QString _mode) |
emit this signal if you want to set a special mode for this texture (Clamping,...) More... | |
virtual void | setTextureMode (QString _textureName, QString _mode, int _id) |
emit this signal if you want to set a special mode for this texture (Clamping,...) More... | |
virtual void | textureChangeImage (QString _textureName, QImage &_image, int _id) |
Change the texture image of a given texture. More... | |
virtual void | textureChangeImage (QString _textureName, QImage &_image) |
Change the texture image of a given global texture. More... | |
virtual void | textureGetImage (QString _textureName, QImage &_image, int _id) |
get the texture image of a given texture More... | |
virtual void | textureGetImage (QString _textureName, QImage &_image) |
Get the texture image of a given global texture. More... | |
virtual void | textureIndex (QString _textureName, int _id, int &_index) |
Get the texture index of a given texture. More... | |
virtual void | textureIndexPropertyName (int _id, QString &_propertyName) |
Get the name of the texture index property. More... | |
virtual void | textureName (int _id, int _textureIndex, QString &_textureName) |
get the name of the texture with given texture index More... | |
virtual void | textureFilename (int _id, QString _textureName, QString &_textureFilename) |
get the filename of the texture with given texture index More... | |
virtual void | getCurrentTexture (int _id, QString &_textureName) |
get the name of the texture which is currently enabled More... | |
virtual void | getSubTextures (int _id, QString _multiTextureName, QStringList &_subTextures) |
get the names of all sub-textures under the given multiTexture More... | |
virtual | ~TextureInterface () |
Destructor. More... | |
![]() | |
virtual | ~MenuInterface () |
Destructor. More... | |
virtual void | addMenubarAction (QAction *_action, QString _name) |
Adds an action to the menubar. More... | |
virtual void | addMenubarActions (std::vector< QAction * > &_actions, QString _name) |
Add multiple actions to the menu bar. More... | |
![]() | |
virtual | ~LoggingInterface () |
Destructor. More... | |
![]() | |
virtual | ~LoadSaveInterface () |
Destructor. More... | |
virtual void | addEmptyObject (DataType _type, int &_id) |
virtual void | copyObject (int _oldId, int &_newId) |
virtual void | emptyObjectAdded (int _id) |
DEPRECATED HERE (Moved to Type Interface)! Emit this signal if an empty object has been created. More... | |
virtual void | deleteObject (int _id) |
Delete an object This signal can be called from any thread. . More... | |
virtual void | deleteAllObjects () |
Delete all Objects. More... | |
virtual void | getAllFileFilters (QStringList &_filters) |
Get all file filters that are registered. More... | |
![]() | |
virtual | ~ContextMenuInterface () |
Destructor. More... | |
virtual void | addContextMenuItem (QAction *_action, DataType _objectType, ContextMenuType _type) |
Add an entry for a context Menu. More... | |
virtual void | hideContextMenu () |
hide the main context menu More... | |
Private Attributes | |
TextureData | globalTextures_ |
texturePropertiesWidget * | settingsDialog_ |
Global texture menu | |
QMenu * | textureMenu_ |
QActionGroup * | actionGroup_ |
std::vector< QAction * > | textureActions_ |
Context Menu | |
QMenu * | contextMenu_ |
Stores the per object context menu. More... | |
void | slotUpdateContextMenu (int _objectId) |
Slot from the context menu interface. More... | |
void | slotTextureContextMenu (QAction *_action) |
Called when the context menu has been triggered. More... | |
Definition at line 81 of file TextureControl.hh.
TextureControlPlugin::TextureControlPlugin | ( | ) |
Constructor.
Definition at line 61 of file TextureControl.cc.
|
inline |
Destructor.
Definition at line 173 of file TextureControl.hh.
|
privateslot |
Definition at line 253 of file TextureControl.cc.
|
privateslot |
Definition at line 1468 of file TextureControl.cc.
|
private |
Copy the supplied 2D halfedge property to the 2D halfedge OM property.
Definition at line 65 of file TextureControl2DTextureHandlingT_impl.hh.
|
private |
Copy the supplied 1D halfedge property to both coordinates of the 2D halfedge OM texture property.
Definition at line 85 of file TextureControl1DTextureHandlingT_impl.hh.
|
private |
Copy the supplied 2D vertex property to the 2D vertex OM property.
Definition at line 49 of file TextureControl2DTextureHandlingT_impl.hh.
|
private |
Copy the supplied 1D vertex property to both coordinates of the 2D vertex OM texture property.
Definition at line 50 of file TextureControl1DTextureHandlingT_impl.hh.
|
inlinevirtual |
Return a description of what the plugin is doing.
This function has to return a basic description of the plugin
Implements BaseInterface.
Definition at line 176 of file TextureControl.hh.
|
privateslot |
Definition at line 1605 of file TextureControl.cc.
|
private |
Calls the correct copyTexture() function to copy the texture property into the displayed OM property.
Definition at line 910 of file TextureControl.cc.
|
privateslot |
Definition at line 385 of file TextureControl.cc.
|
privateslot |
Definition at line 1952 of file TextureControl.cc.
|
private |
Definition at line 48 of file TextureControlHistogramsT_impl.hh.
|
private |
Handles data stored in new opened files ( e.g. Texture Information )
Definition at line 353 of file TextureControl.cc.
|
inlinevirtual |
Return a name for the plugin.
This Function has to return the name of the plugin.
Implements BaseInterface.
Definition at line 175 of file TextureControl.hh.
|
private |
parse texture mode settings Parses the string _mode and changes the settings in _texture according to the string. If the setting changes, it will return true.
Definition at line 1139 of file TextureControl.cc.
|
privateslot |
Definition at line 1373 of file TextureControl.cc.
|
privateslot |
Definition at line 2100 of file TextureControl.cc.
|
privateslot |
Definition at line 1018 of file TextureControl.cc.
|
privateslot |
Definition at line 721 of file TextureControl.cc.
|
privateslot |
Definition at line 761 of file TextureControl.cc.
|
inlineprivateslot |
Definition at line 130 of file TextureControl.hh.
|
inlineprivateslot |
Definition at line 129 of file TextureControl.hh.
|
private |
Definition at line 194 of file TextureControl.cc.
|
privateslot |
Definition at line 1064 of file TextureControl.cc.
|
privateslot |
Print Pool Info.
Definition at line 1443 of file TextureControl.cc.
|
privateslot |
Definition at line 2131 of file TextureControl.cc.
|
privateslot |
Definition at line 1232 of file TextureControl.cc.
|
privateslot |
Definition at line 1340 of file TextureControl.cc.
|
privateslot |
Slot for showing the TextureProperties Dialog.
Definition at line 1438 of file TextureControl.cc.
|
privateslot |
Definition at line 1825 of file TextureControl.cc.
|
privateslot |
Definition at line 1820 of file TextureControl.cc.
|
inlineprivateslot |
Definition at line 128 of file TextureControl.hh.
|
inlineprivateslot |
Definition at line 126 of file TextureControl.hh.
|
private |
Definition at line 154 of file TextureControl.cc.
|
private |
Definition at line 70 of file TextureControl.cc.
|
inlineprivateslot |
Definition at line 127 of file TextureControl.hh.
|
inlineprivateslot |
Definition at line 125 of file TextureControl.hh.
|
privateslot |
Definition at line 501 of file TextureControl.cc.
|
privateslot |
Definition at line 440 of file TextureControl.cc.
|
privateslot |
Called when the context menu has been triggered.
This slot is called when the per object context menu is triggered. It will switch to the requested texture and mode.
Definition at line 1910 of file TextureControl.cc.
|
privateslot |
Definition at line 680 of file TextureControl.cc.
|
privateslot |
Definition at line 592 of file TextureControl.cc.
|
privateslot |
Definition at line 560 of file TextureControl.cc.
|
privateslot |
Definition at line 605 of file TextureControl.cc.
|
privateslot |
Definition at line 633 of file TextureControl.cc.
|
privateslot |
Called when an action in the TextureMenu is triggered.
Definition at line 1587 of file TextureControl.cc.
|
privateslot |
Definition at line 652 of file TextureControl.cc.
|
privateslot |
Definition at line 791 of file TextureControl.cc.
|
privateslot |
Definition at line 1130 of file TextureControl.cc.
|
privateslot |
Slot from the context menu interface.
This slot is called, when the core requests a context menu and creates and updates the context menu.
Definition at line 1836 of file TextureControl.cc.
|
privateslot |
Definition at line 903 of file TextureControl.cc.
|
private |
Definition at line 1333 of file TextureControl.cc.
|
private |
Checks for a correct drawmode and changes if necessary.
Definition at line 1793 of file TextureControl.cc.
|
inlineslot |
Definition at line 320 of file TextureControl.hh.
|
private |
Definition at line 284 of file TextureControl.hh.
|
private |
Stores the per object context menu.
Definition at line 315 of file TextureControl.hh.
|
private |
Definition at line 189 of file TextureControl.hh.
|
private |
Definition at line 191 of file TextureControl.hh.
|
private |
Definition at line 287 of file TextureControl.hh.
|
private |
Definition at line 281 of file TextureControl.hh.