importSurface.h 923 Bytes
Newer Older
1 2
#ifndef _IMPORTSURFACE_PLUGIN_H_
#define _IMPORTSURFACE_PLUGIN_H_
3 4 5 6

#include "plugin.h"


Pierre Kraemer's avatar
Pierre Kraemer committed
7 8 9 10
using namespace CGoGN;
using namespace SCHNApps;


11
class ImportSurfacePlugin : public Plugin
12 13
{
	Q_OBJECT
Pierre Kraemer's avatar
Pierre Kraemer committed
14
	Q_INTERFACES(CGoGN::SCHNApps::Plugin)
15 16

public:
17
	ImportSurfacePlugin()
18 19 20 21
	{
		setProvidesRendering(false);
	}

22
	~ImportSurfacePlugin()
23 24
	{}

25
	virtual bool enable();
26
	virtual void disable() {}
27 28 29

	virtual void redraw(View *view) {}

30 31 32 33 34 35
	virtual void keyPress(View* view, QKeyEvent* event) {}
	virtual void keyRelease(View* view, QKeyEvent* event) {}
	virtual void mousePress(View* view, QMouseEvent* event) {}
	virtual void mouseRelease(View* view, QMouseEvent* event) {}
	virtual void mouseMove(View* view, QMouseEvent* event) {}
	virtual void wheelEvent(View* view, QWheelEvent* event) {}
36 37

public slots:
38
	MapHandlerGen* importFromFile(const QString& fileName);
39
	void importFromFileDialog();
40 41 42 43 44

private:
	QAction* importAction;
};

45
#endif