Developer Documentation
SmootherPlugin.hh
1 #ifndef SMOOTHERPLUGIN_HH
2 #define SMOOTHERPLUGIN_HH
3 
8 
10 {
11  Q_OBJECT
12  Q_INTERFACES(BaseInterface)
13  Q_INTERFACES(ToolboxInterface)
14  Q_INTERFACES(LoggingInterface)
15 
16  signals:
17  //BaseInterface
18  void updateView();
19  void updatedObject(int _identifier, const UpdateType& _type);
20 
21  //LoggingInterface
22  void log(Logtype _type, QString _message);
23  void log(QString _message);
24 
25  // ToolboxInterface
26  void addToolbox( QString _name, QWidget* _widget );
27 
28  public:
29 
31 
32  // BaseInterface
33  QString name() { return (QString("Simple Smoother")); };
34  QString description( ) { return (QString("Smooths the active Mesh")); };
35 
36  private:
37 
39  QSpinBox* iterationsSpinbox_;
40 
41  private slots:
42 
43  // BaseInterface
44  void initializePlugin();
45 
46 
47  void simpleLaplace();
48 
49  public slots:
50  QString version() { return QString("1.0"); };
51 };
52 
53 #endif //SMOOTHERPLUGIN_HH
Logtype
Log types for Message Window.
Interface class from which all plugins have to be created.
QSpinBox * iterationsSpinbox_
SpinBox for Number of iterations.
Update type class.
Definition: UpdateType.hh:70
Plugins can add its own toolbox to the main widget's toolbox area by using this interface.
Interface for all Plugins which do logging to the logging window of the framework.
QString name()
Return a name for the plugin.
QString description()
Return a description of what the plugin is doing.
void simpleLaplace()
simpleLaplace