SmootherPlugin.hh 1.21 KB
Newer Older
Mike Kremer's avatar
Mike Kremer committed
1
2
3
4
5
6
7
8
#ifndef SMOOTHERPLUGIN_HH
#define SMOOTHERPLUGIN_HH

#include <OpenFlipper/BasePlugin/BaseInterface.hh>
#include <OpenFlipper/BasePlugin/ToolboxInterface.hh>
#include <OpenFlipper/BasePlugin/LoggingInterface.hh>
#include <OpenFlipper/common/Types.hh>

Jan Möbius's avatar
Jan Möbius committed
9
class SmootherPlugin : public QObject, BaseInterface, ToolboxInterface, LoggingInterface
Mike Kremer's avatar
Mike Kremer committed
10
11
12
13
14
15
16
17
18
{
  Q_OBJECT
  Q_INTERFACES(BaseInterface)
  Q_INTERFACES(ToolboxInterface)
  Q_INTERFACES(LoggingInterface)

  signals:
    //BaseInterface
    void updateView();
Jan Möbius's avatar
Jan Möbius committed
19
    void updatedObject(int _identifier, const UpdateType& _type);
Mike Kremer's avatar
Mike Kremer committed
20
21
22
23

    //LoggingInterface
    void log(Logtype _type, QString _message);
    void log(QString _message);
24

25
    // ToolboxInterface
26
    void addToolbox( QString _name, QWidget* _widget );
Mike Kremer's avatar
Mike Kremer committed
27
28
29

  public:

Jan Möbius's avatar
Jan Möbius committed
30
31
    SmootherPlugin();

Mike Kremer's avatar
Mike Kremer committed
32
33
34
35
36
37
38
39
40
41
    // BaseInterface
    QString name() { return (QString("Simple Smoother")); };
    QString description( ) { return (QString("Smooths the active Mesh")); };

   private:

    /// SpinBox for Number of iterations
    QSpinBox* iterationsSpinbox_;

   private slots:
42

43
44
    // BaseInterface
    void initializePlugin();
45
46


Mike Kremer's avatar
Mike Kremer committed
47
48
49
50
51
52
53
    void simpleLaplace();

   public slots:
      QString version() { return QString("1.0"); };
};

#endif //SMOOTHERPLUGIN_HH