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. 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 KeyInterface | |
virtual void | registerKey (int _key, Qt::KeyboardModifiers _modifiers, QString _description, bool _multiUse=false) |
Register a key-combination for your plugin. More... | |
Signals inherited from PickingInterface | |
virtual void | addPickMode (const std::string &_mode) |
Add a new picking mode to the examiner. More... | |
Signals inherited from BackupInterface | |
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... | |
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. More... | |
Public Member Functions | |
TopologyPlugin () | |
Constructor. | |
~TopologyPlugin () | |
Destructor. | |
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 () |
initialize the Plugin More... | |
void | slotPickModeChanged (const std::string &_mode) |
Toggle actions when the PickMode changes. More... | |
void | slotMouseEvent (QMouseEvent *_event) |
this is called when a mouse event occurred More... | |
void | toolBarTriggered (QAction *_action) |
called when an action on the toolbar was triggered More... | |
Private Slots inherited from BaseInterface | |
virtual void | exit () |
virtual QString | version () |
Return a version string for your plugin. More... | |
Private Slots inherited from KeyInterface | |
virtual void | slotKeyEvent (QKeyEvent *_event) |
Key Event from Main App. More... | |
Private Member Functions | |
void | clearAddFaceVertices () |
clear the add face vector More... | |
void | add_face (QMouseEvent *_event) |
Add a face. More... | |
void | split_face (QMouseEvent *_event) |
Split a face at the current hit point. More... | |
void | delete_face (QMouseEvent *_event) |
Delete a face at the current hit point. More... | |
void | flip_edge (QMouseEvent *_event) |
Flip edge. More... | |
void | collapse_edge (QMouseEvent *_event) |
Collapse edge. More... | |
void | split_edge (QMouseEvent *_event) |
Split Edge. More... | |
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 MouseInterface | |
virtual | ~MouseInterface () |
Destructor. | |
Private Member Functions inherited from KeyInterface | |
virtual void | slotKeyReleaseEvent (QKeyEvent *_event) |
Key Release Event from Main App. More... | |
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. More... | |
virtual void | setPickModeCursor (const std::string &_mode, QCursor _cursor) |
Set the cursor of the given PickMode. More... | |
virtual void | setPickModeMouseTracking (const std::string &_mode, bool _mouseTracking) |
Set mouse tracking for the given PickMode. More... | |
virtual void | setPickModeToolbar (const std::string &_mode, QToolBar *_toolbar) |
Set the additional toolbar of the given PickMode. More... | |
virtual void | removePickModeToolbar (const std::string &_mode) |
Removes the additional toolbar of the given PickMode. More... | |
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. 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. | |
virtual void | restored (int _objectid) |
Backup Plugin tells other Plugins that a restore has happened. More... | |
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. More... | |
virtual void | getToolBar (QString _name, QToolBar *&_toolbar) |
Get a pointer to a Toolbar of the given name or 0 if it does not exist. More... | |
Definition at line 58 of file TopologyPlugin.hh.
|
private |
Add a face.
_event | mouse position where one of the vertices is picked |
Definition at line 236 of file TopologyPlugin.cc.
|
private |
clear the add face vector
Deselect the vertices from AddFace mode.
Definition at line 200 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 649 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 535 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 584 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 73 of file TopologyPlugin.cc.
|
privateslot |
this is called when a mouse event occurred
_event | the event that occurred |
Definition at line 182 of file TopologyPlugin.cc.
|
privateslot |
Toggle actions when the PickMode changes.
_mode | the new PickMode |
Definition at line 166 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 476 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 142 of file TopologyPlugin.cc.