SmootherPlugin.hh 1.16 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>

9
class SkeletonTestPlugin : public QObject, BaseInterface, ToolboxInterface, LoggingInterface
Mike Kremer's avatar
Mike Kremer committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23
{
  Q_OBJECT
  Q_INTERFACES(BaseInterface)
  Q_INTERFACES(ToolboxInterface)
  Q_INTERFACES(LoggingInterface)

  signals:
    //BaseInterface
    void updateView();
    void updatedObject(int _id);

    //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 30 31 32 33 34 35 36 37 38 39

  public:

    // 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:
40

41 42
    // BaseInterface
    void initializePlugin();
43 44


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

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

#endif //SMOOTHERPLUGIN_HH