|
Developer Documentation
|
#include <Plugin-Smoother/SmootherPlugin.hh>
Public Slots | |
| QString | version () |
| void | simpleLaplace (int _iterations) |
| simpleLaplace | |
| QString | version () |
| QString | version () |
Scripting Functions | |
| void | smooth (int _objectId, int _iterations, QString _direction, QString _continuity, double _maxDistance=-1.0, bool _respectFeatures=true) |
| smooth an object | |
Signals | |
| void | updateView () |
| void | updatedObject (int _identifier, const UpdateType &_type) |
| void | log (Logtype _type, QString _message) |
| void | log (QString _message) |
| void | addToolbox (QString _name, QWidget *_widget) |
| void | updateView () |
| void | updatedObject (int _id, const UpdateType &_type) |
| void | setSlotDescription (QString _slotName, QString _slotDescription, QStringList _parameters, QStringList _descriptions) |
| void | log (Logtype _type, QString _message) |
| void | log (QString _message) |
| void | addToolbox (QString _name, QWidget *_widget, QIcon *_icon) |
| void | scriptInfo (QString _functionName) |
| void | createBackup (int _id, QString _name, UpdateType _type=UPDATE_ALL) |
| void | updateView () |
| void | updatedObject (int, const UpdateType &) |
| void | setSlotDescription (QString _slotName, QString _slotDescription, QStringList _parameters, QStringList _descriptions) |
| void | log (Logtype _type, QString _message) |
| void | log (QString _message) |
| void | addToolbox (QString _name, QWidget *_widget, QIcon *_icon) |
| void | createBackup (int _id, QString _name, UpdateType _type=UPDATE_ALL) |
| void | scriptInfo (QString _functionName) |
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 ToolboxInterface | |
| virtual void | addToolbox (QString _name, QWidget *_widget) |
| Add a toolbox widget to the gui with the given name. | |
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. | |
| virtual void | getScriptingEngine (QScriptEngine *&_engine) |
| virtual void | executeFileScript (QString _filename) |
| virtual void | getAvailableFunctions (QStringList &_functions) |
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 PythonInterface | |
| virtual void | executePythonScript (QString _script) |
Public Member Functions | |
| QString | name () |
| Return a name for the plugin. | |
| QString | description () |
| Return a description of what the plugin is doing. | |
| QString | name () |
| Return a name for the plugin. | |
| QString | description () |
| Return a description of what the plugin is doing. | |
| SmootherPlugin () | |
| default constructor | |
| ~SmootherPlugin () | |
| default destructor | |
| QString | name () |
| Name of the Plugin. | |
| QString | description () |
| Description of the Plugin. | |
Private Types | |
| typedef OpenMesh::Smoother::JacobiLaplaceSmootherT< TriMesh > | SmootherType |
Private Slots | |
| void | initializePlugin () |
| void | simpleLaplace () |
| simpleLaplace | |
| void | simpleLaplace () |
| void | initializePlugin () |
| void | pluginsInitialized () |
| Set the scripting slot descriptions. | |
| void | initializePlugin () |
| void | pluginsInitialized () |
| Second initialization stage. | |
| void | noguiSupported () |
| Tell system that this plugin runs without ui. | |
| void | slot_smooth () |
| Slot connected to the smooth button in the toolbox. | |
Private Slots inherited from BaseInterface | |
| virtual void | exit () |
| virtual QString | version () |
| Return a version string for your plugin. | |
Private Attributes | |
| QSpinBox * | iterationsSpinbox_ |
| SpinBox for Number of iterations. | |
| QIcon * | toolIcon_ |
| Icon of the toolbox. | |
| SmootherToolbarWidget * | tool_ |
| Widget for Toolbox. | |
Additional Inherited Members | |
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 ToolboxInterface | |
| virtual | ~ToolboxInterface () |
| Destructor. | |
| virtual void | addToolbox (QString _name, QWidget *_widget, QIcon *_icon) |
| Add a toolbox widget to the gui with the given name and an icon. | |
| virtual void | addToolbox (QString _name, QWidget *_widget, QIcon *_icon, QWidget *_headerAreaWidget) |
| Add a toolbox widget to the gui with the given name, icon and header area widget. | |
Private Member Functions inherited from LoggingInterface | |
| virtual | ~LoggingInterface () |
| Destructor. | |
Private Member Functions inherited from ScriptInterface | |
| virtual | ~ScriptInterface () |
| Destructor. | |
| virtual void | showScriptInEditor (QString _filename) |
| virtual void | executeScript (QString _script) |
| virtual void | getDescription (QString _function, QString &_description, QStringList &_parameters, QStringList &_descriptions) |
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 PythonInterface | |
| virtual void | openPythonScriptInEditor (QString _script) |
| virtual | ~PythonInterface () |
| Destructor. | |
Plugin for Smoother Support
Definition at line 14 of file SmootherPlugin.hh.
|
private |
Definition at line 176 of file SmootherPlugin.hh.
| SmootherPlugin::SmootherPlugin | ( | ) |
Definition at line 39 of file SmootherPlugin.cc.
| SmootherPlugin::~SmootherPlugin | ( | ) |
Definition at line 60 of file SmootherPlugin.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 40 of file SmootherPlugin.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 94 of file SmootherPlugin.hh.
|
inlinevirtual |
Description of the Plugin.
Implements BaseInterface.
Definition at line 127 of file SmootherPlugin.hh.
|
privateslot |
Definition at line 45 of file SmootherPlugin.cc.
|
inlinevirtual |
Return a name for the plugin.
This Function has to return the name of the plugin.
Implements BaseInterface.
Definition at line 39 of file SmootherPlugin.hh.
|
inlinevirtual |
Return a name for the plugin.
This Function has to return the name of the plugin.
Implements BaseInterface.
Definition at line 93 of file SmootherPlugin.hh.
|
inlinevirtual |
|
inlineprivateslot |
Tell system that this plugin runs without ui.
Definition at line 137 of file SmootherPlugin.hh.
|
privateslot |
Set the scripting slot descriptions.
Definition at line 98 of file SmootherPlugin.cc.
|
privateslot |
simpleLaplace
Smooth mesh using the Laplace operator with uniform weights.
Definition at line 75 of file SmootherPlugin.cc.
|
slot |
simpleLaplace
Smooth mesh using the Laplace operator with uniform weights.
| _iterations | Number of iterations |
Definition at line 128 of file SmootherPlugin.cc.
|
privateslot |
Slot connected to the smooth button in the toolbox.
Smooth all target objects.
Parameters for the smoothing are retrieved from the toolbox
Definition at line 125 of file SmootherPlugin.cc.
|
slot |
smooth an object
| _objectId | Id of the object that should be smoothed |
| _iterations | Number of iterations |
| _direction | Tangential or normal? |
| _continuity | Continuity selection |
| _maxDistance | Maximal distance after smoothing |
| _respectFeatures | Keep features |
Definition at line 229 of file SmootherPlugin.cc.
|
inlineslot |
Definition at line 56 of file SmootherPlugin.hh.
|
inlineslot |
Definition at line 116 of file SmootherPlugin.hh.
|
inlineslot |
Definition at line 171 of file SmootherPlugin.hh.
|
private |
SpinBox for Number of iterations.
Definition at line 45 of file SmootherPlugin.hh.
|
private |
Widget for Toolbox.
Definition at line 142 of file SmootherPlugin.hh.
|
private |
Icon of the toolbox.
Definition at line 102 of file SmootherPlugin.hh.