|
Developer Documentation
|
Public Slots | |
| int | loadObject (QString _filename) |
| Loads Object and converts it to a triangle mesh if possible. | |
| int | loadObject (QString _filename, DataType _type) |
| Loads Object with given datatype. | |
| bool | saveObject (int _id, QString _filename) |
| QString | version () |
Signals | |
| void | openedFile (int _id) |
| void | addEmptyObject (DataType _type, int &_id) |
| void | load (QString _filename, DataType _type, int &_id) |
| void | save (int _id, QString _filename) |
| void | log (Logtype _type, QString _message) |
| void | log (QString _message) |
| void | updateView () |
| void | updatedObject (int _identifier, const UpdateType &_type) |
| void | deleteObject (int _id) |
| void | pluginExists (QString _pluginName, bool &_exists) |
| void | addAboutInfo (QString _text, QString _tabName) |
Signals inherited from BaseInterface | |
| 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... | |
Signals inherited from FileInterface | |
| virtual void | openedFile (int _id) |
| This signal has to be emitted if an object has been loaded from a file. More... | |
Signals inherited from LoadSaveInterface | |
| 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... | |
Signals inherited from LoggingInterface | |
| virtual void | log (Logtype _type, QString _message)=0 |
| virtual void | log (QString _message)=0 |
Signals inherited from ScriptInterface | |
| virtual void | scriptInfo (QString _functionWithParameters) |
| Emit this signal if a scriptable function is executed. More... | |
| virtual void | getScriptingEngine (QScriptEngine *&_engine) |
| virtual void | executeScript (QString _script) |
| virtual void | getAvailableFunctions (QStringList &_functions) |
Signals inherited from RPCInterface | |
| virtual void | pluginExists (QString _pluginName, bool &_exists) |
Signals inherited from AboutInfoInterface | |
| virtual void | addAboutInfo (QString _text, QString _tabName) |
| Adds a widget to OpenFlippers about dialog. More... | |
Public Member Functions | |
| QString | name () |
| Return a name for the plugin. More... | |
| QString | description () |
| Return a description of what the plugin is doing. More... | |
| DataType | supportedType () |
| Return your supported object type( e.g. DATA_TRIANGLE_MESH ) More... | |
| QString | getSaveFilters () |
| QString | getLoadFilters () |
| QWidget * | saveOptionsWidget (QString) |
| QWidget * | loadOptionsWidget (QString) |
Private Slots | |
| void | fileOpened (int) |
| void | noguiSupported () |
| void | initializePlugin () |
Private Member Functions | |
| int | convertAiSceneToOpenMesh (const aiScene *_scene, QString _objectName) |
| converts an aiScene to a polymesh or trimesh | |
| bool | convertOpenMeshToAiScene (aiScene *_scene, BaseObjectData *_object) |
| converts a polymesh or trimesh to an aiScene | |
| void | convertAiMeshToPolyMesh (PolyMesh *_polyMesh, aiMesh *_mesh) |
| converts _mesh into _polyMesh | |
| void | convertAiMeshToTriMesh (TriMesh *_triMesh, aiMesh *_mesh) |
| converts _mesh into _triMesh | |
| bool | convertPolyMeshToAiMesh (PolyMesh *_polyMesh, aiMesh *_mesh) |
| converts a polymesh to an aiMesh | |
| bool | convertTriMeshToAiMesh (TriMesh *_triMesh, aiMesh *_mesh) |
| converts a trimesh to an aiMesh | |
| void | mapVertices (PolyMesh *_polyMesh, aiMesh *_mesh) |
| add a vertex from _mesh to _polyMesh and stores the index to handle mapping | |
| void | mapVertices (TriMesh *_triMesh, aiMesh *_mesh) |
| add a vertex from _mesh to _trimesh and stores the index to handle mapping | |
Private Member Functions inherited from BaseInterface | |
| virtual void | noguiSupported () |
| virtual | ~BaseInterface () |
| Destructor. | |
| 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... | |
Private Member Functions inherited from FileInterface | |
| virtual | ~FileInterface () |
| Destructor. | |
| virtual bool | saveObject (int _id, QString _filename)=0 |
| Save an object from the given file. More... | |
| virtual bool | saveObjects (IdList _ids, QString _filename) |
| Save multiple objects to one file. More... | |
Private Member Functions inherited from LoadSaveInterface | |
| virtual | ~LoadSaveInterface () |
| Destructor. | |
| 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... | |
Private Member Functions inherited from LoggingInterface | |
| virtual | ~LoggingInterface () |
| Destructor. | |
Private Member Functions inherited from ScriptInterface | |
| virtual | ~ScriptInterface () |
| Destructor. | |
| virtual void | executeFileScript (QString _filename) |
| virtual void | getDescription (QString _function, QString &_description, QStringList &_parameters, QStringList &_descriptions) |
Private Member Functions inherited from RPCInterface | |
| virtual | ~RPCInterface () |
| Destructor. | |
| virtual void | functionExists (QString _pluginName, QString _functionName, bool &_exists) |
Private Member Functions inherited from AboutInfoInterface | |
| virtual | ~AboutInfoInterface () |
| Destructor. | |
Private Attributes | |
| QWidget * | loadOptions_ |
| QWidget * | saveOptions_ |
| DataType | type_ |
|
std::map< unsigned int, OpenMesh::VertexHandle > | vertexHandles_ |
| maps indices of vertices in an aiMesh to OpenMesh VertexHandles | |
Definition at line 70 of file AssimpPlugin.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 107 of file AssimpPlugin.hh.
|
virtual |
Return the Qt Filters for File dialogs when loading files (e.g. "Off files ( *.off )" )
Implements FileInterface.
Definition at line 375 of file AssimpPlugin.cc.
|
virtual |
Get the Qt Filters for Filedialogs when saving files (e.g. "Off files ( *.off )" )
Implements FileInterface.
Definition at line 371 of file AssimpPlugin.cc.
|
virtual |
You can provide a special widget showing options for loading your file types depending on the current filter
_currentFilter: one filter from loadFilters
Return 0 when you don't need one
Implements FileInterface.
Definition at line 387 of file AssimpPlugin.cc.
|
inlinevirtual |
Return a name for the plugin.
This Function has to return the name of the plugin.
Implements BaseInterface.
Definition at line 106 of file AssimpPlugin.hh.
|
virtual |
You can provide a special widget showing options for saving your file types depending on the current filter
_currentFilter: one filter from saveFilters
Return 0 when you don't need one
Implements FileInterface.
Definition at line 379 of file AssimpPlugin.cc.
|
virtual |
Return your supported object type( e.g. DATA_TRIANGLE_MESH )
If you support multiple DataTypes you can combine them bitwise here. The function is used from the load and save code to check if your plugin can handle an object of a given dataType.
Implements FileInterface.
Definition at line 365 of file AssimpPlugin.cc.