|
Developer Documentation
|
Public Slots | |
| QString | version () |
Signals | |
| void | updateView () |
| void | updatedObject (int _id, const UpdateType &_type) |
| void | addHiddenPickMode (const std::string &_mode) |
| void | createBackup (int _objectid, QString _name, UpdateType _type=UPDATE_ALL) |
| void | log (Logtype _type, QString _message) |
| void | log (QString _message) |
| void | addToolbar (QToolBar *_toolbar) |
Signals inherited from BaseInterface | |
| virtual void | updateView () |
| Update current view in Main Application. | |
| virtual void | setSlotDescription (QString _slotName, QString _slotDescription, QStringList _parameters, QStringList _descriptions) |
| Set a description for a public slot. | |
| virtual void | setRenderer (unsigned int _viewer, QString _rendererName) |
| Set a renderer for the given viewer. | |
Signals inherited from KeyInterface | |
| virtual void | registerKey (int _key, Qt::KeyboardModifiers _modifiers, QString _description, bool _multiUse=false) |
| Register a key-combination for your plugin. | |
Signals inherited from PickingInterface | |
| virtual void | addPickMode (const std::string &_mode) |
| Add a new picking mode to the examiner. | |
Signals inherited from BackupInterface | |
| virtual void | createBackup (int _objectid, QString _name, UpdateType _type=UPDATE_ALL) |
| Tell Backup Plugin to create a backup. | |
| virtual void | aboutToRestore (int _objectid) |
| Backup Plugin tells other Plugins that a restore will happen. | |
| virtual void | generateBackup (int _id, QString _name, UpdateType _type) |
| This signal is emitted by a BackupPlugin and tells a TypePlugin to generate a backup. | |
Signals inherited from LoggingInterface | |
| virtual void | log (Logtype _type, QString _message)=0 |
| virtual void | log (QString _message)=0 |
Signals inherited from ToolbarInterface | |
| virtual void | addToolbar (QToolBar *_toolbar) |
| Adds a Toolbar to the main widget. | |
Public Member Functions | |
| TopologyPlugin () | |
| Constructor. | |
| ~TopologyPlugin () | |
| Destructor. | |
| QString | name () |
| Return a name for the plugin. | |
| QString | description () |
| Return a description of what the plugin is doing. | |
Private Slots | |
| void | pluginsInitialized () |
| initialize the Plugin | |
| void | slotPickModeChanged (const std::string &_mode) |
| Toggle actions when the PickMode changes. | |
| void | slotMouseEvent (QMouseEvent *_event) |
| this is called when a mouse event occurred | |
| void | toolBarTriggered (QAction *_action) |
| called when an action on the toolbar was triggered | |
Private Slots inherited from BaseInterface | |
| virtual void | exit () |
| virtual QString | version () |
| Return a version string for your plugin. | |
Private Slots inherited from KeyInterface | |
| virtual void | slotKeyEvent (QKeyEvent *_event) |
| Key Event from Main App. | |
Private Member Functions | |
| void | clearAddFaceVertices () |
| clear the add face vector | |
| void | add_face (QMouseEvent *_event) |
| Add a face. | |
| void | split_face (QMouseEvent *_event) |
| Split a face at the current hit point. | |
| void | delete_face (QMouseEvent *_event) |
| Delete a face at the current hit point. | |
| void | flip_edge (QMouseEvent *_event) |
| Flip edge. | |
| void | collapse_edge (QMouseEvent *_event) |
| Collapse edge. | |
| void | split_edge (QMouseEvent *_event) |
| Split Edge. | |
Private Member Functions inherited from BaseInterface | |
| virtual void | noguiSupported () |
| virtual | ~BaseInterface () |
| Destructor. | |
| virtual void | blockScenegraphUpdates (bool _block) |
| Tell the core to prevent scenegraph updates. | |
| virtual void | updatedObject (int _objectId) |
| An object has been changed or added by this plugin. | |
| virtual void | updatedObject (int _identifier, const UpdateType &_type) |
| An object has been changed or added by this plugin. | |
| virtual void | nodeVisibilityChanged (int _identifier) |
| A scenegraph node has been shown or hidden. | |
| virtual void | getCurrentRenderer (unsigned int _viewer, QString &_rendererName) |
| Get the current renderer for the given viewer. | |
Private Member Functions inherited from MouseInterface | |
| virtual | ~MouseInterface () |
| Destructor. | |
Private Member Functions inherited from KeyInterface | |
| virtual void | slotKeyReleaseEvent (QKeyEvent *_event) |
| Key Release Event from Main App. | |
| virtual | ~KeyInterface () |
| Destructor. | |
Private Member Functions inherited from PickingInterface | |
| virtual void | addHiddenPickMode (const std::string &_mode) |
| Add a new picking mode to the examiner which will be invisible. | |
| virtual void | setPickModeCursor (const std::string &_mode, QCursor _cursor) |
| Set the cursor of the given PickMode. | |
| virtual void | setPickModeMouseTracking (const std::string &_mode, bool _mouseTracking) |
| Set mouse tracking for the given PickMode. | |
| virtual void | setPickModeToolbar (const std::string &_mode, QToolBar *_toolbar) |
| Set the additional toolbar of the given PickMode. | |
| virtual void | removePickModeToolbar (const std::string &_mode) |
| Removes the additional toolbar of the given PickMode. | |
| virtual | ~PickingInterface () |
| Destructor. | |
Private Member Functions inherited from BackupInterface | |
| virtual void | createBackup (IdList _objectids, QString _name, std::vector< UpdateType > _types) |
| Tell Backup Plugin to create a group backup. | |
| virtual void | undo (int _objectid) |
| Tell Backup Plugin to undo the last action of an object. | |
| virtual void | redo (int _objectid) |
| Tell Backup Plugin to redo the last action on an object. | |
| virtual void | undo () |
| Tell Backup Plugin to undo the last action. | |
| virtual void | redo () |
| Tell Backup Plugin to redo the last action. | |
| virtual | ~BackupInterface () |
| Destructor. | |
| virtual void | restored (int _objectid) |
| Backup Plugin tells other Plugins that a restore has happened. | |
Private Member Functions inherited from LoggingInterface | |
| virtual | ~LoggingInterface () |
| Destructor. | |
Private Member Functions inherited from ToolbarInterface | |
| virtual | ~ToolbarInterface () |
| Destructor. | |
| virtual void | removeToolbar (QToolBar *_toolbar) |
| Remove a Toolbar from the main widget. | |
| virtual void | getToolBar (QString _name, QToolBar *&_toolbar) |
| Get a pointer to a Toolbar of the given name or 0 if it does not exist. | |
Private Attributes | |
| std::vector< std::pair< int, int > > | addFaceVertices_ |
| QToolBar * | toolbar_ |
| QAction * | edgeFlipAction_ |
| QAction * | edgeSplitAction_ |
| QAction * | edgeCollapseAction_ |
| QAction * | faceAddAction_ |
| QAction * | faceDeleteAction_ |
| QAction * | faceSplitAction_ |
Definition at line 58 of file TopologyPlugin.hh.
| TopologyPlugin::TopologyPlugin | ( | ) |
Constructor.
Definition at line 57 of file TopologyPlugin.cc.
|
inline |
Destructor.
Definition at line 111 of file TopologyPlugin.hh.
|
private |
Add a face.
| _event | mouse position where one of the vertices is picked |
Definition at line 237 of file TopologyPlugin.cc.
|
private |
clear the add face vector
Deselect the vertices from AddFace mode.
Definition at line 201 of file TopologyPlugin.cc.
|
private |
Collapse edge.
Collapse an edge at the given position.
| _event | mouse position where the edge is picked |
Definition at line 650 of file TopologyPlugin.cc.
|
private |
Delete a face at the current hit point.
Delete a face at the given position.
| _event | mouse position where the face is picked |
Definition at line 536 of file TopologyPlugin.cc.
|
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 115 of file TopologyPlugin.hh.
|
private |
Flip edge.
Flip an edge at the given position.
| _event | mouse position where the edge is picked |
Definition at line 585 of file TopologyPlugin.cc.
|
inlinevirtual |
Return a name for the plugin.
This Function has to return the name of the plugin.
Implements BaseInterface.
Definition at line 114 of file TopologyPlugin.hh.
|
privateslot |
initialize the Plugin
Definition at line 74 of file TopologyPlugin.cc.
|
privateslot |
this is called when a mouse event occurred
| _event | the event that occurred |
Definition at line 183 of file TopologyPlugin.cc.
|
privateslot |
Toggle actions when the PickMode changes.
| _mode | the new PickMode |
Definition at line 167 of file TopologyPlugin.cc.
|
private |
Split Edge.
Split an edge at the given position.
| _event | mouse position where the edge is picked |
Definition at line 762 of file TopologyPlugin.cc.
|
private |
Split a face at the current hit point.
Split a face at the given point.
| _event | mouse position where the face is picked |
Definition at line 477 of file TopologyPlugin.cc.
|
privateslot |
called when an action on the toolbar was triggered
Toolbar action was triggered.
| _action | the action that was triggered |
Definition at line 143 of file TopologyPlugin.cc.
|
inlineslot |
Definition at line 156 of file TopologyPlugin.hh.
|
private |
Definition at line 142 of file TopologyPlugin.hh.
|
private |
Definition at line 148 of file TopologyPlugin.hh.
|
private |
Definition at line 146 of file TopologyPlugin.hh.
|
private |
Definition at line 147 of file TopologyPlugin.hh.
|
private |
Definition at line 150 of file TopologyPlugin.hh.
|
private |
Definition at line 151 of file TopologyPlugin.hh.
|
private |
Definition at line 152 of file TopologyPlugin.hh.
|
private |
Definition at line 144 of file TopologyPlugin.hh.