Developer Documentation

SmootherPlugin.hh
1 #ifndef SMOOTHERPLUGIN_HH
2 #define SMOOTHERPLUGIN_HH
3
4 #include <OpenFlipper/BasePlugin/BaseInterface.hh>
5 #include <OpenFlipper/BasePlugin/ToolboxInterface.hh>
6 #include <OpenFlipper/BasePlugin/LoggingInterface.hh>
7 #include <OpenFlipper/common/Types.hh>
8
9 class SmootherPlugin : public QObject, BaseInterface, ToolboxInterface, LoggingInterface
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
30 SmootherPlugin();
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
UpdateType
Update type class.
Definition: UpdateType.hh:60
Logtype
Logtype
Log types for Message Window.
Definition: LoggingInterface.hh:92
SmootherPlugin::name
QString name()
Return a name for the plugin.
Definition: SmootherPlugin.hh:33
LoggingInterface.hh
SmootherPlugin::iterationsSpinbox_
QSpinBox * iterationsSpinbox_
SpinBox for Number of iterations.
Definition: SmootherPlugin.hh:34
LoggingInterface
Interface for all Plugins which do logging to the logging window of the framework.
Definition: LoggingInterface.hh:112
BaseInterface.hh
ToolboxInterface
Plugins can add its own toolbox to the main widget&#39;s toolbox area by using this interface.
Definition: ToolboxInterface.hh:68
SmootherPlugin
Definition: SmootherPlugin.hh:9
BaseInterface
Interface class from which all plugins have to be created.
Definition: BaseInterface.hh:65
ToolboxInterface.hh
Types.hh
SmootherPlugin::description
QString description()
Return a description of what the plugin is doing.
Definition: SmootherPlugin.hh:34
SmootherPlugin::simpleLaplace
void simpleLaplace()
simpleLaplace
Definition: SmootherPlugin.cc:75