subdivideSurface.h 1.5 KB
Newer Older
1 2
#ifndef _SUBDIVIDESURFACE_PLUGIN_H_
#define _SUBDIVIDESURFACE_PLUGIN_H_
3 4

#include "plugin.h"
5
#include "ui_subdivideSurface.h"
6 7 8 9 10 11

#include "Topology/generic/functor.h"
#include "Topology/generic/parameters.h"
#include "Topology/map/embeddedMap2.h"


Pierre Kraemer's avatar
Pierre Kraemer committed
12 13 14 15
using namespace CGoGN;
using namespace SCHNApps;


16
class SubdivideSurfaceDockTab : public QWidget, public Ui::SubdivideSurfaceWidget
17
{
18 19
public:
	SubdivideSurfaceDockTab() { setupUi(this); }
20 21 22
};


23
class SubdivideSurfacePlugin : public Plugin
24 25
{
	Q_OBJECT
Pierre Kraemer's avatar
Pierre Kraemer committed
26
	Q_INTERFACES(CGoGN::SCHNApps::Plugin)
27 28

public:
29
	SubdivideSurfacePlugin()
30 31 32 33
	{
		setProvidesRendering(false);
	}

34
	~SubdivideSurfacePlugin()
35 36
	{}

37
	virtual bool enable();
38
	virtual void disable() {}
39 40 41 42 43 44 45 46 47 48 49 50

	virtual void redraw(View *view) {}

	virtual void keyPress(View* view, int key) {}
	virtual void keyRelease(View* view, int key) {}
	virtual void mousePress(View* view, int button, int x, int y) {}
	virtual void mouseRelease(View* view, int button, int x, int y) {}
	virtual void mouseMove(View* view, int buttons, int x, int y) {}
	virtual void wheelEvent(View* view, int delta, int x, int y) {}

	virtual void viewLinked(View* view) {}
	virtual void viewUnlinked(View* view) {}
51
	virtual void currentViewChanged(View* view) {}
52

53 54 55
	virtual void mapLinked(View* view, MapHandlerGen* m) {}
	virtual void mapUnlinked(View* view, MapHandlerGen* m) {}

56 57
protected:
	SubdivideSurfaceDockTab* m_dockTab;
58

59 60 61 62
public slots:
	void cb_selectedMapChanged();
	void cb_addMapToList(MapHandlerGen* m);
	void cb_removeMapFromList(MapHandlerGen* m);
63 64
};

65
#endif